Jump to content
Sign in to follow this  

Simulating a key being pushed AND HELD DOWN

Recommended Posts


Hello. I'm new to this whole autoit business but have made a few working scripts/bots for a bunch of games/programs and... well, there is one thing that is really bugging me.

I want to replicate the following task using a script:

- Hold enter key down

- Right click a bunch of times at certain co-ordinates while enter key is still held down

- Release enter key

Simple, right?

Is it possible?

I was under the impression that you could simply use the following lines of code to simulate the enter key being held down for 5 seconds:

send ( "enter down" )

sleep ( 5000 )

send ( "enter up" )

but it does not seem to work.

For troubleshooting purposes, open up the notepad.exe and run the code there - it should hold down the enter key for 5 seconds and create a ton of blank lines, right?

So why doesn't it do it?

Could (and will they) anyone explain to me how to perform such a task (it seems like such a simple one and it's driving me nuts Q_Q )?

Thank you so much D:

Share this post

Link to post
Share on other sites

"Hey ... what's this button labeled 'search' used for?"

Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache

Share this post

Link to post
Share on other sites
This topic is now closed to further replies.
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.