Please login or register.

Login with username, password and session length
Advanced search  

News:

For WME related articles and tutorials visit WME Resource Center.

Author Topic: Web link in our game  (Read 1022 times)

0 Members and 1 Guest are viewing this topic.

Darryl

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 4
    • View Profile
Web link in our game
« on: January 31, 2016, 09:43:46 PM »

Hello Dears
Is there any way to create a button in game to open a web page?
in other world I want create URL in main menu to open our game website
I look forward to hear a good way
Best Regards
Logged

Azrael

  • Regular poster
  • ***
  • Karma: 9
  • Offline Offline
  • Gender: Male
  • Posts: 155
    • View Profile
    • Mad Orange
Re: Web link in our game
« Reply #1 on: January 31, 2016, 09:57:14 PM »

From the documentation:

Game.OpenDocument(Filename)
Opens a specified document file or internet URL in an associated program.

Parameters
Filename
The filename of the document file to be opened
Remarks
This method uses the Windows extension associations to run the right program. Note that the document file MUST NOT be stored inside the game packages. It must be a regular file and you must reference it either by full filename or a filename relative to the game directory.
Logged
 

Page created in 0.34 seconds with 22 queries.