Jump to content
Sign in to follow this  
Splitz

help with small script

Recommended Posts

Splitz

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

Share this post


Link to post
Share on other sites
Don N

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

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.