Jump to content

univeda

Members
  • Posts

    10
  • Joined

  • Last visited

univeda's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Look for Switch in the AutoIt-Helpfile.
  2. Perfect, works fine. Thanks alot!
  3. Sorry to reactive this old post, i've tried your example and it works great. But i want to disable the maximize-button in the window-frame and did found out how to realize it. Can you help?
  4. Tested this now with newest Beta, but still no events: Running:(3.3.1.4):C:\Entwicklung\AutoIt3\beta\autoit3.exe "H:\Entwicklung\AU\extsc\extsc.au3"
  5. AutoIt 3.3.0.0 mstscax.dll 6.0.6002.18045 OS:WIN_VISTA/Service Pack 2 CPU:X64 OS:X86
  6. hmm... i've tried every single method from this site, but i'm not getting a single notification. Any ideas what could be wrong?
  7. Sorry, tried this - did not work. No MsgBox after connecting. Does this example works for you?
  8. Can you please explain what you mean?
  9. Thanks for your reply, but this does not work either: #include <WindowsConstants.au3> #include <GUIConstants.au3> #NoTrayIcon $width = 800 $height = 600 GUICreate("Extended Terminal Services Client", $width + 20, $height + 20, -1, -1, $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS) $oRdpClient = ObjCreate("MsTscAx.MsTscAx") $GUIActiveX = GUICtrlCreateObj($oRdpClient, 10, 10, $width, $height) ObjEvent($oRdpClient, "Run_OnLoginComplete") GUISetIcon("extsc.ico") GUICtrlSetStyle($GUIActiveX, $WS_VISIBLE) GUICtrlSetResizing ($GUIActiveX, $GUI_DOCKAUTO) GUISetState() $oRdpClient.Server = "myServer" $oRdpClient.Domain = "myDomain" $oRdpClient.UserName = "myUsername" $oRdpClient.AdvancedSettings2.ClearTextPassword = "myPassword" ;$oRdpClient.DesktopWidth = 800 ;$oRdpClient.DesktopHeight = 600 ;$oRdpClient.ColorDepth = 16 ;$oRdpClient.Fullscreen = True ;$oRdpClient.AdvancedSettings3.SmartSizing = True $oRdpClient.ConnectingText = "Verbindung wird aufgebaut. Bitte warten..." $oRdpClient.DisconnectedText = "Verbindung wurde getrennt." $oRdpClient.Connect() While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop EndSelect WEnd Func Run_OnLoginComplete() MsgBox(0, "Achtung", "Login Complete!") EndFunc GUIDelete() Exit
  10. Hello AutoIt-Community! I'm quite new to AutoIt and i want to open a rdp-connection via mstscax (Microsoft RDP-Client ActiveX-Control): #include <WindowsConstants.au3> #include <GUIConstants.au3> #NoTrayIcon $width = 800 $height = 600 GUICreate("Extended Terminal Services Client", $width + 20, $height + 20, -1, -1, $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS) $oRdpClient = ObjCreate("MsTscAx.MsTscAx") $GUIActiveX = GUICtrlCreateObj($oRdpClient, 10, 10, $width, $height) ObjEvent($oRdpClient, "Run_") GUISetIcon("extsc.ico") GUICtrlSetStyle($GUIActiveX, $WS_VISIBLE) GUICtrlSetResizing ($GUIActiveX, $GUI_DOCKAUTO) GUISetState() $oRdpClient.Server = "myServer" $oRdpClient.Domain = "myDomain" $oRdpClient.UserName = "myUsername" $oRdpClient.AdvancedSettings2.ClearTextPassword = "myPassword" ;$oRdpClient.DesktopWidth = 800 ;$oRdpClient.DesktopHeight = 600 ;$oRdpClient.ColorDepth = 16 ;$oRdpClient.Fullscreen = True ;$oRdpClient.AdvancedSettings3.SmartSizing = True $oRdpClient.ConnectingText = "Verbindung wird aufgebaut. Bitte warten..." $oRdpClient.DisconnectedText = "Verbindung wurde getrennt." $oRdpClient.Connect() While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop EndSelect WEnd Func Run_OnLoginComplete() MsgBox(0, "Achtung", "Login Complete!") EndFunc GUIDelete() Exit Connection works fine (besides some graphical issues when resizing...) but i did not get a LoginComplete-Message. Can anybody give me an advice how to get the events from my activeX-Control?
×
×
  • Create New...