Jump to content

Executable Problem - Win 8


Okayish
 Share

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...