Sign in to follow this  
Followers 0
Splitz

mouse clicks

12 posts in this topic

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

Share this post


Link to post
Share on other sites



there is a great example of that in

"Welcome to AutoIt 1-2-3".... ( in my signature below )

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

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!

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

are you using beta???

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

no i dont think so

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

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)

Share this post


Link to post
Share on other sites

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}".

Share this post


Link to post
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
Sign in to follow this  
Followers 0