Guest Franklon Posted March 10, 2005 Share Posted March 10, 2005 (edited) Hello everyone. I'm new to AutoIt and I'm wondering if AutoIt will work with DirectInput games? Also, I hope that someone will assist me creating a simple script. Basically, I just want the script to press 1 (wait 5secs) and repeat. Is the below code correct? Loop, 100 { Send, {1 down} Sleep, 1000 Send, {1 up} Sleep, 5000 } Thank you **EDIT** Ok, I figured out how to compile the script. How do I install a keyboard hook so that the script will work ingame? ;the exit function Func quit() Exit EndFunc While 1 Send (1) Sleep (2000) WEnd ;when you push the delete button it runs the quit function HotKeySet("{DEL}", "quit") Edited March 10, 2005 by Franklon Link to comment Share on other sites More sharing options...
Andre Posted March 10, 2005 Share Posted March 10, 2005 Hi, For $i = 0 To 100 {put your code here] Next Andre What about Windows without using AutoIt ?It would be the same as driving a car without an steering Wheel! Link to comment Share on other sites More sharing options...
Guest Franklon Posted March 10, 2005 Share Posted March 10, 2005 Hi Andre. What does the above code you posted mean? Link to comment Share on other sites More sharing options...
Wb-FreeKill Posted March 10, 2005 Share Posted March 10, 2005 (edited) It means that, it will do the expression (your code) 100 times - 1 to 100If it was 1 to 50, it would run 50 times that expressionWrite the code it should run after the Next Edited March 10, 2005 by Wb-FreeKill 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