Technical support and scripting issues
Moderators: JRL, Dorian (MJT support)
-
idiot
- Macro Veteran
- Posts: 152
- Joined: Thu Mar 01, 2007 9:21 am
Post
by idiot » Sun Jul 08, 2007 2:50 am
i've tried this code for ctrl and it works but when i try to use same method for arrow keys it dosent i tried the examples you showed for arrow keys but they dont seem to work i dont seem to have the ability to press and release arrows im using windows 2000 on thinkpad 600e
when it sends the command to press down it uses my number keys on my labtop as if they where in numlock mode how can i get macro scheduler to use arrow keys on my labtop?
Code: Select all
setfocus>endless online
Let>VK_control=17
Let>ExtendedKey=1
Let>KeyUp=2
Press ctrl
LibFunc>user32.dll,keybd_event,r,VK_control,0,ExtendedKey,0
Wait>10
Release ctrl
Let>FLAGS={%ExtendedKey% OR %KeyUp%}
LibFunc>user32.dll,keybd_event,r,VK_control,0,FLAGS,0

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!!!
-
Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
-
Contact:
Post
by Marcus Tettmar » Sun Jul 08, 2007 8:18 am
Show us your code and we may be able to help.
-
idiot
- Macro Veteran
- Posts: 152
- Joined: Thu Mar 01, 2007 9:21 am
Post
by idiot » Sun Jul 08, 2007 9:15 pm
it is code i got straight from you but it does not work on my labtop i think the problem is the vk _down=40 i think this may work for standard keyboards but is different for my laptop how can i find what the correct vk_code is?
Code: Select all
//Key codes at <a>http://www.mjtnet.com/vkcodes.htm</a>
Let>VK_DOWN=40
Let>ExtendedKey=1
Let>KeyUp=2
//Press Down Arrow
LibFunc>user32.dll,keybd_event,r,VK_DOWN,0,ExtendedKey,0
//Wait 10 seconds
Wait>10
//Now release Down Arrow
Let>FLAGS={%ExtendedKey% OR %KeyUp%}
LibFunc>user32.dll,keybd_event,r,VK_DOWN,0,FLAGS,0
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!!!