EmEditor (text editor) Forum Index
   Macro Samples
     open or refresh ie and firefox
Register To Post

Threaded | Newest First Previous Topic | Next Topic | Bottom
Poster Thread
robben
Posted on: 11/23/2009 6:39 pm
Not too shy to talk
Joined: 5/1/2009
From:
Posts: 33
open or refresh ie and firefox
ie:
document.Save(document.FullName);
try{
wnd = shell.FindWindow("IEFrame","");
wnd.SetForeground();
shell.SendKeys( "{F5}" );
Sleep(1000);
wnd2 = shell.FindWindow("EmEditorMainFrame3","");
wnd2.SetForeground();
}catch(e){
WshShell = new ActiveXObject( "WScript.Shell" );
WshShell.Run('iexplore.exe '+document.FullName);
}
firefox:
document.Save(document.FullName);
try{
wnd = shell.FindWindow( "MozillaUIWindowClass", "" );
wnd.SetForeground();
shell.SendKeys( "{F5}" );
Sleep(1000)
wnd2 = shell.FindWindow("EmEditorMainFrame3","");
wnd2.SetForeground();
}catch(e){
WshShell = new ActiveXObject( "WScript.Shell" );
WshShell.Run('firefox.exe '+document.FullName);
}

I use sinppets, set up trigger "ie" or "ff".
Threaded | Newest First Previous Topic | Next Topic | Top


Register To Post
 
English čeština Deutsch español français italiano 日本語 한국어 Русский 简体中文 繁體中文