Jump to content


Photo

Browser Opener


  • Please log in to reply
8 replies to this topic

#1 Hazard1317

Hazard1317

    GMC Member

  • New Member
  • 20 posts

Posted 29 October 2006 - 06:03 PM

Hey Everybody !!!!!

::lmao::

DLL: Browser_Function.dll
Size: 5 KB
Link: http://www12.asphost...rowser_Open.zip
Website Link: (There are other dlls) http://www12.asphost4free.com/solver/
Author: Solver (aka Hazard)

DLL Description

Opens a new browser window with the given url.

How To Use ?

url=get_string("Enter the website [B]url [/B](e.g http://www.microsoft.com)","http://www.microsoft.com")
global.browser = external_define('Browser_Function.dll','OpenBrowser',dll_stdcall,ty_string,1,ty_string);
external_call(global.browser,[B]url[/B])

Good Luck !!! :)
  • 0

#2 uuf6429

uuf6429

    Covac Software

  • New Member
  • 2522 posts
  • Version:Unknown

Posted 29 October 2006 - 06:05 PM

Uhm you could do this in GM with execute_shell()
  • 0

#3 Ghostkeeper

Ghostkeeper

    That's Logic

  • New Member
  • 189 posts

Posted 01 November 2006 - 01:44 PM

Not entirely true.
I didn't test this DLL completely because I don't feel like changing my settings, but I suppose that this DLL opens the user-default browser as it's stored on their computers. With execute_shell() you'll need to know which browser is stored as their default browser in order to pick the right executable. Also you'll need to know where this executable is stored. This will result in having to check people's registery settings and such, which is possible, but not really doable for most novice and advanced windows users.
Of course you can use:
execute_program("C:\Program Files\Internet Explorer\iexplore.exe",get_string("Enter the website URL.","http://www.microsoft.com/"),false);
But that will open up IE only if it's in that directory, and it will open even if the user has set FireFox at it's default browser.

EDIT: Forgot to add: with Internet Explorer 7 (beta stage) it will open the website in a new tab, not a new window.

Edited by Ghostkeeper, 01 November 2006 - 01:47 PM.

  • 0

#4 39ster

39ster

    GMC Member

  • GMC Member
  • 898 posts

Posted 01 November 2006 - 03:58 PM

Not entirely true.
I didn't test this DLL completely because I don't feel like changing my settings, but I suppose that this DLL opens the user-default browser as it's stored on their computers. With execute_shell() you'll need to know which browser is stored as their default browser in order to pick the right executable. Also you'll need to know where this executable is stored. This will result in having to check people's registery settings and such, which is possible, but not really doable for most novice and advanced windows users.
Of course you can use:

execute_program("C:\Program Files\Internet Explorer\iexplore.exe",get_string("Enter the website URL.","http://www.microsoft.com/"),false);
But that will open up IE only if it's in that directory, and it will open even if the user has set FireFox at it's default browser.

EDIT: Forgot to add: with Internet Explorer 7 (beta stage) it will open the website in a new tab, not a new window.

<{POST_SNAPBACK}>

execute_shell("http://google.com", "");
  • 0

#5 Ghostkeeper

Ghostkeeper

    That's Logic

  • New Member
  • 189 posts

Posted 01 November 2006 - 04:04 PM

execute_shell("http://google.com", "");

<{POST_SNAPBACK}>

Also not the same. My code will make a new window, while this code will search for an old window and bring that window to the given URL. Try it!
  • 0

#6 Smarttart62

Smarttart62

    designFUSION™

  • New Member
  • 2619 posts

Posted 01 November 2006 - 10:05 PM

@Ghostkeeper
Who cares? Wether or not it opens in a new tab, or a new window doesn't matter, programmers invented the back button for a reason.
-Steve
  • 0

#7 Matt13

Matt13

    GMC Member

  • New Member
  • 580 posts
  • Version:Unknown

Posted 02 November 2006 - 08:30 PM

wow.
  • 0

#8 petersvp

petersvp

    GMC Member

  • GMC Member
  • 129 posts

Posted 01 April 2009 - 03:21 PM

Game Maker HAVE ITS OWN that opens a web page in a browser.

action_webpage("http://www.google.com");

So i really don't need this DLL. the above action opens in user's default Web Browser.
I just hate millions of DLLs in my game [it have 7-8 for now]
  • 0

#9 RedSoxFan

RedSoxFan

    GMC Member

  • New Member
  • 42 posts

Posted 01 April 2009 - 11:20 PM

You could also use "execute_shell("explore.exe","http://google.com")". This DLL is already built in and is not needed.
  • 0
Vista x64 | Game Maker 7 & 8 Pro | Firefox ~ Chrome
Date & Time Utility - Link