Main Area and Open Discussion > General Software Discussion
refresh all open browsers automatically?
nudone:
right. that's how i thought it was working - i'm trying to think of what could be stopping it.
i wondered if using multi-monitors would be a problem but it is refreshing IE on a 2nd screen and Chrome on the main screen - so no problem there.
would it make a difference if the process performed slower?
i've 3 other autohotkey scripts running at the same time - could these be challenging this browser refresh script in some way?
skwire:
would it make a difference if the process performed slower?-nudone (April 30, 2010, 03:29 AM)
--- End quote ---
No, it shouldn't.
i've 3 other autohotkey scripts running at the same time - could these be challenging this browser refresh script in some way?-nudone (April 30, 2010, 03:29 AM)
--- End quote ---
Nope. However, if you don't mind, I could re-write it so that each window is focused first and then dealt with. Is this acceptable?
nudone:
Nope. However, if you don't mind, I could re-write it so that each window is focused first and then dealt with. Is this acceptable?
-skwire (April 30, 2010, 03:32 AM)
--- End quote ---
ooh, that's a good idea. please do.
skwire:
Try this:
--- Code: AutoIt ---WinGet, myList, ListLoop, % myList{ myID := myList%A_Index% WinGetTitle, myTitle, % "ahk_id " . myID WinGetClass, myClass, % "ahk_id " . myID If myTitle contains Firefox,Chrome,Maxthon,Opera,Internet Explorer { WinActivate, % "ahk_id " . myID WinWaitActive, % "ahk_id " . myID SendInput, {Ctrl down}r{Ctrl up} Sleep, 250 ; ControlSend, , {Ctrl down}r{Ctrl up}, % "ahk_id " . myID ; ControlSend, , {F5}, % "ahk_id " . myID ; SendInput, {F5} } Else If myClass contains {1C03B488-D53B-4a81-97F8-754559640193} ; Safari. { WinActivate, % "ahk_id " . myID WinWaitActive, % "ahk_id " . myID SendInput, {Ctrl down}r{Ctrl up} Sleep, 250 ; ControlSend, , {Ctrl down}r{Ctrl up}, % "ahk_id " . myID ; ControlSend, , {F5}, % "ahk_id " . myID ; SendInput, {F5} }}
nudone:
excellent. it now appears to work (it got stuck a couple of times but i can't say why).
i've just changed the SendInput to F5 as Maxthon didn't want to respond (even after making sure that ctrl+R did work for it).
perhaps this should be included on Skwire Empire - i think it's a really helpful web development util. i still don't understand why there hasn't been something like this around for years.
i'll send some DC credits later - just waiting for them to go into my account first.
thanks very much for this, skwire.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version