Home Download Screenshots Wiki Plugins Translations Developers Donate Forums/Help Contact Us |
StrokeIt
How to open current webpage in Fx with IE9Posted by pgpayton
It can be done with this autohotkey code, compiled to an exe and ran with strokeit would work.
sData:=FF_RetrievePageName() Loop,Parse,sData,CSV { If A_Index = 1 sURL := A_LoopField Else If A_Index = 2 sTitle := A_LoopField } FF_RetrievePageName() { DllCall("DdeInitializeW","UPtrP",idInst,"Uint",0,"Uint",0,"Uint",0) ; CP_WINANSI = 1004 CP_WINUNICODE = 1200 hServer := DllCall("DdeCreateStringHandleW","UPtr",idInst,"Str","firefox","int",1200) hTopic := DllCall("DdeCreateStringHandleW","UPtr",idInst,"Str","WWW_GetWindowInfo","int",1200) hItem := DllCall("DdeCreateStringHandleW","UPtr",idInst,"Str","0xFFFFFFFF","int",1200) hConv := DllCall("DdeConnect","UPtr",idInst,"UPtr",hServer,"UPtr",hTopic,"Uint",0) ; CF_TEXT = 1 CF_UNICODETEXT = 13 hData := DllCall("DdeClientTransaction","Uint",0,"Uint",0,"UPtr",hConv,"UPtr",hItem,"UInt",1,"Uint",0x20B0,"Uint",10000,"UPtrP",nResult) sData := DllCall("DdeAccessData","Uint",hData,"Uint",0,"str") DllCall("DdeFreeStringHandle","UPtr",idInst,"UPtr",hServer) DllCall("DdeFreeStringHandle","UPtr",idInst,"UPtr",hTopic) DllCall("DdeFreeStringHandle","UPtr",idInst,"UPtr",hItem) DllCall("DdeUnaccessData","UPtr",hData) DllCall("DdeFreeDataHandle","UPtr",hData) DllCall("DdeDisconnect","UPtr",hConv) DllCall("DdeUninitialize","UPtr",idInst) result:=StrGet(&sData,"cp0") return result } run, iexplore.exe %sURL%
While the AHK solution is more preferable and works (at least it should work) in every case and in any app, there are more straightforward StrokeIt-only methods.
You have to create an action that is triggered in FF. Add a command Key - Send Keystrokes. It should contain this: [F6][CTRL_DOWN]ac[CTRL_UP]Replace [F6] with key that makes address bar active. CTRL + ac makes it all to be selected (just to be sure) and puts it on the clipboard. Then comes a command Run - Run Program with something like 'C:\Program Files\Internet Explorer\iexplore.exe' in File. Then another command Windows - Activate Window with 'IEFrame' as class and let's say, about 5000 msec to wait for window to exist. And finally another Key - Send Keystrokes, this time [F6][CTRL_DOWN]v[CTRL_UP][ENTER]to make address bar active, paste the contents of the clipboard into it and press ENTER. Depending on your version of Windows and FF the key to make address bar and the path and window class of Internet explorer may differ, but you should be able to figure those out.
|