zxc3 0 Posted May 20, 2005 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) Share this post Link to post Share on other sites
DaleHohm 65 Posted May 20, 2005 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, curlMSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object modelAutomate input type=file (Related)Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded Better Better?IE.au3 issues with Vista - WorkaroundsSciTe 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 Share this post Link to post Share on other sites
MarkMarkMark 0 Posted May 20, 2005 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 Share this post Link to post Share on other sites
zxc3 0 Posted May 20, 2005 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. Share this post Link to post Share on other sites
MarkMarkMark 0 Posted May 20, 2005 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 Share this post Link to post Share on other sites
MarkMarkMark 0 Posted May 20, 2005 (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 May 20, 2005 by MarkMarkMark Share this post Link to post Share on other sites
MHz 80 Posted May 20, 2005 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)) Share this post Link to post Share on other sites
MarkMarkMark 0 Posted May 20, 2005 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 Share this post Link to post Share on other sites
zxc3 0 Posted May 20, 2005 (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 May 20, 2005 by zxc3 Share this post Link to post Share on other sites
zxc3 0 Posted May 20, 2005 I need to make active simply a window with Explorer and to press in him "F5" time five minutes. Share this post Link to post Share on other sites
ReFran 15 Posted May 20, 2005 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 Share this post Link to post Share on other sites