Jump to content

Some very small script


homer1491
 Share

Recommended Posts

Hi,

I want to make a script which press "1" and after 0,5s the right mouse button but more than pressing the "1" I'm too newbie.

So I hope you could help me.

Global $Paused
HotKeySet("{PAUSE}", "TogglePause")
HotKeySet("{END}", "Terminate")
While Send("{1}")
Sleep(3200)
WEnd
Func TogglePause()
   $Paused = NOT $Paused
   While $Paused
       sleep(100)
       ToolTip('Script is "Paused"',0,0)
   WEnd
   ToolTip("")
EndFunc

Func Terminate()
   Exit 0
EndFunc

I would be pleased when you don't write so much, my english isn't the best...

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