Sign in to follow this  
Followers 0
AceLoc

fast question.

11 posts in this topic

#1 ·  Posted (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 by aceloc

[quote name='AceLoc']I gots new sunglasses there cool.[/quote]

Share this post


Link to post
Share on other sites



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 the

information given there. Look after ClassNameNN, like on this picture

(ClassNameNN : RICHEDIT50W1). In your case it's probably Edit-something.

Share this post


Link to post
Share on other sites

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.

:D


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

Share this post


Link to post
Share on other sites

#4 ·  Posted (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. :D

Edited by aceloc

[quote name='AceLoc']I gots new sunglasses there cool.[/quote]

Share this post


Link to post
Share on other sites

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. :D

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)

Share this post


Link to post
Share on other sites

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 everything

you 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.

Share this post


Link to post
Share on other sites

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 called

v3 SUPPORT!!

and not

"v3 slave coders"

Share this post


Link to post
Share on other sites

so cant you look for me? :/

Yes I can.

.... and now? :D

Share this post


Link to post
Share on other sites

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. :D

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!

:wacko:


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

Share this post


Link to post
Share on other sites

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]

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0