RDPViewer Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
User avatar
kczx3
Posts: 1640
Joined: 06 Oct 2015, 21:39

RDPViewer

17 Mar 2018, 08:23

Anyone know if its possible to run an RDP ActiveX control inside an AHK GUi? The following works to put the control there. It seems that not all of the properties are available though. I used jethrow's EnumComMembers() function and it lists out some methods and properties, but not all the ones that I'd expect. Calling Connect gives an error of "Invalid number of parameters", though the documentation says that it simply relies on the Server property (which I can't seem to set).

104 Connect method
105 Disconnect method
108 RequestControl method
115 RequestColorDepthChange method
116 StartReverseConnectListener method
202 Properties get
203 Attendees get
204 Invitations get
206 VirtualChannelManager get
215 ApplicationFilter get
237 DisconnectedText get
237 DisconnectedText put
238 SmartSizing get
238 SmartSizing put

Code: Select all

Gui, Add, ActiveX, h500 w800 vrdp hwndhrdp, Rdpvcomapi.RDPViewer
Also, Properties has a Property prop which is a method and requires some number of parameters but I couldn't figure out what it required. It probably isn't possible and I just don't have the knowledge to understand that.

I was able to get this sample to work in IE8 so we could potentially use Shell.Explorer to initialize an RDP connection.
Guest

Re: RDPViewer  Topic is solved

17 Mar 2018, 09:31

Code: Select all

Gui, Add, ActiveX, h600 w800 vrdp hwndhrdp, MsRDP.MsRDP.2
rdp.DisconnectedText := "Disconnected"
rdp.ConnectingText := "Connecting"
rdp.ConnectedStatusText := "Connected"
rdp.UserName := ""
rdp.Server := "127.0.0.2"
rdp.AdvancedSettings2.RDPPort := 3389
rdp.AdvancedSettings2.EnableCredSspSupport := TRUE ; or -1
rdp.AdvancedSettings2.AuthenticationLevel := 2
rdp.FullScreen := 0
rdp.DesktopWidth := 800
rdp.DesktopHeight := 600
rdp.Connect
Gui Show
You might be able to get that to work for you. I couldn't - I think it's to do with the policy I have set enforcing NLA

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: filipemb, wineguy and 360 guests