StrokesPlus Forum
                       
StrokesPlus Forum
Home | Profile | Register | Active Topics
Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Lua Scripts
 General Action Scripts
 open the current page with other Browser
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

defpt

18 Posts

Posted - 12/18/2012 :  14:10:01  Show Profile  Reply with Quote
Description£ºit is just open the current page without cookies.

Here is an example for IE£º

if acGetExecutableName(nil,gsx,gsy)~="iexplore.exe"
then
acSendKeys("^l") --Focus on the address bar
acSendKeys("^c") --Copy the URL
local url=acGetClipboardText()
url=string.gsub(url,"https?://","") --URL matching, Here do not need "http://" or "https://"
acRunProgram("C:\\Program Files\\Internet Explorer\\iexplore.exe",url,0, 1)
end

and for Firefox£¨chrome£©£º

if acGetExecutableName(nil,gsx,gsy)~="firefox.exe"
then
acSendKeys("^l") --Focus on the address bar
acSendKeys("^c") --Copy the URL
local url=acGetClipboardText()
--url=string.gsub(url,"https?://",""), Firefox does not need this.
acRunProgram("D:\\Program Files\\Mozilla Firefox\\firefox.exe",url,0, 1) --The path of your Firefox
end

Edited by - defpt on 01/06/2013 20:50:03
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
StrokesPlus Forum © 2011-2018 Rob Yapchanyk Go To Top Of Page
Snitz Forums 2000