Snhd Posted July 8, 2011 Share Posted July 8, 2011 I need help with how i can make a Button and when i click it the mousemoving and clicking will start... like this the button "click to start" and when i click it the mouse will move thats what I need help with please help me fast : D Thanks. Link to comment Share on other sites More sharing options...
Snhd Posted July 8, 2011 Author Share Posted July 8, 2011 never mind i found out Link to comment Share on other sites More sharing options...
Developers Jos Posted July 8, 2011 Developers Share Posted July 8, 2011 thats what I need help with please help me fast : D That was a fast self service. 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 8, 2011 Author Share Posted July 8, 2011 haha yeah Link to comment Share on other sites More sharing options...
Snhd Posted July 8, 2011 Author Share Posted July 8, 2011 omg i can't start the thing becuz it says "While" statement has no matching "Wend" statement.: EndFunc omg.. and i have tryed many things now !! help.. Link to comment Share on other sites More sharing options...
somdcomputerguy Posted July 8, 2011 Share Posted July 8, 2011 Post the code you've got so far. - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
Snhd Posted July 8, 2011 Author Share Posted July 8, 2011 what do i need to do to make a button that stops the mouseclicking that i have started ? Link to comment Share on other sites More sharing options...
Werty Posted July 8, 2011 Share Posted July 8, 2011 Lift your finger. ..or post the code you have so far. Some guy's script + some other guy's script = my script! Link to comment Share on other sites More sharing options...
Snhd Posted July 8, 2011 Author Share Posted July 8, 2011 Lift your finger...or post the code you have so far.Case $msg = $button_1 MouseClick("left",628,321) MouseClick("left",628,356) MouseClick("left",628,402) MouseClick("left",628,442) MouseClick("left",628,481) MouseClick("left",628,521) MouseClick("left",628,561) MouseClick("left",628,602)*I have this right and i need to know how i can stop it* Link to comment Share on other sites More sharing options...
Xandy Posted July 8, 2011 Share Posted July 8, 2011 #include <misc.au3> $done= 0 $clicking= 0 while $done= 0 if _IsPressed("1b") then $done= 1;ESC to end script if _IsPressed("0d") Then;ENTER toggle clicking while _IsPressed("0d");while toggle button down sleep(20) wend if $clicking= 0 Then $clicking= 1 Else $clicking= 0 endif endif if $clicking= 1 Then;if clicking click mouse MouseClick("left") endif wend the code you listed should stop on it's own just fine Human Male Programmer (-_-) Xandy About (^o^) Discord - Xandy Programmer MapIt (Tile world editor, Image Tile Extractor, and Game Maker) Link to comment Share on other sites More sharing options...
Snhd Posted July 8, 2011 Author Share Posted July 8, 2011 #include <misc.au3> $done= 0 $clicking= 0 while $done= 0 if _IsPressed("1b") then $done= 1;ESC to end script if _IsPressed("0d") Then;ENTER toggle clicking while _IsPressed("0d");while toggle button down sleep(20) wend if $clicking= 0 Then $clicking= 1 Else $clicking= 0 endif endif if $clicking= 1 Then;if clicking click mouse MouseClick("left") endif wend the code you listed should stop on it's own just fine ummm so when i click the "ESC" the clicking will stop ? Link to comment Share on other sites More sharing options...
Xandy Posted July 8, 2011 Share Posted July 8, 2011 ESC will will terminate the script ENTER will toggle mouseclicking ON/OFF ON: mouse clicks pretty much as fast as it can, we could add a delay OFF: no mouse clicks are sent from script TERMINATED: script is no longer running controling anything Human Male Programmer (-_-) Xandy About (^o^) Discord - Xandy Programmer MapIt (Tile world editor, Image Tile Extractor, and Game Maker) Link to comment Share on other sites More sharing options...
Snhd Posted July 8, 2011 Author Share Posted July 8, 2011 okey, is it possible to make a mouseclicker that is clicking in a program that you have made and then you just minimize the program down and can do adder stuff while it's still clicking at the program? Link to comment Share on other sites More sharing options...
Xandy Posted July 8, 2011 Share Posted July 8, 2011 yes, use hotkey triggers to toggle the state of the clicking goal: script acts on hotkeys and when the script is in click mode clicks the mouse, but runs silently with no window face. Human Male Programmer (-_-) Xandy About (^o^) Discord - Xandy Programmer MapIt (Tile world editor, Image Tile Extractor, and Game Maker) Link to comment Share on other sites More sharing options...
Snhd Posted July 8, 2011 Author Share Posted July 8, 2011 can you give me a example code ? Link to comment Share on other sites More sharing options...
Xandy Posted July 8, 2011 Share Posted July 8, 2011 #include <misc.au3> $done= 0 $clicking= 0 while $done= 0 if _IsPressed("1b") then $done= 1;ESC to end script if _IsPressed("0d") Then;ENTER toggle clicking while _IsPressed("0d");while toggle button down sleep(20) wend if $clicking= 0 Then $clicking= 1 Else $clicking= 0 endif endif if $clicking= 1 Then;if clicking click mouse MouseClick("left") endif wend Is this clicking the mouse too fast? Do you not like ENTER as the hotkey to toggle clicking mouse? Is there an error I am overlooking? Human Male Programmer (-_-) Xandy About (^o^) Discord - Xandy Programmer MapIt (Tile world editor, Image Tile Extractor, and Game Maker) Link to comment Share on other sites More sharing options...
Snhd Posted July 8, 2011 Author Share Posted July 8, 2011 same code and i can't start(Go) it... Link to comment Share on other sites More sharing options...
Xandy Posted July 8, 2011 Share Posted July 8, 2011 works for me are you sure it's not running? remember if you press ESC it will kill the script and remember that when autoit runs with no face by default it's still running is the task tray at the bottom right of Windows OS try pressing CTRL-BREAK alot too to force everything autoit related to stop Human Male Programmer (-_-) Xandy About (^o^) Discord - Xandy Programmer MapIt (Tile world editor, Image Tile Extractor, and Game Maker) Link to comment Share on other sites More sharing options...
Snhd Posted July 9, 2011 Author Share Posted July 9, 2011 uhmm script paused ? Link to comment Share on other sites More sharing options...
Xandy Posted July 9, 2011 Share Posted July 9, 2011 (edited) yah, exit that. then run my script then when you press ENTER it will send mouse click and when you press ENTER again it will stop sending mouse clicks Edited July 9, 2011 by songersoft Human Male Programmer (-_-) Xandy About (^o^) Discord - Xandy Programmer MapIt (Tile world editor, Image Tile Extractor, and Game Maker) 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