Jump to content


Photo

Tinyweb


  • Please log in to reply
166 replies to this topic

#1 Porfirio

Porfirio

    GMC Member

  • GMC Member
  • 1209 posts

Posted 26 February 2007 - 07:39 PM

TinyWeb Dll - Tiny Webbrowser dll

Its very small but works great, it uses atl for create the activex.
I know that theres others, even better than mine, this one is simple and easy to use ;)
Source is included, it was made in FreeBasic using FBEdit

Get it on my Box

Help
  • tWebCreate(x,y,width,height) - creates the the control on gmwindow
  • tWebGoTo(url) - navigate to the specified url
  • tWebGoBack() - go back in history
  • tWebGoForward() - go forward in history
  • tWebGoHome() - go to home page
  • tWebGoSearch() - go to search page
  • tWebRefresh() - refresh the current page
  • tWebMove() - move the window
  • tWebSize() - resize the window
  • tWebShow() - show or hide the window
  • tWebRelease() - release the interface
Info:
- You can only create one instance of the webbrowser

1.0.0.1 released!
*Added tWebGoHome
*Added tWebGoSearch
*Added tWebRefresh
*Added tWebShow

1.0.0.2 relesed!
*Fixed tWebMove
*Chaged tWebRelease, now you can use it to destroy the window from the game window

***TinyWeb now includes a GameMaker7 Extension
You can now use TinyWeb with GML or with the lib

~ Porfirio Ribeiro

Edited by Porfirio, 13 March 2007 - 12:14 PM.

  • 0

#2 Mini

Mini

    GMC Member

  • New Member
  • 196 posts

Posted 26 February 2007 - 09:52 PM

Awsome Dll, so gunna use this.

And its sooooo easy too!

Hope to see more from you in the future
  • 0

#3 tangibleLime

tangibleLime

    Lunatic

  • GMC Elder
  • 2520 posts
  • Version:GM:HTML5

Posted 26 February 2007 - 09:58 PM

You might want to make it more obvious that you didn't write the code. The author might flip out on you; it's happened to me.
  • 0
Posted ImagePosted Image

#4 cdm319

cdm319

    C++ Programmer

  • New Member
  • 885 posts

Posted 26 February 2007 - 10:31 PM

nice - porfirio returns ;)
  • 0

Chris Matthews, Co-Leader of Digital X

#5 Smarttart62

Smarttart62

    designFUSION™

  • New Member
  • 2619 posts

Posted 27 February 2007 - 04:21 AM

Great job porf! Make it an extension for GM7 now ;).
-Steve
  • 0

#6 Sindarin

Sindarin

    Indie Game Developer

  • New Member
  • 1644 posts
  • Version:GM:HTML5

Posted 27 February 2007 - 09:56 AM

I think it would be useful to be able to disable right-clicking and a function to refresh the current page.
  • 0
GM 8.1 / GM:HTML5 User

#7 Porfirio

Porfirio

    GMC Member

  • GMC Member
  • 1209 posts

Posted 27 February 2007 - 10:42 AM

Awsome Dll, so gunna use this.

And its sooooo easy too!

Hope to see more from you in the future

<{POST_SNAPBACK}>

Thank you!

You might want to make it more obvious that you didn't write the code. The author might flip out on you; it's happened to me.

<{POST_SNAPBACK}>

Lol!!
Ketil0 is my friend, i made that website for us ( me and him ) to share good stuff made in FreeBasic, and that was just a sample he share with us, and i used it
its nothing like WebBrowserGadgect :(
Look at the source...

nice - porfirio returns ::lmao::

<{POST_SNAPBACK}>

Lol, who knows....

Great job porf! Make it an extension for GM7 now :lol:.
-Steve

<{POST_SNAPBACK}>

Yes that was the idea, but since i would not be able to test it i'll wait untill gm7 is out

I think it would be useful to be able to disable right-clicking and a function to refresh the  current page.

<{POST_SNAPBACK}>

I would look more at IWebBrowser2 and see if i can found the way to do it
Well...
Since most ppl like ( apart of Roach ), i may implement more IWebBrowser2 interfaces and give some more things to it
//TODO
*Get the current url
*Refresh -Done!
*GoHome -Done!
*GoSearch -Done!
*Disable right click
*Show\Hide the webbrowser -Done!
*Multi instances of the webbrowser, well dunno if i will do this, then this will not be easy as it is now, and i dont think you guys will need more than one browser in window
*Give some sugestions :lol:

~Porf ;)

Edited by Porfirio, 27 February 2007 - 12:18 PM.

  • 0

#8 celebraces

celebraces

    GMC Member

  • GMC Member
  • 956 posts

Posted 27 February 2007 - 10:43 AM

Haven't tried this, but:
// Refresh
tWebGoTo("java script:location.reload()")

// Homepage
tWebGoTo("about:home")
You need to remove the space between java and script.

Edited by celebraces, 27 February 2007 - 10:49 AM.

  • 0

#9 Porfirio

Porfirio

    GMC Member

  • GMC Member
  • 1209 posts

Posted 27 February 2007 - 11:32 AM

Haven't tried this, but:

// Refresh
tWebGoTo("java script:location.reload()")

// Homepage
tWebGoTo("about:home")
You need to remove the space between java and script.

<{POST_SNAPBACK}>


Yeah, maybe good to do some scripts that make use of javascript
For disable context menu just do:
tWebGoTo("java script:void(document.oncontextmenu=function(){return false;})")
But its not perfect, i'll try to do it with IWebbrowser2

Edit:
1.0.0.1 Released, see first post for changelog

Edited by Porfirio, 27 February 2007 - 12:17 PM.

  • 0

#10 Sindarin

Sindarin

    Indie Game Developer

  • New Member
  • 1644 posts
  • Version:GM:HTML5

Posted 27 February 2007 - 01:23 PM

nice man! keep it up!
  • 0
GM 8.1 / GM:HTML5 User

#11 Daniel-Dane

Daniel-Dane

    GMC Member

  • New Member
  • 3581 posts

Posted 27 February 2007 - 01:58 PM

Haven't tried this, but:

// Refresh
tWebGoTo("java script:location.reload()")

// Homepage
tWebGoTo("about:home")
You need to remove the space between java and script.

<{POST_SNAPBACK}>

about:home doesn't work for me. It did once.
java script:window.home()

  • 0

#12 Porfirio

Porfirio

    GMC Member

  • GMC Member
  • 1209 posts

Posted 27 February 2007 - 02:26 PM

nice man! keep it up!

<{POST_SNAPBACK}>

Thank you

about:home doesn't work for me. It did once.

java script:window.home()

<{POST_SNAPBACK}>

You can now use tWebGoHome

Man i am having a bad luck to get get_Ready to work ;)
I added Reload and Stop by myself but for this one i ask help to Ketil0 :(
  • 0

#13 darkuranium

darkuranium

    GMC Member

  • New Member
  • 229 posts

Posted 02 March 2007 - 01:18 PM

It's JavaScript, not Java Script!
http://en.wikipedia....wiki/Javascript

Nice DLL tho.
  • 0

#14 celebraces

celebraces

    GMC Member

  • GMC Member
  • 956 posts

Posted 02 March 2007 - 01:31 PM

We know what JavaScript is. it's just a filter on the board separates the two words.
  • 0

#15 Porfirio

Porfirio

    GMC Member

  • GMC Member
  • 1209 posts

Posted 03 March 2007 - 10:41 AM

It's JavaScript, not Java Script!
http://en.wikipedia....wiki/Javascript

Nice DLL tho.

<{POST_SNAPBACK}>

We know what JavaScript is. it's just a filter on the board separates the two words.

<{POST_SNAPBACK}>


I realy dont understand whats IPB problem with JavaScript, theres no Tag Called JavaScript or something... Dumb forum system
  • 0

#16 bombshell

bombshell

    GMC Member

  • GMC Member
  • 1607 posts

Posted 08 March 2007 - 06:16 PM

By any chance could you PM me the code coz I'm not aloud to download coz I'm on my sisters laptop,
(Motherboard went on PC)
Or post them eitherway
  • 0
http://bombshell93.deviantart.com/

Our emotions each take the form of a Demon. These Demons roam our mind looking for little quirks they can take advantage of. It is up to us to control out Demons. Or they will consume us and control us. You need to find your angel before your Demons do. Or the devine hero saving the memories and thoughts that keep you going will fall.

#17 Porfirio

Porfirio

    GMC Member

  • GMC Member
  • 1209 posts

Posted 09 March 2007 - 12:53 PM

By any chance could you PM me the code coz I'm not aloud to download coz I'm on my sisters laptop,
(Motherboard went on PC)
Or post them eitherway

<{POST_SNAPBACK}>


What code you mean???
Source code of the dll?
  • 0

#18 bombshell

bombshell

    GMC Member

  • GMC Member
  • 1607 posts

Posted 09 March 2007 - 04:09 PM

Will any of it work as GML!?
  • 0
http://bombshell93.deviantart.com/

Our emotions each take the form of a Demon. These Demons roam our mind looking for little quirks they can take advantage of. It is up to us to control out Demons. Or they will consume us and control us. You need to find your angel before your Demons do. Or the devine hero saving the memories and thoughts that keep you going will fall.

#19 aaaaa3000

aaaaa3000

    GMC Member

  • GMC Member
  • 663 posts

Posted 10 March 2007 - 09:31 AM

so how do you destroy the browser during the game?
  • 0

#20 Porfirio

Porfirio

    GMC Member

  • GMC Member
  • 1209 posts

Posted 10 March 2007 - 10:42 AM

so how do you destroy the browser during the game?

<{POST_SNAPBACK}>


You can use tWebShow( false )
  • 0

#21 azprocede

azprocede

    GMC Member

  • GMC Member
  • 10 posts

Posted 12 March 2007 - 05:51 PM

...WebBrowser dll,  tinyweb
Get it on my Box
Help[list]
[*]tWebMove() - move the window
[*]tWebSize() - resize the window

~ Porfirio Ribeiro

<{POST_SNAPBACK}>



Hey Porfirio

The tinyweb dll is fantastic for me. I'm going to use it in a GM5.0 software I've done (see my web page, unfortunately in french).

I've only one problem with twebmove function, because I think there is a small bug in the code:

You wrote:
Function tWebMove Cdecl Alias "tWebMove"(x As Double, y As Double) As Double Export
hRect.left=x
hRect.right=y
Return MoveWindow(hWeb,x,y,hRect.right,hRect.bottom,TRUE)

where you should write:
Function tWebMove Cdecl Alias "tWebMove"(x As Double, y As Double) As Double Export
hRect.left=x
hRect.top=y
Return MoveWindow(hWeb,x,y,hRect.right,hRect.bottom,TRUE)

The actual function change the witdh to y, which is not what it is supposed to do. If I'm right, can you correct the dll and inform me when it's done?
Any way, thank you for this tool.

AZprocede
  • 0
Posted Image
My site and software -> AZprocede

#22 Porfirio

Porfirio

    GMC Member

  • GMC Member
  • 1209 posts

Posted 12 March 2007 - 08:14 PM

@azprocede

Thank you for finding this bug, FIXED it ^_^
Thats a nice advantage of sharing the source, also is a good way to not lost the src :D

1.0.0.2 Release, see first post for see whats new and download link

Edited by Porfirio, 12 March 2007 - 08:15 PM.

  • 0

#23 azprocede

azprocede

    GMC Member

  • GMC Member
  • 10 posts

Posted 12 March 2007 - 10:54 PM

@azprocede

Thank you for finding this bug, FIXED it ^_^
Thats a nice advantage of sharing the source, also is a good way to not lost the src  :D

1.0.0.2 Release, see first post for see whats new and download link

<{POST_SNAPBACK}>


Thank you for this (very) quick response. It works fine now and I'll be able to use this dll for starting my soft on some web page.
Well done!
  • 0
Posted Image
My site and software -> AZprocede

#24 azprocede

azprocede

    GMC Member

  • GMC Member
  • 10 posts

Posted 13 March 2007 - 06:38 AM

By the way, the main thing missing to this dll is a way to get the current url, of course...
I'm thinking in doing a small but efficient navigator in my soft, as a menu page, for getting news and stuff like that.
But without this url reading function, it would be pour.

Do you think it's a big work, and could you do it, you or ketil0?
Thanks for your answer. Anyway, great job.
  • 0
Posted Image
My site and software -> AZprocede

#25 Porfirio

Porfirio

    GMC Member

  • GMC Member
  • 1209 posts

Posted 13 March 2007 - 12:17 PM

I just uploaded a new package
It includes a GM7 extension
GML or DnD can be now used
GM6 sample still included

Edit:
@azprocede , i'll look for that later

Edit2: Maybe this topic should be moved to Extensions forum?

Edited by Porfirio, 13 March 2007 - 12:19 PM.

  • 0

#26 Account

Account

    GMC Member

  • New Member
  • 265 posts

Posted 16 March 2007 - 09:08 PM

did you think about adding an address bar?
  • 0

#27 Porfirio

Porfirio

    GMC Member

  • GMC Member
  • 1209 posts

Posted 16 March 2007 - 09:30 PM

did you think about adding an address bar?

<{POST_SNAPBACK}>


Well maybe but its not a priority
First whats the point of having a address bar? only if you are going to make some Browser in gm, also theres other dll that provides that

This dll aims to be easy to use ( GML or D&D ) and very small
Good for show a small flash intro on your game, display help in html format ( allot better than rtf ) and other stuff

Simple, small and powerful... Thats TinyWeb :angry:
  • 0

#28 Sindarin

Sindarin

    Indie Game Developer

  • New Member
  • 1644 posts
  • Version:GM:HTML5

Posted 17 March 2007 - 06:36 PM

Have you implemented the no right click menu function?
  • 0
GM 8.1 / GM:HTML5 User

#29 Account

Account

    GMC Member

  • New Member
  • 265 posts

Posted 17 March 2007 - 07:32 PM

did you think about adding an address bar?

<{POST_SNAPBACK}>


Well maybe but its not a priority
First whats the point of having a address bar? only if you are going to make some Browser in gm, also theres other dll that provides that

This dll aims to be easy to use ( GML or D&D ) and very small
Good for show a small flash intro on your game, display help in html format ( allot better than rtf ) and other stuff

Simple, small and powerful... Thats TinyWeb :P

<{POST_SNAPBACK}>


ahh I understand I just like this one better since the other web browser has the IE symbol beside it. It could always be an optional thing to think about ;)
  • 0

#30 Porfirio

Porfirio

    GMC Member

  • GMC Member
  • 1209 posts

Posted 18 March 2007 - 10:35 AM

Have you implemented the no right click menu function?

<{POST_SNAPBACK}>


No sorry :(

ahh I understand I just like this one better since the other web browser has the IE symbol beside it. It could always be an optional thing to think about :)

<{POST_SNAPBACK}>


Yeah, later i may look at it
  • 0

#31 Blazed Pyro

Blazed Pyro

    Pyro Tech

  • New Member
  • 50 posts

Posted 23 March 2007 - 11:03 PM

....Nice dll, will use in future...
- Pyro
  • 0

#32 Porfirio

Porfirio

    GMC Member

  • GMC Member
  • 1209 posts

Posted 24 March 2007 - 05:25 PM

....Nice dll, will use in future...
- Pyro

<{POST_SNAPBACK}>


Thank you ...
  • 0

#33 roboshadow

roboshadow

    GMC Member

  • New Member
  • 69 posts

Posted 07 April 2007 - 06:03 PM

well how can you make so u can type the url
? tWebGoTo get_string("type url:",""); ?
  • 0
Xzero-Fire
xzerofire


I hate gm7
Hackers wiki coming soon

#34 roboshadow

roboshadow

    GMC Member

  • New Member
  • 69 posts

Posted 07 April 2007 - 06:07 PM

Near mind i just got it

wasn't thinking well lol
!

to search the web for newbies use this:

tWebGoTo(get_string("type url:",""); ) :GM6:

Edited by roboshadow, 07 April 2007 - 07:05 PM.

  • 0
Xzero-Fire
xzerofire


I hate gm7
Hackers wiki coming soon

#35 Porfirio

Porfirio

    GMC Member

  • GMC Member
  • 1209 posts

Posted 08 April 2007 - 11:08 AM

Good that you figured out ::lmao::
  • 0

#36 raist

raist

    GMC Member

  • New Member
  • 77 posts

Posted 18 April 2007 - 07:48 AM

Really useful .dll, thanks for it!
It's ideal for sending highscores to php pages, or showing online content!
  • 0

#37 Porfirio

Porfirio

    GMC Member

  • GMC Member
  • 1209 posts

Posted 18 April 2007 - 08:51 AM

Really useful .dll, thanks for it!
It's ideal for sending highscores to php pages, or showing online content!

<{POST_SNAPBACK}>


Thank you :)
I'm glad you liked
  • 0

#38 jemgames

jemgames

    Untrue Studios - Leader

  • New Member
  • 330 posts

Posted 21 April 2007 - 08:09 AM

But guys, you dont need address bars or right click menus or anything else! Just make a text area that when you press go or whatever it 'tWebGoTo(url)' its so simple! Great 10/10
  • 0

#39 Porfirio

Porfirio

    GMC Member

  • GMC Member
  • 1209 posts

Posted 21 April 2007 - 03:10 PM

But guys, you dont need address bars or right click menus or anything else! Just make a text area that when you press go or whatever it 'tWebGoTo(url)' its so simple! Great 10/10

<{POST_SNAPBACK}>


Thank you, yeah!
  • 0

#40 tdmgames

tdmgames

    GMC Member

  • New Member
  • 1641 posts

Posted 29 April 2007 - 01:01 PM

i'm tryin it

Nice alot like the other Broswer DLLs i've tried :unsure: Keep it up!
  • 0
OH Balls!

Domain change: If any of my links do you not, please PM me and I will send you a working link :)

t3mp3st+Me+BMG = t3mp3st's edited avatar with changing colour effect.

#41 Porfirio

Porfirio

    GMC Member

  • GMC Member
  • 1209 posts

Posted 30 April 2007 - 08:38 AM

i'm tryin it

Nice alot like the other Broswer DLLs i've tried :GM046: Keep it up!

<{POST_SNAPBACK}>


Thank you :GM021:
  • 0

#42 GML-PUNK

GML-PUNK

    DC Productions

  • New Member
  • 460 posts

Posted 04 May 2007 - 06:43 PM

Very cool dll, good job :)
  • 0
PROJECTS | |

#43 Porfirio

Porfirio

    GMC Member

  • GMC Member
  • 1209 posts

Posted 04 May 2007 - 07:23 PM

Very cool dll, good job :)

<{POST_SNAPBACK}>



Thank you very much:p
  • 0

#44 jamiedavmatt

jamiedavmatt

    Ratchet and Clank fan!

  • New Member
  • 349 posts

Posted 09 May 2007 - 06:55 AM

For me nothing comes up in terms of a webpage,(not even this page cannot be displayed) and when i press esc or click the cross it says "unexpected error while running this game"

Please help because i got this to work a whilre back and it was realy great......
  • 0

#45 Porfirio

Porfirio

    GMC Member

  • GMC Member
  • 1209 posts

Posted 09 May 2007 - 12:05 PM

For me nothing comes up in terms of a webpage,(not even this page cannot be displayed) and when i press esc or click the cross it says "unexpected error while running this game"

Please help because i got this to work a whilre back and it was realy great......

<{POST_SNAPBACK}>



Please give me a report

OS version:
IE version:
Do IE works?:

Thank you
  • 0

#46 acevampire

acevampire

    GMC Member

  • New Member
  • 1367 posts

Posted 12 May 2007 - 02:20 AM

this is really cool. Im going to try to add a address bar..
Do you mind if I make this with my school's theme and perhaps...er...sell it to the school :)
  • 0

#47 Danopia

Danopia

    Just another GMC member

  • GMC Member
  • 124 posts
  • Version:GM7

Posted 12 May 2007 - 03:12 AM

this is really cool. Im going to try to add a address bar..
Do you mind if I make this with my school's theme and perhaps...er...sell it to the school :)

<{POST_SNAPBACK}>

If you have Windows XP at school, go with a different programming language. This would work. It's just that GameMaker isn't really... that... errr... good when it isn't a game.

Anyway, good DLL. This would be good for in-game EULAs with formatting or help files. I can see a lot of good uses for this. =)

Edited by Danopia, 12 May 2007 - 03:13 AM.

  • 0

#48 Novice_helper

Novice_helper

    GMC Member

  • New Member
  • 64 posts

Posted 12 May 2007 - 05:13 PM

VERY nice. great dll, i will be sure to use it.
  • 0

#49 raist

raist

    GMC Member

  • New Member
  • 77 posts

Posted 14 May 2007 - 02:16 AM

Function / feature request : tWebReadContent()
Function which can return your webbrowser html content, to GM (as string, or something like that).

- It can be used for getting status of your webpage request, or as answer from your php scripts,...
  • 0

#50 mechanikos

mechanikos

    GMC Member

  • New Member
  • 453 posts

Posted 19 May 2007 - 07:31 PM

How can this dll be used to send highscore to a web page? The dll can activate a php file, but how can I pass variables from GM to a php file?
  • 0