Jump to content

Need Help Making A Script(autoit Noob)


Recommended Posts

Guest IceHeartBlack
Posted

I'm very new to auto it but what I need is a script that will click x330 y200 every 10 mins then click x100 y525 right once, after that click x100 y505 4 times after that(preferablely with a 3-5 sec delay between each click) after that the script resets until I shut it down. Here's what I got so far(probably horriblely wrong lol):

SetHotKey(^{esc},_Terminate)

While 1

If WinActive("Untitled -") Then

MouseClick ( "left" , 330, 200 , 1 , 10 )

Sleep, (10000)

MouseClick ( "left" , 100, 525 , 1 , 10)

Sleep,(3000)

MouseClick ( "left" , 100, 505 , 1 , 10 )

Sleep, (3000)

MouseClick ( "left", 100, 505 , 1 , 10 )

Sleep, (3000)

MouseClick ( "left" , 100, 505, 1 , 10 )

Sleep, (3000)

MouseClick ( "left" , 100, 505, 1 , 10 )

EndIf

WEnd

Func _Terminate()

Exit

EndFunc

Posted

Are you "dislexic" SetHotKey should be HotKeySet

sleep syntax is as any autoit3 functions sleep(3000) no comma anymore

Good luck with your first AutoIt3 script :D

HotKeySet("^{esc}","_Terminate")

While 1
If WinActive("Untitled -") Then
MouseClick ( "left" , 330, 200 , 1 , 10 ) 
Sleep (10000)
MouseClick ( "left" , 100, 525 , 1 , 10)
Sleep(3000)
MouseClick ( "left" , 100, 505 , 1 , 10 )
Sleep (3000)
MouseClick ( "left", 100, 505 , 1 , 10 )
Sleep (3000)
MouseClick ( "left" , 100, 505, 1 , 10 )
Sleep (3000)
MouseClick ( "left" , 100, 505, 1 , 10 )
EndIf
WEnd

Func _Terminate()
Exit
EndFunc

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