Sign in to follow this  
Followers 0
the_man

A start script hoy-key?

3 posts in this topic

is there any hotkey to start this scrtip?

hotkeyset("!+^9", "Lemmego");strg+alt+shift+9
Sleep(2000)
while 1
MouseClick ( "left", 238, 297, 2)
Sleep(500)
MouseClick ( "left", 313, 221, 2)
Sleep(11000)
wend
func Lemmego()
exit
endfunc

Thanks, any key is good enough..

Share this post


Link to post
Share on other sites



The easiest way is via a Windows shortcut.

  • Right-click the script and select Copy.
  • Right-click the desktop and select Paste Shortcut.
  • Right-click the shortcut and select Properties.
  • Adjust the shortcut key and click OK.

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

if you want a hotkey to start your script you've got to have a second script waiting for the hotkey to start your script

this would look like this:

hotkeyset("!+^8", "StartmyScript");ctrl+alt+shift+8

while 1
sleep (1000)
wend

func StartmyScript()
run ("Here is your script to run")
exit
endfunc

this way the script ends when you press the hotkey, but starts you other 1 first

if you don't want it to end just remove the "exit"

i suggest you put this 1 to your autostart and you can do whatever you like

maybe you want another thing to do like just starting your loop from within your script

hotkeyset("!+^8", "StartmyScript")

hotkeyset("!+^9", "Lemmego");strg+alt+shift+9

while 1
sleep (1000)
wend

func StartmyScript()
Sleep(2000)
while 1
MouseClick ( "left", 238, 297, 2)
Sleep(500)
MouseClick ( "left", 313, 221, 2)
Sleep(11000)
wend
endfunc

func Lemmego()
exit
endfunc
Edited by Nuffilein805

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