CuRrEntly I m MakINg A MAcrO FoR A GamE... It Would do like... press the right ctrl button den release it den press the Ralt button den release it... it works in the windows... but... it does not work in the game... is there any code for it to work in game? plz help... thnx.,.. my current script is
Label>start
Press LCTRL
Wait>0.1
Release LCTRL
Wait>0.1
Press LALT
Wait>0.1
Release LALT
Wait>0.1
Goto>start
if theres anythings i shud change plz advice me thnx
REaally NeeD SomE HElP! PlZ lOOk IF uR Able To HElP? ThNX
Moderators: Dorian (MJT support), JRL
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
1. You need to set focus in a window before you do any PRESS/SEND/MOUSE commands. Try something like this:
3. I see no purpose in pressing LCTRL/LALT if not Sending a key in between Press and Release. Note that many programs will be Case Sensitive on these keys. LCTL-A is not the same as LCTL-a.
2. You have created an eternal loop that will not stop.Label>start
WaitWindowOpen>WindowName*
SetFocus>WindowName*
WaitReady>1
Press LCTRL
Wait>0.1
Release LCTRL
Wait>0.1
Press LALT
Wait>0.1
Release LALT
Wait>0.1
Goto>start
3. I see no purpose in pressing LCTRL/LALT if not Sending a key in between Press and Release. Note that many programs will be Case Sensitive on these keys. LCTL-A is not the same as LCTL-a.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!
Bob
A humble man and PROUD of it!
I see no purpose in pressing LCTRL/LALT if not Sending a key in between Press and Release. Note that many programs will be Case Sensitive on these keys. LCTL-A is not the same as LCTL-a.
sorri... but i dun kinda understand this part... could u kindly explain to me? thnx... newb here... =) thnx loadz
I see no purpose in pressing LCTRL/LALT if not Sending a key in between Press and Release
That's a CTRL-Down - Wait 0.1 sec - CTRL-Up which seems kinda uselessPress LCTRL
Wait>0.1
Release LCTRL
While this would send a CTRL-Down - Wait 0.1 sec - Press/Send C - Wait 0.1 sec - CTRL-Up (aka CTRL+C = copy to the clipboard)Press LCTRL
Wait>0.1
Send>C
Wait>0.1
Release LCTRL