REaally NeeD SomE HElP! PlZ lOOk IF uR Able To HElP? ThNX

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
goddha
Newbie
Posts: 3
Joined: Sun Nov 14, 2004 5:59 pm

REaally NeeD SomE HElP! PlZ lOOk IF uR Able To HElP? ThNX

Post by goddha » Mon Nov 15, 2004 2:28 am

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

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Mon Nov 15, 2004 5:12 am

1. You need to set focus in a window before you do any PRESS/SEND/MOUSE commands. Try something like this:
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
2. You have created an eternal loop that will not stop.

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!

goddha
Newbie
Posts: 3
Joined: Sun Nov 14, 2004 5:59 pm

Post by goddha » Mon Nov 15, 2004 6:09 am

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

Lumumba

Post by Lumumba » Mon Nov 15, 2004 8:38 am

I see no purpose in pressing LCTRL/LALT if not Sending a key in between Press and Release
Press LCTRL
Wait>0.1
Release LCTRL
That's a CTRL-Down - Wait 0.1 sec - CTRL-Up which seems kinda useless :roll:
Press LCTRL
Wait>0.1
Send>C
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)

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