Post by garry » 04 Jun 2015, 13:55
thank you , I tried this with mozilla , maybe can be modified
Code: Select all
;-------- http://ahkscript.org/boards/viewtopic.php?f=27&t=8012 ---
f1:="http://ahkscript.org/boards/index.php"
f2:="http://www.timeanddate.com/"
;xxa=Shell.Explorer
xxa=Mozilla.Browser
gui,new
Gui, Add, Button, x1200 yp w40 gA1 , <
Gui, Add, Button, x1260 yp w40 gA2 , >
Gui, Add, Tab2,x0 y0 gTabchange vTabnumber, General|New
Gui,Tab,General
Gui, Add, ActiveX, w1280 h700 vWB1, %xxa%
Gui,Tab,New
Gui, Add, ActiveX, w1280 h700 vWB2, %xxa%
Gui,Show
WB1.Navigate(f1)
WB2.Navigate(f2)
Return
Guiclose:
exitapp
A1:
if (Tabnumber="General")
wb1.GoBack()
if (Tabnumber="New")
wb2.GoBack()
Return
A2:
if (Tabnumber="General")
wb1.GoForward()
if (Tabnumber="New")
wb2.GoForward()
Return
Tabchange:
GuiControlGet, TabNumber
Return
;-----------------------
DisableSetRedraw() {
static _ := OnMessage(0x0B, "DisableSetRedraw") ; WM_SETREDRAW = 0x0B
return 0
}
;========================================================================
thank you , I tried this with mozilla , maybe can be modified
[code]
;-------- http://ahkscript.org/boards/viewtopic.php?f=27&t=8012 ---
f1:="http://ahkscript.org/boards/index.php"
f2:="http://www.timeanddate.com/"
;xxa=Shell.Explorer
xxa=Mozilla.Browser
gui,new
Gui, Add, Button, x1200 yp w40 gA1 , <
Gui, Add, Button, x1260 yp w40 gA2 , >
Gui, Add, Tab2,x0 y0 gTabchange vTabnumber, General|New
Gui,Tab,General
Gui, Add, ActiveX, w1280 h700 vWB1, %xxa%
Gui,Tab,New
Gui, Add, ActiveX, w1280 h700 vWB2, %xxa%
Gui,Show
WB1.Navigate(f1)
WB2.Navigate(f2)
Return
Guiclose:
exitapp
A1:
if (Tabnumber="General")
wb1.GoBack()
if (Tabnumber="New")
wb2.GoBack()
Return
A2:
if (Tabnumber="General")
wb1.GoForward()
if (Tabnumber="New")
wb2.GoForward()
Return
Tabchange:
GuiControlGet, TabNumber
Return
;-----------------------
DisableSetRedraw() {
static _ := OnMessage(0x0B, "DisableSetRedraw") ; WM_SETREDRAW = 0x0B
return 0
}
;========================================================================
[/code]