Jump to content

mouse clicks


Splitz
 Share

Recommended Posts

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!
Link to comment
Share on other sites

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

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

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

Link to comment
Share on other sites

  • 2 weeks later...

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

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
 Share

  • Recently Browsing   0 members

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