Jump to content

Embed Radmin Viewer or TightVNC viewer in Gui HELP!


Recommended Posts

Does anyone know how to embed a Radmin remote window or VNC Viewer into a gui? I can run the code but I am not sure how to embed it.

Run ("C:Program Files (x86)Radmin Viewer 3Radmin.exe /connect:" & "IP_Address")

I am trying to remote into a desktop and have that embedded onto the Gui I created. However, I am unsure how to do this. Please help.

Any help would be greatly appreciated!

Thanks!

 

Link to comment
Share on other sites

  • Moderators

I don't have either application to test with, but I use the snippet below to embed apps in a GUI. Might be worth a try (shamelessly stolen from SvenP and modified for my own use)

#include <GUIConstants.au3>

$file = @DesktopDir & "\Word.docx"
$oWordDoc = ObjGet($file)

if IsObj($oWordDoc) then
    GUICreate ( "Embedded Object Test", 1000, 1000)
    $GUI_ActiveX = GUICtrlCreateObj( $oWordDoc, 1, 150, 999 , 999 )
    GUISetState ()

    While 1
        $msg = GUIGetMsg()
        Select
            Case $msg = $GUI_EVENT_CLOSE
                ExitLoop
        EndSelect
    Wend

    GUIDelete ()

EndIf

"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

 

I don't have either application to test with, but I use the snippet below to embed apps in a GUI. Might be worth a try (shamelessly stolen from SvenP and modified for my own use)

#include <GUIConstants.au3>

$file = @DesktopDir & "\Word.docx"
$oWordDoc = ObjGet($file)

if IsObj($oWordDoc) then
    GUICreate ( "Embedded Object Test", 1000, 1000)
    $GUI_ActiveX = GUICtrlCreateObj( $oWordDoc, 1, 150, 999 , 999 )
    GUISetState ()

    While 1
        $msg = GUIGetMsg()
        Select
            Case $msg = $GUI_EVENT_CLOSE
                ExitLoop
        EndSelect
    Wend

    GUIDelete ()

EndIf

Wow, that's neat!

Seems a little unstable though...embedded msword hangs when I click the File tab. (Office 2010 BTW).  Does this occur for you?

Link to comment
Share on other sites

  • Moderators

To be honest, I use it for other applications, just threw Word in there because it was quick. I did try it on Word 2007 just now, and seemed able to click through files and menus okay.

"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

That is a neat program - I tried it with the TightVNC viewer and the code won't run it just exits right away. Do you think I'm doing something wrong? Sample code below: If you want you could download this for free and test it, if you want, http://www.tightvnc.com/download.php.

Thanks for the help!

#include <GUIConstants.au3>

 

$file = @DesktopDir & "\MyComputer.vnc"

$oWordDoc = ObjGet($file)

 

if IsObj($oWordDoc) then

    GUICreate ( "Embedded Object Test", 1000, 1000)

    $GUI_ActiveX = GUICtrlCreateObj( $oWordDoc, 1, 150, 999 , 999 )

    GUISetState ()

 

    While 1

        $msg = GUIGetMsg()

        Select

            Case $msg = $GUI_EVENT_CLOSE

                ExitLoop

        EndSelect

    Wend

 

    GUIDelete ()
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...