Krol Posted January 30, 2007 Posted January 30, 2007 Anybody know, how i can autologin?#include <GUIConstants.au3>$oRDP = ObjCreate("MsTscAx.MsTscAx") GUICreate("Embedded RDP control Test", 640, 480, -1 , -1, $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS)$GUIActiveX = GUICtrlCreateObj($oRDP, 10, 10, 620, 460)GUISetState()$oRDP.Server = "SERVERNAME"$oRDP.Domain = "DOMAIN"$oRDP.UserName = "USERNAME"$oRDP.Connect()While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop EndSelectWEndGUIDelete()ExitI try: $oRDP.Server = "server"$oRDP.Domain = "domain"$oRDP.UserName = "administrator"$oRDP.PortablePassword ="BLAHBLAH"$oRDP.Connect()but error: The requested action with this object has failed.I have found only these parameters of the password, but I can not use not one propterty PortablePasswordpropterty PortableSaltpropterty BinaryPasswordproperty BinarySaltMethod ResetPasswordHow? Can you help, please?RDP Methods & Properties
BigDaddyO Posted January 30, 2007 Posted January 30, 2007 If the RDP COM object works the same as the .rdp files then you are out of luck. That field is not expecting an actuall password, it's expecting a Password Hash string which would be different on every computer that runs this.See my old post for more info. RDPMike
Krol Posted January 30, 2007 Author Posted January 30, 2007 I have a new problem. It is necessary to send a combination of keys to a window of the terminal, but from bad connection and different login time - it is impossible There are methods But how them to use? Sub OnConnecting Sub OnConnected Sub OnLoginComplete Sub OnDisconnected (ByVal discReason As Long) Thanks.
Krol Posted January 31, 2007 Author Posted January 31, 2007 Sorry I do not understand. You can explain? :">
Krol Posted January 31, 2007 Author Posted January 31, 2007 (edited) $oRDP.Connected return 1 if connect, but system login occupies still certain time (on a miscellaneous), and mine script sends pressing buttons before Desktop show I simply wished to find out if is Sub OnLoginComplete why it cannot be used? Edited January 31, 2007 by Krol
Krol Posted January 31, 2007 Author Posted January 31, 2007 You are right, it is simple now me have interested these Events
AndyDLD Posted June 28, 2007 Posted June 28, 2007 Hi there,i tried your code but i have the same problem described here:Redraw/Clippinghttp://www.autoitscript.com/forum/index.ph...mp;#entry364827Anyone have an idea or solutions for this ?Greets,Andy
lod3n Posted June 28, 2007 Posted June 28, 2007 Clipping problem resolved:#365233 [font="Fixedsys"][list][*]All of my AutoIt Example Scripts[*]http://saneasylum.com[/list][/font]
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