PDA

View Full Version : Refresh web browser page ( like F5 )


jbrider
13th November 2008, 10:23
Hi all,

After a week of search, I can't find my answer...
I want to refresh all or current page in a web browser.

I try with sendmessage, postmessage... nothing work...


Push $0
FindWindow $0 "IEFrame"
DetailPrint "found IE window"
SendMessage $0 273 6041 0
System::Call 'user32::SendMessage(i,i,i,i) i($0, 273,6041,0)'
System::Call 'user32::PostMessageA(i,i,i,i) i($0,273,6041,0)'
Pop $0


273 is the WM_COMMAND
6041 is what spy++ log when I manually click on the refresh button under ie7 vista.

http://www.eggheadcafe.com/forumarchives/VisualBasicwinapi/Jul2005/post23415399.asp
This page is the only I've found on this subject...

If someone can help me :up:

Many thanks

nsnb
17th November 2008, 14:57
Is this really a function of an installer?

Perhaps you should use AutoHotKey for that?

http://www.autohotkey.com/

HTH :)

jbrider
17th November 2008, 18:40
Because it install a web browser plugin, yes :-)

Thanks for your link, I will take a look.

jbrider
18th November 2008, 12:58
Really amazing !

Many thanks !!

For those interested


IfWinExist ahk_class MozillaUIWindowClass,
WinActivate Send,
{CTRLDOWN}r{CTRLUP}


in a script, then converted in .exe, executed just after the installation. It do the work.