Code: Select all
if (gg = "" )
{
MsgBox ("empty" )
}
this is my whole script.
Code: Select all
b::
{
A_Clipboard := ""
gg := ""
Send "^c"
ClipWait
gg := A_Clipboard
if (gg = "" )
{
MsgBox ("empty" )
}
else if (gg = "]")
{
MsgBox ("]")
}
else if (gg = "a")
{
MsgBox ("a")
}
else
{
MsgBox ("you pressed others keys")
}
}
I have tested with "A" and "]" and it works with them however if the variable was empty it will use "else"
I know I can use clipwait mothed but I don't want to use it.