I have a bit of an issue. I need a tooltip to be placed in the upper right hand corner of my screen (and I work with several different computers with different resolutions) that will not go away until the script is terminated, but will change its text based on the hotkeys that are pressed. Can anyone give me an example to work with? I found several things on Google, but nothing like what I'm looking for.
Example:
key_SIMPLE1:="F1"
key_SIMPLE2:="F2"
key_SIMPLE3:="F3"
key_COMPLEX1:="F4"
loop
{
sleep 1
if GetKeyState(key_SIMPLE1)
{
Tooltip, Simple Mode 1
SetTimer, ResetTooltip, -500
}
if GetKeyState(key_SIMPLE2)
{
Tooltip, Simple Mode 2
SetTimer, ResetTooltip, -500
}
if GetKeyState(key_SIMPLE3)
{
Tooltip, Simple Mode 3
SetTimer, ResetTooltip, -500
}
if GetKeyState(key_COMPLEX1)
{
Tooltip, Complex Mode 1
SetTimer, ResetTooltip, -500
}
So basically I have a tooltip that shows up at the mouse position indicating what the user has selected. This tooltip goes away. I'm interested in getting a second tooltip (that doesn't go away - and by default says "Nothing") that changes based on what hotkey is pressed.
So, if I press F1, I see a tooltip near my mouse that says "Simple Mode 1" (this one disappears) and a second tooltip in the upper right hand corner that also says "Simple Mode 1" that doesn't disappear.
And then if I press F2, I see a tooltip near my mouse that says "Simple Mode 2" (this one disappears) and the second tooltip updates to say "Simple Mode 2".