read variable

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
jim
Newbie
Posts: 3
Joined: Tue Mar 15, 2005 6:36 am

read variable

Post by jim » Tue Mar 15, 2005 6:40 am

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 !!!

User avatar
support
Automation Wizard
Posts: 1450
Joined: Sat Oct 19, 2002 4:38 pm
Location: London
Contact:

Post by support » Tue Mar 15, 2005 9:02 am

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.
MJT Net Support
[email protected]

jim
Newbie
Posts: 3
Joined: Tue Mar 15, 2005 6:36 am

Post by jim » Tue Mar 15, 2005 9:41 am

Thank you,for the help and for the code!!!!!!!!!!!!!!!!!!!!!!!!!!

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts