How i could send two keys at same time?. I need my script send S and F keys at same time.
Tried that way, no sucess
Send>sf
Send>s,f
Also tried holdkey but it seens to hold only one key each time
Press doesnt work with non character keys so i cant use press/release
How to send two keys at same time?
Moderators: Dorian (MJT support), JRL
- Marcus Tettmar
- Site Admin
- Posts: 7380
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Re: How to send two keys at same time?
You'll have to go lower level. Search this forum for Keybd_Event.
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?
Re: How to send two keys at same time?
Hi i did what you said, and searched but i still dont got how i can do it, my script:
I'm trying do the script send S and F keys at same time "SF"
I'm trying do the script send S and F keys at same time "SF"
Code: Select all
Setfocus>NET LIMITER*
Wait>1
Let>VK_RETURN=83 //vk of S key
Let>ExtendedKey=1
Let>KeyUp=2
Send>F
LibFunc>user32.dll,keybd_event,r,VK_RETURN,0,ExtendedKey,0
Let>FLAGS={%ExtendedKey% OR %KeyUp%}
LibFunc>user32.dll,keybd_event,r,VK_RETURN,0,FLAGS,0
LibFunc>user32.dll,keybd_event,r,VK_RETURN,0,ExtendedKey,0
Let>FLAGS={%ExtendedKey% OR %KeyUp%}
LibFunc>user32.dll,keybd_event,r,VK_RETURN,0,FLAGS,0
Wait>2