Sign in to follow this  
Followers 0
danusko

problom with hot key

2 posts in this topic

#1 ·  Posted (edited)

hi everybody,

pls. knows somebody, why in my script works the hotkey ^!{tab} only onec?

What i make wrong?

The other function works good.

can you help me.

thankeyou

my script:

---------------------------

$g_bSet = 0

HotKeySet("^!+p","MyFunc")

HotKeySet("^!{tab}","del")

HotKeySet("!{right}","stop")

While 1

Sleep(10)

WEnd

Func MyFunc()

$g_bSet = Not $g_bSet

if $g_bSet= "true" then

send("^{end}")

else

send("^{home}")

endif

EndFunc

func del()

HotKeySet("^!{tab}")

Send ( "{delete}" )

endfunc

func stop()

HotKeySet("!{right}")

exit

endfunc

Edited by danusko

Share this post


Link to post
Share on other sites



HotKeySet("^!{tab}")

HotKeySet ( "key" [, "function"] )

Parameters

key The key(s) to use as the hotkey. Same format as Send().

function [optional] The name of the function to call when the key is pressed. Leave blank to unset a previous hotkey.


Who else would I be?

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