John117 Posted August 6, 2007 Share Posted August 6, 2007 The following code starts a hidden IE. It was working friday, now it is displaying . . . anyone have any idea why? #include <IE.au3> $oIE = _IECreate("http://messaging.sprintpcs.com/textmessaging/compose", 0, 0); creates hidden IE window ;$oIE = _IECreate("http://messaging.sprintpcs.com/textmessaging/compose"); Creates IE window Full code below. Thanks CODEinclude <IE.au3> #include <Inet.au3> #NoTrayIcon $PublicIP = _GetIP() $oIE = _IECreate("http://messaging.sprintpcs.com/textmessaging/compose", 0, 0); creates hidden IE window ;$oIE = _IECreate("http://messaging.sprintpcs.com/textmessaging/compose"); Creates IE window $oForms = _IEFormGetObjByName($oIE, "composeForm"); Finds the "Form" to send the SMS $oNum1 = _IEFormElementGetObjByName($oForms, "phoneNumber"); Finds the "Phone Number" Field $intNumber = "SprintNumberHere" ; "Phone Number" _IEFormElementSetValue($oNum1, $intNumber); Sets the phone number field $oMessage = _IEFormElementGetObjByName($oForms, "message"); Finds the "Message" field $sMessage = "Your IP address is " & $PublicIP & " as of today's date." ; "Message" _IEFormElementSetValue($oMessage, $sMessage); Sets the Message field $oCallBack = _IEFormElementGetObjByName($oForms, "callBackNumber"); Finds the Callback Field $intCall = "SprintNumberHere" ; "Callback Number" _IEFormElementSetValue($oCallBack, $intCall); Sets the CallBackfield _IEFormSubmit($oForms) Link to comment Share on other sites More sharing options...
DaleHohm Posted August 6, 2007 Share Posted August 6, 2007 All I can think is to insure you are not including an old version of IE.au3... check out the console output from _IE_VersionInfo(). 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...
John117 Posted August 6, 2007 Author Share Posted August 6, 2007 I'm using v2.2-1 on this machine update 5/9/7 When I get home this evening, I will have to check the machine at home that it was working on. Vista, around the same install data, maybe a couple weeks later, we shall see. Thanks for the response. Link to comment Share on other sites More sharing options...
DaleHohm Posted August 6, 2007 Share Posted August 6, 2007 Unfortunately, Vista is a new kettle of fish. Please see this thread for a possible, albeit stinky, workaround: http://www.autoitscript.com/forum/index.ph...c=47920&hl=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...
John117 Posted August 6, 2007 Author Share Posted August 6, 2007 Unfortunately, Vista is a new kettle of fish. Please see this thread for a possible, albeit stinky, workaround: http://www.autoitscript.com/forum/index.ph...c=47920&hl=DaleYeah, thats the weird thing, its working on the machine at home that has vista, just not on this one with XP. I will see if I can dump my #Include folder on this one from it 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