Jump to content

Recommended Posts

Posted

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

Posted

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

:o

~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!
Posted

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.

Posted

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.

Posted

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)

NEWHeader1.png

Posted

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

Posted

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)

NEWHeader1.png

  • 2 weeks later...
Posted

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)

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...