Hi!
Another beginner question!
I know I can do this Send>a
Now, in order to send the next avaible, my thinking was to convert to ascii first and then add 1.
But I tried various things with braces and percentage signs but nothing seems to work.
As an example, how do I do that?
Send>Ascii>97
The ultimate goal is to do something like:
Let> VAR=97
Send> Ascii>%VAR%+1
Waiting for your help!
Thanks in advance!
Function in a Function ?
Moderators: Dorian (MJT support), JRL
Here's a sample of what I think you're asking for.
Code: Select all
Run>Notepad.exe
WaitWindowOpen>Notepad*
Wait>1
Let>Char=96
Repeat>Char
add>Char,1
SetFocus>NotePad*
Ascii>%Char%
Wait>0.01
Until>Char=122
Ok thanks.
I asked the question because I thought I had to use the 'send' command to send stuff in a GUI text field.
So I guess the question is:
What is the difference in using just Ascii>97 or using Send>Ascii>97 ?
Can we say that the internal 'Ascii' command already has a 'hidden' 'Send' command in it? You know what I mean?
Thanks!
I asked the question because I thought I had to use the 'send' command to send stuff in a GUI text field.
So I guess the question is:
What is the difference in using just Ascii>97 or using Send>Ascii>97 ?
Can we say that the internal 'Ascii' command already has a 'hidden' 'Send' command in it? You know what I mean?
Thanks!
The obvious difference is that Send>Ascii>97 won't work.What is the difference in using just Ascii>97 or using Send>Ascii>97 ?
I don't know the secret inner workings of the functions but as a generality, Yes, the Ascii> function performs a send. Look up Ascii in help for more info.Can we say that the internal 'Ascii' command already has a 'hidden' 'Send' command in it?
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Ascii> does the same as Send> in that it sends the character specified by the ascii code. Send sends the actual characters entered. But they both "Send" the result to the active window.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?