Code: Select all
F3::
KeyWait, F3
Send, !vm
WinWaitActive, Comments,"",2 Then
Send, !a
return
If F3 is released -> send ALT+V+M ->
Wait until the Comments windows appears
If it appears-> press Ctrl B
If it doesn't appear within 2 seconds -> Do nothing
What is actually happening:
The script doesn't appear to care if the comments window is open or not. It will still send Alt A after the timeout.
edit:
i've also tried:
Code: Select all
F3::
KeyWait, F3
Send, !vm
WinWaitActive, Comments, ,2
if ErrorLevel
{
MsgBox, WinWait timed out.
return
}
else
Send, !a
return
Double Edit:
I think I might have fixed it. Going to try testing this at work tomorrow. I don't have the software at home to confirm.
Code: Select all
F3::
KeyWait, F3
Send, !vm
Sleep, 100
WinWait, Comments, ,2
if ErrorLevel
{
MsgBox, WinWait timed out.
return
}
else
Send, !a
return