I need to use WaitKeyDown command but I have problems. I tried with keys "complex" (106, buttonleft for example) and also keys simple as x. The macro stops, but it doesnt work when I press the key.
I write code like this:
WaitKeyDown>VK106
WaitKeyDown>x
I have seen that there are enough questions on this subject but I have not found an answer. ¿Can you help me?
¡Thanks!
WaitKeyDown doesn't work
Moderators: Dorian (MJT support), JRL
Does the following work for you?
Code: Select all
message>With focus on this window press%CRLF% AND HOLD%CRLF%%CRLF%%tab%a
WaitKeyDown>a
mdl>%CRLF%%CRLF%%CRLF%%tab%a%CRLF%%CRLF% Was pressed
Problems continue
Hi JRL,
Your code (as WaitKeyDown) works sometimes. I reinstalled Macro Scheduler but I still have problems. If I can fix the macro I'm telling you.
Thank you very much for your reply![Smile :)](./images/smilies/icon_smile.gif)
Win XP, Macro Scheduler 11/01/1912 (both legal)
Your code (as WaitKeyDown) works sometimes. I reinstalled Macro Scheduler but I still have problems. If I can fix the macro I'm telling you.
Thank you very much for your reply
![Smile :)](./images/smilies/icon_smile.gif)
Win XP, Macro Scheduler 11/01/1912 (both legal)
Correcting tests whith WaitKeyDown. Send accented characters
Hi JRL,
I've done. I must to press more time. I chose the right arrow key because it is "invisible. "
Here you can see my first trial http://www.youtube.com/watch?v=lZEHTf42EEY. It is made with Word + MacroScheduler + CamStudio. Thanks for your help.
Another question. If the Send command contains accented characters (very common in Spanish) returns the ascii code. For example, for "párrafo" I have to write:
Send>p
ascii>225
send>rrafo
because the command
Send>párrafo returns p225rrafo
Paradoxically, the most special Spanish character (ñ) works correctly:
send>moñoño returns moñoño
I would be happy if I could avoid using the command ascii>
Thanks again (and thanks to Google translator ...)
Gloria
I've done. I must to press more time. I chose the right arrow key because it is "invisible. "
Here you can see my first trial http://www.youtube.com/watch?v=lZEHTf42EEY. It is made with Word + MacroScheduler + CamStudio. Thanks for your help.
Another question. If the Send command contains accented characters (very common in Spanish) returns the ascii code. For example, for "párrafo" I have to write:
Send>p
ascii>225
send>rrafo
because the command
Send>párrafo returns p225rrafo
Paradoxically, the most special Spanish character (ñ) works correctly:
send>moñoño returns moñoño
I would be happy if I could avoid using the command ascii>
Thanks again (and thanks to Google translator ...)
Gloria
- Marcus Tettmar
- Site Admin
- Posts: 7380
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
I don't know why the accented chars aren't working for you. This works fine for me:
SetFocus>notepad*
Send>párrafo
If I open Notepad and run that script then párrafo gets correctly written into the Notepad window. Accented and unicode characters are supported in Macro Scheduler.
But which version are you running? Maybe you have an older version?
SetFocus>notepad*
Send>párrafo
If I open Notepad and run that script then párrafo gets correctly written into the Notepad window. Accented and unicode characters are supported in Macro Scheduler.
But which version are you running? Maybe you have an older version?
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?
Macro Scheduler 6 works fine
I'm running MacroScheduler 11.1.12. I tried it with an older version (6.2.3e) and works properly.
Maybe it's a Bill Gates joke... I will use ascii command.
Thanks, Marcus.
Gloria
Maybe it's a Bill Gates joke... I will use ascii command.
Thanks, Marcus.
Gloria