Vindicator Posted October 29, 2006 Share Posted October 29, 2006 (edited) How could I get the script to pause untill the user clicks (anywhere)? well, is there a command for it anyway? Edited October 29, 2006 by P a R a D o X If I hadn't said thank you yet, and you deserve it, than thank you... Link to comment Share on other sites More sharing options...
GaryFrost Posted October 29, 2006 Share Posted October 29, 2006 Look at _IsPressed in the help file SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
cppman Posted October 29, 2006 Share Posted October 29, 2006 (edited) ;*cough* *cough* #include <misc.au3> Func _ClickWait() While (_IsPressed('01') == 0) sleep(10) WEnd EndFunc _ClickWait() MsgBox(0, "", "Done!") Edited October 29, 2006 by CHRIS95219 Miva OS Project Link to comment Share on other sites More sharing options...
GaryFrost Posted October 29, 2006 Share Posted October 29, 2006 #include <misc.au3> Func _ClickWait() While (_IsPressed('01') == 0) sleep(10) WEnd EndFunc _ClickWait() MsgBox(0, "", "Done!") This ought to work. Was going to make'em work for it. SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
Paulie Posted October 29, 2006 Share Posted October 29, 2006 (edited) Like this works too #include <Misc.au3> Do Sleep(100) ToolTip("Waiting For Click",0,0) Until _IsPressed("01") ToolTip("") ;Rest of script here MsgBox(0, "You Clicked!", "You Clicked!") Edited October 29, 2006 by Paulie Link to comment Share on other sites More sharing options...
Vindicator Posted October 29, 2006 Author Share Posted October 29, 2006 (edited) k thanks all, but now how do I make this repeat, so that every time I click it would say "done!"? I tried putting buth of the scripts into a While 1 loop but it just says I dont have a WEND to go with it.. EDIT: Nvm thanks, I found it Edited October 29, 2006 by P a R a D o X If I hadn't said thank you yet, and you deserve it, than thank you... Link to comment Share on other sites More sharing options...
Paulie Posted October 29, 2006 Share Posted October 29, 2006 (edited) k thanks all, but now how do I make this repeat, so that every time I click it would say "done!"? I tried putting buth of the scripts into a While 1 loop but it just says I dont have a WEND to go with it.. EDIT: Nvm thanks, I found itOh, we thought you just wanted it to pause until it was clicked. While 1 If _IsPressed("01") Then MsgBox(0,"","You Clicked!") EndIf Sleep(100) WEnd EDIT: Sorry, Missed your edit.. Edited October 29, 2006 by Paulie 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