gr8leap Posted August 9, 2014 Share Posted August 9, 2014 (edited) I am trying to cobble together an AutoIT script that would allow me to toggle the first tab in Internet Explorer to refresh between 1 and 2 seconds. While working in tab 2 I need to transparently toggle the refresh rates of tab 1 without losing focus. Here is an example that I found elsewhere #include <IE.au3> HotKeySet('{ESC}', 'FNC_EXIT') Local $oIE = _IEAttach('mywebsite!') While 1 Sleep(1) _IEAction($oIE, 'refresh') WEnd Func FNC_EXIT() Exit 0 EndFunc Without knowing what I am doing I am trying to add the function to toggle between refresh times. Can anyone help?Thanks for the assistance! Edited August 9, 2014 by gr8leap Link to comment Share on other sites More sharing options...
computergroove Posted August 10, 2014 Share Posted August 10, 2014 You could make an embedded webpage and make the page refresh outside of the embedded area. Not really an autoit thing but it can be done. I dont know why you would want to do this but I make a virtual machine if I want to have something work independently from what Im working on. Get Scite to add a popup when you use a 3rd party UDF -> http://www.autoitscript.com/autoit3/scite/docs/SciTE4AutoIt3/user-calltip-manager.html Link to comment Share on other sites More sharing options...
gr8leap Posted August 13, 2014 Author Share Posted August 13, 2014 The code example would work exactly as needed if it had the function to switch between 1 and 2 seconds. Right now it only refreshes the tab for 1 second. If I had a toggle to switch refresh rates on the fly that would be amazing. I'm a total noob so its probably easy. Thanks again 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