Hi Lexikos, thanks for your functions, they are awesome
But I've got a problem, when I integrate it into one of my scripts:
Code:
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
Menu, MineSub, Add, Spam, Spam
Menu, MineSub, Add, Real, Real
Menu, Mine, Add, Spam-Mail, :MineSub
MI_SetMenuItemIcon("Mine", 1, "SpamMail_Icon.ico","",16)
MI_SetMenuStyle("Mine", 0x4000000)
Hotkey, RButton, RBLabel, On T3
Return
+ESC::ExitApp
+^!RButton::Hotkey, RButton, RBLabel, Off
RBLabel:
v++
ToolTip
If v = 2
{
v = 0
MI_ShowMenu("Mine")
MsgBox
}
Else if v = 1
{
ToolTip, Go, 100, 100
Sleep, 300
If v = 1
{
Click, Right
v = 0
}
}
Return
Spam-Mail:
Menu, MineSub, Show
Return
Real:
Send, myrealemail@email.com
Return
Spam:
Send, myfakemail@fakemail.com
Return
Why does it, after I double click RButton and then don't integrate with your menu, but simply click RButton again, instant send the RButton to the window and doesn't sleep 300ms? Can you try it out please, to understand whats the problem?
Thank you