Jump to content

Recommended Posts

Posted
:( Whether it is possible to use your program, what with periodicity of times five minutes to press button "Refresh"(or Back) in open window Internet Explorer with the address http://www.msn.com (send-keys method)
Posted

:( Whether it is possible to use your program, what with periodicity of times five minutes to press button "Refresh"(or Back)  in open window Internet Explorer with the address http://www.msn.com (send-keys method)

<{POST_SNAPBACK}>

Yes. It is very well suited for something like that. There are also several ways to accomplish this.

Please install and look at the help file. Read about SEND, SLEEP and one of the looping constructs (While, Until etc).

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

Posted

I'll get you started

run("C:\Program Files\Internet Explorer\IEXPLORE.exe www.msn.com")
send("{F5}"); this is your refresh
send("{BACKSPACE}"); this is your back button

you only have to put these things in loops now

Posted

Many thanks for the help, but I wanted to not open new window Internet Explorer,

and to press the button in already open concrete window with the concrete address. And in him to press these buttons.

Posted

Sorry, i dont really understand what you want right now

you say something like this?:

The Internet explorer is already running on the website www.msn.com.

And you want your friend to press the Back and Refresh buttons?

Or do you want to move your mouse to the buttons?

Or some Controlclick?

Explain pls so i can help :(

Posted (edited)

Something like this?

While 1
        Sleep(100)
        If WinExists ( "Welcome to MSN.COM") Then
              WinActivate ( "Welcome to MSN.COM")
              Send("{F5}")
        Endif
Wend
Edited by MarkMarkMark
Posted

Just to note with MarkMarkMark example, use code below to do 5 minutes, instead of 1/10 of a second Sleep between refreshes.

Sleep(5 * (60*1000))
Posted

lol yeah, forgot the 5 min... i always do a sleep(100) in start of a loop... dont know why lol

While 1
        Sleep(5 * (60*1000))
        If WinExists ( "Welcome to MSN.COM") Then
              WinActivate ( "Welcome to MSN.COM")
              Send("{F5}")
        Endif
Wend
Posted (edited)

Thanks and sorry?!

If all over again you open window Explorer with the address www.msn.com, and then you start Code it does not work. The button is not pressed.

And me a problem another the foreign program opens a window. And it is necessary to me only in this window of times five minutes to press button " F5 ". The program should not use the address in a window he can vary.

I need to make active simply a window with Explorer and to press in him "F5" time five minutes.

Edited by zxc3
Posted

I need to make active simply a window with Explorer and to press in him "F5" time five minutes.

<{POST_SNAPBACK}>

Look at above and just do it.

Reinhard

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...