Jump to content

help with small script


Recommended Posts

Global $Paused

HotKeySet("{END}", "TogglePause")

HotKeySet("{Del}", "Terminate")

While 1

Sleep(100)

WEnd

Func TogglePause()

$Paused = NOT $Paused

While $Paused

MouseDown("Right")

Send("{LShift}")

Send("{f1}")

Send("{f2}")

WEnd

EndFunc

Func Terminate()

Exit 0

EndFunc

when i hit the END key i want it to,

hold down left shift

hold down right mouse button

press f1

press f2

i want it to just do this 1 time

right now the script rapidly spams them over and over once i press end and i have to press end again to make it stop so what do i change to make it just do the script 1 time when i press end and also make it hold down Lshift

Link to comment
Share on other sites

HotKeySet("{END}", "TogglePause")
HotKeySet("{Del}", "Terminate")
While 1
Sleep(100)
WEnd
Func TogglePause()
MouseDown("Right")
Send("{LSHIFT down}")
Send("{f1}")
Send("{f2}")
Send("{LSHIFT up}")
MouseUp( "Right" )
EndFunc
Func Terminate()
Exit 0
EndFunc

lemme know if that works

EDIT: forgot one line

Edited by Don N

_____________________________________________________"some people live for the rules, I live for exceptions"Wallpaper Changer - Easily Change Your Windows Wallpaper

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