mach42 Posted October 9, 2007 Posted October 9, 2007 WOW! It has been a few months since I last built a script and it's a new ball game. I've looked but can't see an obvious way to hold the space bar key down for "x" seconds. This would be handy in a flash game where you "build" power and let it go. Any suggestions where to look for a similar function? Thanks
Zedna Posted October 9, 2007 Posted October 9, 2007 Send("{SPACE Down}") Sleep(3000) ; 3 seconds Send("{SPACE Up}") Resources UDF ResourcesEx UDF AutoIt Forum Search
Joshuaaaa Posted October 10, 2007 Posted October 10, 2007 Send("{SPACE Down}") Sleep(3000) ; 3 seconds Send("{SPACE Up}") I want to hold down Ctrl rather than Space, but it won't work. Would it be... Send("{Control Down}") Sleep(3000) ; 3 seconds Send("{Control Up}") I've tried Ctrl aswell, won't work.
Zedna Posted October 10, 2007 Posted October 10, 2007 Send("{CTRLDOWN}") Sleep(3000) ; 3 seconds Send("{CTRLUP}") Resources UDF ResourcesEx UDF AutoIt Forum Search
mach42 Posted October 10, 2007 Author Posted October 10, 2007 Thanks! I'm back to searching where that came from in documentation.
Armand Posted October 10, 2007 Posted October 10, 2007 just look at the send command... it's all there !!! [u]My Au3 Scripts:[/u]____________(E)Lephant, A Share download manager (RS/MU etc)Http1.1 Console, The Ez Way!Internet Reconnection Automation Suite & A Macro Recording Tool.SK's Alarm Clock, Playing '.MP3 & .Wav' Files._________________Is GOD a mistake of the Humanity Or the Humanity is a mistake of GOD ?!
dimm Posted October 13, 2007 Posted October 13, 2007 And how to hold arrow keys {UP} {DOWN} {LEFT} and {RIGHT} ?
Shevilie Posted October 13, 2007 Posted October 13, 2007 http://www.autoitscript.com/autoit3/docs/functions/Send.htm Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit
dimm Posted October 13, 2007 Posted October 13, 2007 http://www.autoitscript.com/autoit3/docs/functions/Send.htmTo hold a key down (generally only useful for games) Send("{a down}");Holds the A key down Send("{a up}");Releases the A key i'm asking how to hold up, down... Send("{up down}") Send("{up up}") Send("{down down}") Send("{down up}") is not work
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now