Movement keys in games

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
Xennon
Newbie
Posts: 4
Joined: Mon Dec 15, 2008 3:24 am

Movement keys in games

Post by Xennon » Mon Dec 15, 2008 3:38 am

I am wondering how you macro the movement keys WASD etc of several games like World of Warcraft. I have tried simply sending the keyboard keys W - forward, S - back, A - left and D - right but nothing happens in WoW. I have also tried "Press Up" "Press Down" and other variants but still nothing happens.

Is there something odd happening with these keys or am I doing something wrong?

I even tried sending a string of W's S's etc but nothing again. Essentially I want to create a macro that will move my char forwards, back left or right. How far to move will probably be the next challenge, but for now I cannot get WoW to respond to the macro sent keys.

Any help?

User avatar
Rain
Automation Wizard
Posts: 550
Joined: Tue Aug 09, 2005 5:02 pm
Contact:

Post by Rain » Mon Dec 15, 2008 12:48 pm

Some thoughts:
Make sure the game is in focus before sending the keyboard commands.

Play the game and record your commands. Then run the recorded macro and see if it's controlling your game.

Xennon
Newbie
Posts: 4
Joined: Mon Dec 15, 2008 3:24 am

Post by Xennon » Fri Dec 19, 2008 9:40 am

Tried all that. The record option actually only looks like it's feeding a looooong string of w's or whatever key I use to move the toon. Playing the recording back actually does not work either .. the char does not move.

I managed to *prove* that the sent keystrokes are being accepted because if sent while AFK, the msg "You are no longer AFK" is returned by the game. So the game is *seeing* the keystrokes, just not responding like it does when I use the actual KB.

Since the purpose of the exercise was to prevent being disconnected due to being AFK, the maco I made achieves this. I just think it's odd that the game responds differently. Not sure is others do this, but WoW sure does.

Thx for your input tho.

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Fri Dec 19, 2008 10:40 am

Some games use their own low level keyboard drivers.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

idiot
Macro Veteran
Posts: 152
Joined: Thu Mar 01, 2007 9:21 am

games is my cup of tea

Post by idiot » Mon Jan 12, 2009 3:40 am

you will need this code
and this website
http://www.mjtnet.com/vkcodes.htm

Code: Select all

Let>VK_control=51
Let>ExtendedKey=1
Let>KeyUp=2
LibFunc>user32.dll,keybd_event,r,VK_control,0,ExtendedKey,0
Let>FLAGS={%ExtendedKey% OR %KeyUp%}
wait>2
LibFunc>user32.dll,keybd_event,r,VK_control,0,FLAGS,0

the wait is how long to hold the key down it releases the pressed key after the wait all you need to do to edit it for the keys you wish to use is change the VK_control={here is number code from site you will put}
and wait is always in seconds so how ever long you wanna hold key is the wait
if idiots rule the world then im the king!!!!
i want a free t-shirt give me all of your rep!!!
please give me pro version of macro scheduler and appnavigator!!!

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