Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / Weblink=x Command Not Working?

Author
Message
Teabone
Valued Member
18
Years of Service
User Offline
Joined: 8th Jun 2006
Location: Canada
Posted: 30th Apr 2012 08:07
I can't seem to get the command:

weblink=x to work.



maho76
13
Years of Service
User Offline
Joined: 31st May 2011
Location: universe-hub, playing the flute
Posted: 30th Apr 2012 13:37
common problem.

here is a link, look for the discussion between marc steene and flatlander:

http://forum.thegamecreators.com/?m=forum_view&t=191591&b=21&p=8

maybe it helps.

Flatlander
FPSC Tool Maker
17
Years of Service
User Offline
Joined: 22nd Jan 2007
Location: The Flatlands
Posted: 1st May 2012 01:53
I can't remember what we talked about in that thread so I won't be talking about that; but, I did look at the current code (what I believe is the current code for this) and what you need to do is delete the "http://" and just start out with "www". This is the way that they check to see if it is actually a web page. If it doesn't start out with "www" then it won't bother executing the browser which is IE, the default and only browser that can be used for this code.

"A programmer is just a tool which converts caffeine into code . . . reminds me….. if I had one more brain cell, I could have a synapse! woo hoo, Sparky!

~I'm the Terry of the Flatlands.
Teabone
Valued Member
18
Years of Service
User Offline
Joined: 8th Jun 2006
Location: Canada
Posted: 2nd May 2012 00:34
Okay cool I'll try that out. Also, when the browser is launched in front of the game or behind it?

Flatlander
FPSC Tool Maker
17
Years of Service
User Offline
Joined: 22nd Jan 2007
Location: The Flatlands
Posted: 2nd May 2012 02:05
It should be in front of the game; but, it is inconsistent. I made some changes to my own RPG_ code that pretty well makes sure that it is in front.

I'll go ahead and post the "vanilla" code:



The "window to back" command sends the DBPRo window to the back. The parameter "1" of the execute file tells program to stop until the player exits out of the other program which is the browser. Once the player exits then the game continues which will do the next line which is "window to front." This makes sure that the game window is at the front.

"A programmer is just a tool which converts caffeine into code . . . reminds me….. if I had one more brain cell, I could have a synapse! woo hoo, Sparky!

~I'm the Terry of the Flatlands.
Teabone
Valued Member
18
Years of Service
User Offline
Joined: 8th Jun 2006
Location: Canada
Posted: 10th May 2012 02:08
That's pretty cool

JD2
14
Years of Service
User Offline
Joined: 13th Feb 2010
Location:
Posted: 24th May 2012 09:14 Edited at: 25th May 2012 11:02
Quote: "Flatlander -
"

That is a terrible way to open a URL for a number of reasons.

The official source code to FPSC should be changed to instead:

This will open the specified URL in the "weblink=" statement in the default browser on the PC.
If the specified URL isn't preceded by "http://" it is appended.

Quote: "I made some changes to my own RPG_ code that pretty well makes sure that it is in front."

Such as? Heaven forbid you spill your secret sauce.
Flatlander
FPSC Tool Maker
17
Years of Service
User Offline
Joined: 22nd Jan 2007
Location: The Flatlands
Posted: 24th May 2012 20:54
Yup, don't want to spill my secret sauce. That would be a real mess.

"A programmer is just a tool which converts caffeine into code . . . reminds me….. if I had one more brain cell, I could have a synapse! woo hoo, Sparky!

~I'm the Terry of the Flatlands.

Login to post a reply

Server time is: 2024-11-24 00:53:16
Your offset time is: 2024-11-24 00:53:16