Jump to content

Lemons Browser Beta


keen
 Share

Recommended Posts

A browser:

For 15 inch monitor:

#include <GUIConstants.au3>
#include <IE.au3>

Dim $URL = "http://www.autoitscript.com"

_IEErrorHandlerRegister()

$oIE = _IECreateEmbedded()
GUICreate("Lemons Browser - Autoit", 800, 600, _
       (@DesktopWidth - 800) / 2, (@DesktopHeight - 600) / 2, _
       $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS)
$Input = GUICtrlCreateInput("", 10, 10, 540)
$GUIActiveX = GUICtrlCreateObj($oIE, 10, 40, 600, 360)
$Go = GUICtrlCreateButton("Go", 560, 10, 50, 20, $BS_DEFPUSHBUTTON)
$back = GUICtrlCreateButton("Back", 10, 420, 100, 30)
$Forward = GUICtrlCreateButton("Forward", 120, 420, 100, 30)
$Stop = GUICtrlCreateButton("Stop", 340, 420, 100, 30)
$Progress = GUICtrlCreateProgress(500, 600, 100, 25)

GUISetState()      ;Show GUI

_IENavigate($oIE, $URL)

HotKeySet ("^{ESC}", "myExit")
Func myExit ()
Exit
EndFunc

; Waiting for user to close the window
While 1
   $msg = GUIGetMsg()
   Switch $msg
       Case $GUI_EVENT_CLOSE
           ExitLoop
       Case $Back
           _IEAction($oIE, "back")
       Case $Forward
           _IEAction($oIE, "forward")
       Case $Stop
           _IEAction($oIE, "stop")
       Case $Go
           if not @error then guictrlsetdata($URL, $Input)
   EndSwitch
WEnd

GUIDelete()

Exit
oÝ÷ Ù±h¯^âÈf¢x­¢¿Ûjëh×6#include <GUIConstants.au3>
#include <IE.au3>

Dim $URL = "http://www.autoitscript.com"

_IEErrorHandlerRegister()

$oIE = _IECreateEmbedded()
GUICreate("Lemons Browser - Autoit", 1024, 768, _
       (@DesktopWidth - 1024) / 2, (@DesktopHeight - 768) / 2, _
       $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS)
$Input = GUICtrlCreateInput("", 10, 10, 540)
$GUIActiveX = GUICtrlCreateObj($oIE, 10, 40, 600, 360)
$Go = GUICtrlCreateButton("Go", 560, 10, 50, 20, $BS_DEFPUSHBUTTON)
$back = GUICtrlCreateButton("Back", 10, 420, 100, 30)
$Forward = GUICtrlCreateButton("Forward", 120, 420, 100, 30)
$Stop = GUICtrlCreateButton("Stop", 340, 420, 100, 30)
$Progress = GUICtrlCreateProgress(500, 600, 100, 25)

GUISetState()      ;Show GUI

_IENavigate($oIE, $URL)

HotKeySet ("^{ESC}", "myExit")
Func myExit ()
Exit
EndFunc

; Waiting for user to close the window
While 1
   $msg = GUIGetMsg()
   Switch $msg
       Case $GUI_EVENT_CLOSE
           ExitLoop
       Case $Back
           _IEAction($oIE, "back")
       Case $Forward
           _IEAction($oIE, "forward")
       Case $Stop
           _IEAction($oIE, "stop")
       Case $Go
           if not @error then guictrlsetdata($URL, $Input)
   EndSwitch
WEnd

GUIDelete()

Exit
oÝ÷ Ù±h¯_bÈf¢x­¢¿Ûjëh×6#include <GUIConstants.au3>
#include <IE.au3>

Dim $URL = "http://www.autoitscript.com"

_IEErrorHandlerRegister()

$oIE = _IECreateEmbedded()
GUICreate("Lemons Browser - Autoit", 1280, 1024, _
       (@DesktopWidth - 1280) / 2, (@DesktopHeight - 1024) / 2, _
       $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS)
$Input = GUICtrlCreateInput("", 10, 10, 540)
$GUIActiveX = GUICtrlCreateObj($oIE, 10, 40, 600, 360)
$Go = GUICtrlCreateButton("Go", 560, 10, 50, 20, $BS_DEFPUSHBUTTON)
$back = GUICtrlCreateButton("Back", 10, 420, 100, 30)
$Forward = GUICtrlCreateButton("Forward", 120, 420, 100, 30)
$Stop = GUICtrlCreateButton("Stop", 340, 420, 100, 30)
$Progress = GUICtrlCreateProgress(500, 600, 100, 25)

GUISetState()      ;Show GUI

_IENavigate($oIE, $URL)

HotKeySet ("^{ESC}", "myExit")
Func myExit ()
Exit
EndFunc

; Waiting for user to close the window
While 1
   $msg = GUIGetMsg()
   Switch $msg
       Case $GUI_EVENT_CLOSE
           ExitLoop
       Case $Back
           _IEAction($oIE, "back")
       Case $Forward
           _IEAction($oIE, "forward")
       Case $Stop
           _IEAction($oIE, "stop")
       Case $Go
           if not @error then guictrlsetdata($URL, $Input)
   EndSwitch
WEnd

GUIDelete()

ExitoÝ÷ Ù±h¯mbÈf¢x­¢¿Ûjëh×6#include <GUIConstants.au3>
#include <IE.au3>

Dim $URL = "http://www.autoitscript.com"

_IEErrorHandlerRegister()

$oIE = _IECreateEmbedded()
GUICreate("Lemons Browser - Autoit", 1600, 1200, _
       (@DesktopWidth - 1600) / 2, (@DesktopHeight - 1200) / 2, _
       $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS)
$Input = GUICtrlCreateInput("", 10, 10, 540)
$GUIActiveX = GUICtrlCreateObj($oIE, 10, 40, 600, 360)
$Go = GUICtrlCreateButton("Go", 560, 10, 50, 20, $BS_DEFPUSHBUTTON)
$back = GUICtrlCreateButton("Back", 10, 420, 100, 30)
$Forward = GUICtrlCreateButton("Forward", 120, 420, 100, 30)
$Stop = GUICtrlCreateButton("Stop", 340, 420, 100, 30)
$Progress = GUICtrlCreateProgress(500, 600, 100, 25)

GUISetState()      ;Show GUI

_IENavigate($oIE, $URL)

HotKeySet ("^{ESC}", "myExit")
Func myExit ()
Exit
EndFunc

; Waiting for user to close the window
While 1
   $msg = GUIGetMsg()
   Switch $msg
       Case $GUI_EVENT_CLOSE
           ExitLoop
       Case $Back
           _IEAction($oIE, "back")
       Case $Forward
           _IEAction($oIE, "forward")
       Case $Stop
           _IEAction($oIE, "stop")
       Case $Go
           if not @error then guictrlsetdata($URL, $Input)
   EndSwitch
WEnd

GUIDelete()

Exit

ATM it can only go about on autoit.

The Escape button (esc) will take you back to autoit home.

Edited by keen

[center]Kesne's Bar & Grill[/center]

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...