AceLoc Posted July 19, 2006 Posted July 19, 2006 (edited) Run(@ProgramFilesDir & "\Internet Explorer\IEXPLORE.EXE", @ProgramFilesDir & "\Internet Explorer", @SW_MAXIMIZE) Sleep(5000) Send("^o") Sleep(1000) Send("http://whatever") Sleep(2500) Send("{ENTER}") Sleep(2500) Send("{TAB 2}") ;Send("{ENTER}") how to get that in ControlSend: because this is not working: AutoItSetOption("WinTitleMatchMode", 4) $handle = WinGetHandle("classname=Internet Explorer", "") If @error Then MsgBox(4096, "Error", "Could not find correct window.") exit Else $i = 0 Do sleep(5000) ControlSend("handle=" & $handle, "", "", "{^o}") sleep(1000) ControlSend("handle=" & $handle, "", "", "http://whatever") sleep(2500) ControlSend("handle=" & $handle, "", "", "{ENTER}") sleep(2500) ControlSend("handle=" & $handle, "", "", "{TAB 2}") ;ControlSend("handle=" & $handle, "", "", "{ENTER}") $i = $i + 1 Until $i = 1 EndIf Edited July 19, 2006 by aceloc [quote name='AceLoc']I gots new sunglasses there cool.[/quote]
Helge Posted July 19, 2006 Posted July 19, 2006 You haven't filled in the controlID in the third parameter of ControlSend.Open up the "Window Info"-tool that comes with AutoIt and use theinformation given there. Look after ClassNameNN, like on this picture(ClassNameNN : RICHEDIT50W1). In your case it's probably Edit-something.
PsaltyDS Posted July 19, 2006 Posted July 19, 2006 Run(@ProgramFilesDir & "\Internet Explorer\IEXPLORE.EXE", @ProgramFilesDir & "\Internet Explorer", @SW_MAXIMIZE) Sleep(5000) Send("^o") Sleep(1000) Send("http://whatever") Sleep(2500) Send("{ENTER}") Sleep(2500) Send("{TAB 2}") ;Send("{ENTER}") how to get that in ControlSend: because this is not working: AutoItSetOption("WinTitleMatchMode", 4) $handle = WinGetHandle("classname=Internet Explorer", "") If @error Then MsgBox(4096, "Error", "Could not find correct window.") exit Else $i = 0 Do sleep(5000) ControlSend("handle=" & $handle, "", "", "{^o}") sleep(1000) ControlSend("handle=" & $handle, "", "", "http://whatever") sleep(2500) ControlSend("handle=" & $handle, "", "", "{ENTER}") sleep(2500) ControlSend("handle=" & $handle, "", "", "{TAB 2}") ;ControlSend("handle=" & $handle, "", "", "{ENTER}") $i = $i + 1 Until $i = 1 EndIf IE is its own API, seperate from the standard Window APIs. Use Dale Hohm's IE.au3 to manipulate IE windows. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
AceLoc Posted July 19, 2006 Author Posted July 19, 2006 (edited) so cant you look for me? :/ i need it to get worked, in ControlSend ( or that it will work when the screen is minimized) thanks if one of you guys, could. Edited July 19, 2006 by aceloc [quote name='AceLoc']I gots new sunglasses there cool.[/quote]
JSThePatriot Posted July 19, 2006 Posted July 19, 2006 so cant you look for me? :/i need it to get worked, in ControlSend ( or that it will work when the screen is minimized)thanks if one of you guys, could. Sorry to burst your bubble, and maybe someone will, but generally we do not do things for other people. We tend to guide or attempt to guide them in the direction of the answer.JS AutoIt Links File-String Hash Plugin Updated! 04-02-2008Â Plugins have been discontinued. I just found out. ComputerGetInfo UDF's Updated! 11-23-2006 External Links Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more)
Helge Posted July 19, 2006 Posted July 19, 2006 so cant you look for me? :/Of course. Show me papers that you're blind and I'll be glad to help.No, seriously, I think you can pull this one off. I think I said everythingyou need to know to easily do it yourself.Give a man a fish and you feed him for a day.Teach a man to fish and you feed him for a lifetime.
Paulie Posted July 19, 2006 Posted July 19, 2006 so cant you look for me? :/Ok... Whats this forum called?Oh ya...v3 SUPPORT!!So...we will give you SUPPORT!! to help you figure things out, but we dont tend to "do" things for you.Thats why the forum is calledv3 SUPPORT!!and not"v3 slave coders"
PsaltyDS Posted July 19, 2006 Posted July 19, 2006 so cant you look for me? :/i need it to get worked, in ControlSend ( or that it will work when the screen is minimized)thanks if one of you guys, could. Did you read my post? It just doesn't work that way. ControlSend won't talk to a field in an HTML document inside IE. Those are not "controls" in the AutoIT sense used by ControlSend(). To interface with things in a web page use the IE.au3 UDF by Dale Hohm that I linked above.People on this forum (very sensibly) don't just write code on request. They mostly support you in writing your own code. Check out the IE.au3 UDF and write some code. If it doesn't work, post it and ask for SUPPORT, and you'll get it!Cheers! Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
AceLoc Posted July 19, 2006 Author Posted July 19, 2006 i mean it need to work minimized, that aint possible with IE.au3 or is it? [quote name='AceLoc']I gots new sunglasses there cool.[/quote]
Briegel Posted July 19, 2006 Posted July 19, 2006 What do you think about to write a script and to try it yourself by using helpfile and forumsearch? Post your script if somethig doesn't work. That's nothing you have to shame for it.
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