Hendy Posted March 13, 2007 Share Posted March 13, 2007 If this the "MetaFrame Presentation Server" Window is not highlighted, it does not received text being sent to it even though i am using "controlsend" to send the text. Below is the code, can anyone explain why this is not working.Opt("SendKeyDelay", 1)ShellExecute("iexplore.exe", "http://homer/citrix/MetaFrame/auth/login.aspx")WinWaitActive("MetaFrame Presentation Server", "")ControlFocus ("MetaFrame Presentation Server", "", "")ControlSend("MetaFrame Presentation Server", "", "", "{TAB 8}")ControlSend("MetaFrame Presentation Server", "", "", "hyvestra")ControlSend("MetaFrame Presentation Server", "", "", "{TAB}")ControlSend("MetaFrame Presentation Server", "", "", "homer")ControlSend("MetaFrame Presentation Server", "", "", "+{TAB 2}")ControlSend("MetaFrame Presentation Server", "", "", "Administrator")ControlSend("MetaFrame Presentation Server", "", "", "{ENTER}")thanks. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted March 13, 2007 Moderators Share Posted March 13, 2007 Are you using the Beta 3.2.3.0, I know that 3.2.2.0 had issues with ControlSend and blank ControlID parameters.http://www.autoitscript.com/autoit3/files/beta/autoit/ Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
DaleHohm Posted March 13, 2007 Share Posted March 13, 2007 You might want to add the ClassNameNN of the main control inside the browser, e.g. "Internet Explorer_Server1" (parameter 3 of the Control* functions). Dale Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model Automate input type=file (Related) Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded Better Better? IE.au3 issues with Vista - Workarounds SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead? Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble Link to comment Share on other sites More sharing options...
Hendy Posted March 15, 2007 Author Share Posted March 15, 2007 You might want to add the ClassNameNN of the main control inside the browser, e.g. "Internet Explorer_Server1" (parameter 3 of the Control* functions).DaleThanks Dale, after following your advise it works.hendy Link to comment Share on other sites More sharing options...
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