Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > New Scripting Engine (GS2)
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 05-18-2006, 10:11 PM
excaliber7388 excaliber7388 is offline
Banned
excaliber7388's Avatar
Join Date: Jul 2005
Location: US
Posts: 5,229
excaliber7388 can only hope to improve
Send a message via AIM to excaliber7388
openurl2()

Is there anyway to set the X/Y of the website window? Like using a gui or something? If I cannot put the openurl in a gui window, how would I close that wndow, without pushing the X, I want it to close when a player pushes a button

Last edited by excaliber7388; 05-18-2006 at 10:50 PM..
Reply With Quote
  #2  
Old 05-18-2006, 11:13 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
I think there is a way to (for instance) script so a GUI window displays a website, but.. hmm.. I´ll look into it, I might be gravely misstaken.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #3  
Old 05-19-2006, 02:49 AM
excaliber7388 excaliber7388 is offline
Banned
excaliber7388's Avatar
Join Date: Jul 2005
Location: US
Posts: 5,229
excaliber7388 can only hope to improve
Send a message via AIM to excaliber7388
I would want the site to be displayed in the window, and I can't find that anywhere.
Reply With Quote
  #4  
Old 05-19-2006, 03:56 AM
Chicken_l33t Chicken_l33t is offline
Banned
Join Date: Sep 2002
Location: NewZealand
Posts: 467
Chicken_l33t is on a distinguished road
openurl javascript:window.open("http://forums.graalonline.com","NewWindow",'screenx=400,s creeny=400');

Try this it's a bit buggy doing it in offline mode because it closes if I set the width and height, but may be different online.
Reply With Quote
  #5  
Old 05-19-2006, 04:14 AM
Chicken_l33t Chicken_l33t is offline
Banned
Join Date: Sep 2002
Location: NewZealand
Posts: 467
Chicken_l33t is on a distinguished road
Blah i'm clicking edit, but nothings happening.

openurl2 javascript:window.open("http://forums.graalonline.com","NewWindow",'screenx=400,s creeny=400',500,500;

Try that aswell, but be warned it lagged like hell when I did it offline so yeh.
Reply With Quote
  #6  
Old 05-19-2006, 03:21 PM
excaliber7388 excaliber7388 is offline
Banned
excaliber7388's Avatar
Join Date: Jul 2005
Location: US
Posts: 5,229
excaliber7388 can only hope to improve
Send a message via AIM to excaliber7388
Once again, I'm away from home so I can't test this right now, but can the window also be closed on command? Like you can close gui windows with hide()?
Reply With Quote
  #7  
Old 05-19-2006, 05:19 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
No, that would just open a window with your default webbrowser.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #8  
Old 05-19-2006, 07:32 PM
excaliber7388 excaliber7388 is offline
Banned
excaliber7388's Avatar
Join Date: Jul 2005
Location: US
Posts: 5,229
excaliber7388 can only hope to improve
Send a message via AIM to excaliber7388
Quote:
Originally Posted by xXziroXx
No, that would just open a window with your default webbrowser.
Yeah, I know, it's still helpfull, but I had hoped to be able to close everything at the same time. Does it allow the player to type in a new URL, or is it like openurl2, where they can't? Right now, I'm using a gui window to direct the player to different sites. It works fine, but I needed to be able to size the screen, and place the x/y, and have it close when the player pushes the close button on the gui (it's an actual button, it's a secret project, or I'd reveal more)
Reply With Quote
  #9  
Old 05-19-2006, 09:17 PM
excaliber7388 excaliber7388 is offline
Banned
excaliber7388's Avatar
Join Date: Jul 2005
Location: US
Posts: 5,229
excaliber7388 can only hope to improve
Send a message via AIM to excaliber7388
Neither of these work, the one will not work with a variable in its name, and the other shows an error in the RC window
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 06:50 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.