read variable
Moderators: Dorian (MJT support), JRL
read variable
HI,I want to know how i can read a value from a dialog box and then pass this value with the command Send to notepad !!!
Make sure Notepad is running and then run the following script. Enter a value and press OK and that value will be sent to Notepad:
Dialog>Dialog1
Caption=Dialog1
Top=121
Width=361
Left=77
Height=114
Label=Enter something:,24,24
Edit=MyEdit,112,16,217,
Button=OK,112,48,75,25,2
EndDialog>Dialog1
Show>Dialog1,result
Setfocus>Notepad*
Send>Dialog1.MyEdit
Note apart from the code to build the Dialog there are just two lines to do this - one focuses notepad and the other Sends the variable to it.
Dialog>Dialog1
Caption=Dialog1
Top=121
Width=361
Left=77
Height=114
Label=Enter something:,24,24
Edit=MyEdit,112,16,217,
Button=OK,112,48,75,25,2
EndDialog>Dialog1
Show>Dialog1,result
Setfocus>Notepad*
Send>Dialog1.MyEdit
Note apart from the code to build the Dialog there are just two lines to do this - one focuses notepad and the other Sends the variable to it.
MJT Net Support
[email protected]
[email protected]