Today, I encountered a strange problem when i use the select. . .case statement. I really do not understand where there is an error.The following code is simplified, just to describe what the problem is.
Select
Case ProcessExists('explorer.exe')
MsgBox(64, 0, 1)
ContinueCase
Case ProcessExists('sys.su') ;this is not a real process. but....
MsgBox(64, 0, 2)
ContinueCase
Case ProcessExists('winlogon.exe')
MsgBox(64, 0, 3)
EndSelect
That's why?Does the ContinueCase cause?Or the condition of 'case 0' is True? But the below is different.
Select
Case ProcessExists('sys.su') ;this is not a real process. and the msgbox will not show
MsgBox(64, 0, 2)
ContinueCase
Case ProcessExists('explorer.exe')
MsgBox(64, 0, 1)
ContinueCase
Case ProcessExists('winlogon.exe')
MsgBox(64, 0, 3)
EndSelect