Seem pretty simple enough but I can do it properly. So here is the code first:
Local $ordi = InputBox( "VNCViewer - Script", "Entrez votre Addresse Ip ou le nom de hote")
Run( "C:\Program Files\UltraVNC\vncviewer.exe" & " " & $ordi & " " & "-password 1111")
If @error = 1 Then Exit; exit if cancel pressed
What happens: when script is started, I press cancel to exit the script but when I do, vnc pop's up.
What I want to happen: when cancel is pressed, it exits the script without opening vnc.
Again, any help will be appreciated.
Thanks guys