Sign in to follow this  
Followers 0
JustinReno

Probably the smallest browser

11 posts in this topic

#1 ·  Posted (edited)

This is a VERY simple and small web browser code.

It doesn't have any include files! And its only 12 lines of code. I thought it was sort of cool, but is kind of useless at the same time.

UPDATED!:

Opt("GUIResizeMode",1)
$Form1_1 = GUICreate("Simple Web Browser Mini", 660, 482, "", "", 0x00CF0000, 0x00010000)
$Obj1 = ObjCreate("Shell.Explorer.2")
$Obj1_ctrl = GUICtrlCreateObj($Obj1, 0, 0, 658, 452)
$Button1 = GUICtrlCreateButton("URL", 8, 456, 643, 25, 0)
GUISetState(@SW_SHOW)
While GUIGetMsg() <> -3
    If GUIGetMsg() = $Button1 Then $Obj1.Navigate (InputBox("Simple Web Browser Mini", "What is the URL you want to visit?"))
WEnd
Edited by JustinReno

Share this post


Link to post
Share on other sites



Interesting.


Spoiler

 

"If a vegetarian eats vegetables,What the heck does a humanitarian eat?"

"I hear voices in my head, but I ignore them and continue on killing."

"You have forced me to raise the indifference warning to beige, it's a beige alert people. As with all beige alerts please prepare to think about the possibility of caring."

An optimist says that giving someone power DOESN'T immediately turn them into a sadist. A pessimist says that giving someone power doesn't IMMEDIATELY turn them into a sadist.

 

 

Share this post


Link to post
Share on other sites

I guess, I thought it would be cool to see how small a web browser could be.

Share this post


Link to post
Share on other sites

this isn't running smoothly...Maybe due to 2 GUIGetMsg()

If GUIGetMsg() = -3 Then Exit

If GUIGetMsg() = $Button1 Then

????

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

Lol... Nice done :) Didnt know it was that easy ^^


Minesweeper

A minesweeper game created in autoit, source available.

_Mouse_UDF

An UDF for registering functions to mouse events, made in pure autoit.

2D Hitbox Editor

A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

And what do you do if you have removed IE from your system?..;)

EDIT: It is only small because you don't count the dependencies..:)

Edited by Uten

Share this post


Link to post
Share on other sites

@Valuater: Its a bit awkward, but It did make the script much smaller!

@AlmarM: Thanks! :)

@Uten: I guess it wouldn't work on a computer without IE, and your right, with the dependencies it would be big.

Thanks for the feedback!

Share this post


Link to post
Share on other sites

8 lines :)

$Form1_1 = GUICreate("Simple Web Browser Mini", 660, 482)
$Obj1 = ObjCreate("Shell.Explorer.2")
$Obj1_ctrl = GUICtrlCreateObj($Obj1, 0, 0, 658, 452)
$Button1 = GUICtrlCreateButton("URL", 8, 456, 643, 25, 0)
GUISetState(@SW_SHOW)
While GUIGetMsg() <> -3
If GUIGetMsg() = $Button1 Then $Obj1.Navigate(Inputbox("Simple Web Browser Mini", "What is the URL you want to visit?"))
Wend

Don't bother, It's inside your monitor!------GUISetOnEvent should behave more like HotKeySet()

Share this post


Link to post
Share on other sites

WOW! I never thought about putting the inputbox like that!

Share this post


Link to post
Share on other sites

UPDATED!!!!!!!! CHECK first post!

Share this post


Link to post
Share on other sites

Maybe change the title "Probably the smallest IE skin"

Share this post


Link to post
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
Sign in to follow this  
Followers 0