acgarlick Posted June 17, 2012 Share Posted June 17, 2012 Found this code from Autohotkey but I'm not sure how to make it work for autoit? SendInput, %MyNumber% if (MyNumber < 12000) { MyNumber += 1 } else { MyNumber = 10000 Thank you Link to comment Share on other sites More sharing options...
boomingranny Posted June 17, 2012 Share Posted June 17, 2012 (edited) I have never used autohotkey, What is it meant to do? Edited June 17, 2012 by boomingranny Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted June 18, 2012 Moderators Share Posted June 18, 2012 Hi, acgarlick, welcome to the forum. We tend to take the "teach a man to fish" philosophy around here, rather than just writing your code for you. Take a look at your code below, and the relative areas in the Help file. Once you have given it a go, feel free to come back and ask questions if you get stuck SendInput, %MyNumber% <--Check our Send and ControlSend in the Help file. Also take a look at the Variables section for creating variables and assigning value. if (MyNumber < 12000) { MyNumber += 1 } else { <--Check out the If...Then and If..Then...ElseIf...Else...EndIf topics in the Help file. MyNumber = 10000 "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
AlmarM Posted June 19, 2012 Share Posted June 19, 2012 Global $iMyNumber = InputBox("", "Please enter your number.") Send($iMyNumber) If ($iMyNumber < 12000) Then $iMyNumber += 1 Else $iMyNumber = 10000 EndIf Minesweeper A minesweeper game created in autoit, source available. _Mouse_UDF An UDF for registering functions to mouse events, made in pure autoit. 2D Hitbox Editor A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes. Link to comment Share on other sites More sharing options...
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