Code: Select all
^6:: ; Ctrl+Alt+N
{
if WinExist("*fgsfhgsfhg - Notepad"){
MyVar := "3"
if (MyVar = "2")
MsgBox "Hello World!" . MyVar
else
MsgBox "Hello World! <> 2" . MyVar
}
else
Run "Notepad"
}
If I change the statement "Myvar := 3" to "MyVar := 2", then the true part of the if statement executes, as expected. So the part I'm not understanding is how to display it.
What is wrong with my use of the variable?
Thanks heaps,
Jack