Okayish Posted April 22, 2014 Share Posted April 22, 2014 I am currently developing a GUI for my project that would make a VNC connection automatically through the GUI. Before I compile my code to an .exe file, my GUI functions perfectly. However, after compilation, the .exe would still run but it would not establish a VNC connection to my viewer. Below are part of the code that I used for automate the VNC connection. Case $ButtonConnect_Inst_window ShellExecute("tvnserver.exe","-run","C:\Program Files\TightVNC") Sleep (100) If $SSID = $Room1 Then ShellExecute("tvnserver.exe","-controlapp -connect 192.168.42.1::65454","C:\Program Files\TightVNC") GUIDelete($Next_GUI) StopButton() ElseIf $SSID =$Room2 Then ShellExecute("tvnserver.exe","-controlapp -connect 192.168.32.1::53452","C:\Program Files\TightVNC") GUIDelete($Next_GUI) StopButton() Else MsgBox(0,"Failed to connect: ", $SSID) EndIf Your help would be sincerely appreciated. Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted April 22, 2014 Moderators Share Posted April 22, 2014 Are you running it as an Admin? #pragma compile(ExecLevel, requireAdministrator) "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now