JustinReno Posted September 29, 2007 Share Posted September 29, 2007 (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 September 29, 2007 by JustinReno Link to comment Share on other sites More sharing options...
Draygoes Posted September 29, 2007 Share Posted September 29, 2007 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. Link to comment Share on other sites More sharing options...
JustinReno Posted September 29, 2007 Author Share Posted September 29, 2007 I guess, I thought it would be cool to see how small a web browser could be. Link to comment Share on other sites More sharing options...
Valuater Posted September 29, 2007 Share Posted September 29, 2007 this isn't running smoothly...Maybe due to 2 GUIGetMsg() If GUIGetMsg() = -3 Then Exit If GUIGetMsg() = $Button1 Then ???? 8) Link to comment Share on other sites More sharing options...
AlmarM Posted September 29, 2007 Share Posted September 29, 2007 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. Link to comment Share on other sites More sharing options...
Uten Posted September 29, 2007 Share Posted September 29, 2007 (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 September 29, 2007 by Uten Please keep your sig. small! Use the help file. Search the forum. Then ask unresolved questions :) Script plugin demo, Simple Trace udf, TrayMenuEx udf, IOChatter demo, freebasic multithreaded dll sample, PostMessage, Aspell, Code profiling Link to comment Share on other sites More sharing options...
JustinReno Posted September 29, 2007 Author Share Posted September 29, 2007 @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! Link to comment Share on other sites More sharing options...
WeMartiansAreFriendly Posted September 29, 2007 Share Posted September 29, 2007 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() Link to comment Share on other sites More sharing options...
JustinReno Posted September 29, 2007 Author Share Posted September 29, 2007 WOW! I never thought about putting the inputbox like that! Link to comment Share on other sites More sharing options...
JustinReno Posted September 29, 2007 Author Share Posted September 29, 2007 UPDATED!!!!!!!! CHECK first post! Link to comment Share on other sites More sharing options...
NELyon Posted September 29, 2007 Share Posted September 29, 2007 Maybe change the title "Probably the smallest IE skin" Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now