using keyboard keys

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

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

using keyboard keys

Post by idiot » Fri Mar 09, 2007 3:30 pm

i need something like this:
label>start
press ctrl
wait>6
release ctrl
press up
wait>1
press down
wait>1
press up
goto>start
basically i wanna hold ctrl down for a few second then move up then down then face up and just repeate is there a command to hold down a keyboard key?but for some reason my code does not work at all :?:
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!!!

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

Post by Marcus Tettmar » Fri Mar 09, 2007 3:45 pm

Yes, to hold down a keyboard key use Keybd_Event. Search this forum for "Keybd_Event" to find a number of examples.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

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

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