a fly Posted May 28, 2006 Share Posted May 28, 2006 (edited) Hello, first i like to say the only language i worked with is html and dos, i dont even know what autoit uses (please tell me). here is a script i made, well, working on: If MouseDown ( "left" ) Do send ( "p" ) Sleep (7) Until MouseUp ( "left" ) Then ContinueLoop Wend There is a bug in it, when trying to run it i get the message "if statement must have a then" sofar i think it could be the continueloop, or that do until overrules if then. Thanks in advance. edit: my dad says the Wend is wrong, but removing that doesent change a thing Edited May 28, 2006 by a fly Link to comment Share on other sites More sharing options...
Nomad Posted May 28, 2006 Share Posted May 28, 2006 (edited) Try This: #include <Misc.au3> $dll = DllOpen("user32.dll") While (1) If _IsPressed ("01", $dll) Then send ( "p" ) Sleep (7) EndIf Wend DllClose($dll) Hope this helps, Nomad Edit: you need beta for this. Edited May 28, 2006 by Nomad Link to comment Share on other sites More sharing options...
Zedna Posted May 28, 2006 Share Posted May 28, 2006 Your code is TOTALY bad.Look into AutoIt Helpfile - there are examples for every function, there are also sections about language - Language Reference (conditions, cycles, ...)Before you start write such bad scripts you must read some basics from AutoIt Helpfile.Helpfile for AutoIt is really one of the best helpfiles I have seen ever so don't be afraid to look into it Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
a fly Posted May 28, 2006 Author Share Posted May 28, 2006 Your code is TOTALY bad.Look into AutoIt Helpfile - there are examples for every function, there are also sections about language - Language Reference (conditions, cycles, ...)Before you start write such bad scripts you must read some basics from AutoIt Helpfile.Helpfile for AutoIt is really one of the best helpfiles I have seen ever so don't be afraid to look into it i looked into it, readed just about evrything, but i could not think of something to work, like i sayd its my fist time doing something in this language....thanks for the thelp =) Link to comment Share on other sites More sharing options...
BigDod Posted May 28, 2006 Share Posted May 28, 2006 Welcome to the forum.You will find an excellent tutorial Here Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother 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