swstrau118 Posted June 19, 2013 Posted June 19, 2013 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!
Moderators JLogan3o13 Posted June 20, 2013 Moderators Posted June 20, 2013 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!
spudw2k Posted June 20, 2013 Posted June 20, 2013 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? Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX Builder Misc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retrieve SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose Array Projects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalc Cool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF
Moderators JLogan3o13 Posted June 20, 2013 Moderators Posted June 20, 2013 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!
swstrau118 Posted June 26, 2013 Author Posted June 26, 2013 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! expandcollapse popup#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 ()
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