Splitz Posted February 24, 2006 Share Posted February 24, 2006 how do i make it to where autoit opens a window and makes mouse mouse move to a spot and click there untill i want it to stop , with a hotkey or somethin Link to comment Share on other sites More sharing options...
Valuater Posted February 24, 2006 Share Posted February 24, 2006 there is a great example of that in "Welcome to AutoIt 1-2-3".... ( in my signature below ) 8) Link to comment Share on other sites More sharing options...
cdkid Posted February 24, 2006 Share Posted February 24, 2006 HotKeySet("s","start") HotKeySet("{END}", "end") While 1 sleep(100) WEnd func start() do WinActivate("Window Title Here") mouseclick("left", x-coord, y-coord) until @HOTKEYPRESSED = "{END}" endfunc func end() exit endfunc press S to start it press the END key to end it change "Window Title Here" to a window title x-coord to your X coordinate and y-coord to your Y coordinate ~cdkid AutoIt Console written in C#. Write au3 code right at the console :D_FileWriteToLineWrite to a specific line in a file.My UDF Libraries: MySQL UDF Library version 1.6 MySQL Database UDF's for AutoItI have stopped updating the MySQL thread above, all future updates will be on my SVN. The svn location is:kan2.sytes.net/publicsvn/mysqlnote: This will still be available, but due to my new job, and school hours, am no longer developing this udf.My business: www.hirethebrain.com Hire The Brain HireTheBrain.com Computer Consulting, Design, Assembly and RepairOh no! I've commited Scriptocide! Link to comment Share on other sites More sharing options...
Splitz Posted February 24, 2006 Author Share Posted February 24, 2006 humm i put this much in HotKeySet("\","start") HotKeySet("{END}", "end") While 1 sleep(100) WEnd func start() do mouseclick("left", 150, 286) until @HOTKEYPRESSED = "{END}" endfunc func end() exit endfunc and i get the error saying line 25 Until@HOTKEYPRESSED = "{END}" Untill^ ERROR Error: Unknown macro. Link to comment Share on other sites More sharing options...
Valuater Posted February 24, 2006 Share Posted February 24, 2006 are you using beta??? 8) Link to comment Share on other sites More sharing options...
Splitz Posted February 24, 2006 Author Share Posted February 24, 2006 no i dont think so Link to comment Share on other sites More sharing options...
Splitz Posted February 24, 2006 Author Share Posted February 24, 2006 ok exactly what i want it to do is move to a certian spot then i want it to keep clicking there untill i press a hotkey to make it stop clicking in that spot. Link to comment Share on other sites More sharing options...
Valuater Posted February 24, 2006 Share Posted February 24, 2006 you will need the beta... it is very stable and the public release is just about ready you can get the beta, Scite editor and lessons in the "welcome to Autoit 1-2-3" also the script above will work once you have the beta 8) Link to comment Share on other sites More sharing options...
Splitz Posted February 24, 2006 Author Share Posted February 24, 2006 ok i put this in and, it works with the beta exept for 1 thing.. it wont stop when i press the Home button it just stays there clicking untill i restart my computer ~ HotKeySet("s","start") HotKeySet("Home", "end") While 1 sleep(100) WEnd func start() do mouseclick("left", 148, 151) until @Hotkeypressed = "Home" endfunc func end() end endfunc Link to comment Share on other sites More sharing options...
Valuater Posted February 24, 2006 Share Posted February 24, 2006 da!!! that stupid little script got me too ; Press Esc to terminate script, F9 to "run/pause" ; set the wait time $wait = 100 Global $Paused HotKeySet("{F9}", "TogglePause") HotKeySet("{ESC}", "Terminate") ;;;; Body of program would go here;;;; While 1 Sleep(100) WEnd ;;;;;;;; Func TogglePause() $Paused = NOT $Paused While $Paused ToolTip('Script is "Running"',0,0) sleep($wait) mouseclick("left", 148, 151) WEnd ToolTip("") EndFunc Func Terminate() Exit 0 EndFunc 8) Link to comment Share on other sites More sharing options...
tang Posted March 4, 2006 Share Posted March 4, 2006 spam da!!! that stupid little script got me too ; Press Esc to terminate script, F9 to "run/pause" ; set the wait time $wait = 100 Global $Paused HotKeySet("{F9}", "TogglePause") HotKeySet("{ESC}", "Terminate") ;;;; Body of program would go here;;;; While 1 Sleep(100) WEnd ;;;;;;;; Func TogglePause() $Paused = NOT $Paused While $Paused ToolTip('Script is "Running"',0,0) sleep($wait) mouseclick("left", 148, 151) WEnd ToolTip("") EndFunc Func Terminate() Exit 0 EndFunc 8) Link to comment Share on other sites More sharing options...
greenmachine Posted March 4, 2006 Share Posted March 4, 2006 What the hell are you talking about tang? Spam? You're the only one spamming here. As for the "home" hotkey, it should be "{home}". 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