zxc3 Posted May 20, 2005 Share 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) Link to comment Share on other sites More sharing options...
DaleHohm Posted May 20, 2005 Share 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, 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...
MarkMarkMark Posted May 20, 2005 Share 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 Link to comment Share on other sites More sharing options...
zxc3 Posted May 20, 2005 Author Share 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. Link to comment Share on other sites More sharing options...
MarkMarkMark Posted May 20, 2005 Share 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 Link to comment Share on other sites More sharing options...
MarkMarkMark Posted May 20, 2005 Share 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 Link to comment Share on other sites More sharing options...
MHz Posted May 20, 2005 Share 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)) Link to comment Share on other sites More sharing options...
MarkMarkMark Posted May 20, 2005 Share 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 Link to comment Share on other sites More sharing options...
zxc3 Posted May 20, 2005 Author Share 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 Link to comment Share on other sites More sharing options...
zxc3 Posted May 20, 2005 Author Share Posted May 20, 2005 I need to make active simply a window with Explorer and to press in him "F5" time five minutes. Link to comment Share on other sites More sharing options...
ReFran Posted May 20, 2005 Share 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 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