Snhd Posted July 17, 2011 Share Posted July 17, 2011 hello! How can I get this Code to a button ? : HotKeySet("{F8}", "_pause") ; "F8" Global $pause While True MouseClick("left", 418, 312) MouseClick("left", 485, 312) MouseClick("left", 448, 312) MouseClick("left", 484, 312) MouseClick("left", 485, 312) WEnd Func _pause() $pause = Not $pause While $pause Sleep(500) WEnd EndFunc ;==>_pause Link to comment Share on other sites More sharing options...
Developers Jos Posted July 17, 2011 Developers Share Posted July 17, 2011 Why did you open a new topic on the same subject? => As to your question: I have no idea what you are asking, pls explain. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Snhd Posted July 17, 2011 Author Share Posted July 17, 2011 Why did you open a new topic on the same subject? => As to your question: I have no idea what you are asking, pls explain.omg... look i need that code to a button so when i click the button that code will start !! if you dont know what i mean now then stfu Link to comment Share on other sites More sharing options...
pieeater Posted July 17, 2011 Share Posted July 17, 2011 (edited) telling a dev to "stfu" is a great way to get banned. HotKeySet("{F8}", "_pause") ; "F8" Global $pause = 0 Func _buttonFunc() if $pause then MouseClick("left", 418, 312) MouseClick("left", 485, 312) MouseClick("left", 448, 312) MouseClick("left", 484, 312) MouseClick("left", 485, 312) else sleep(500) endif endfunc func _pause() $pause = not $pause endfunc now just make the button run the _buttonFunc() function Edited July 17, 2011 by pieeater [spoiler]My UDFs: Login UDF[/spoiler] Link to comment Share on other sites More sharing options...
Developers Jos Posted July 17, 2011 Developers Share Posted July 17, 2011 (edited) If you dont know what i mean now then stfuI will not tolerate you talking to me like that and you should have known that given your history with me.This time you get a 2 weeks ban to think if you really want to return here and behave or simply stay away.Jos Edited July 17, 2011 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Recommended Posts