Jump to content
Sign in to follow this  
MasonMill

variable for hotkeyset

Recommended Posts

MasonMill

Say i want something like this:

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

I want a tooltip to read "My hotkeyset button " & $Terminate & " is used for ending the script."

so that if the hotkey is changed so will the tooltip?

Share this post


Link to post
Share on other sites
somdcomputerguy

Yep.

$Terminate = "{F7}"
HotKeySet($Terminate, "Quit")
While 1
    ToolTip("My hotkeyset button " & $Terminate & " is used for ending the script." )
    Sleep(10)
WEnd
Func Quit()
    Exit
EndFunc

- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites
MasonMill

Thanks!

Share this post


Link to post
Share on other sites
somdcomputerguy

You bet man.


- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

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  

×