ID:271611
 
I need a way to auto close a window, without clickin the X button
Lt. Pain wrote:
I need a way to auto close a window, without clickin the X button

What's the point,why?


Well anyway, can't you just use right click() or just setup a macro?
In response to Zoltor
I need a way so you enter a vault, and a window pops up with options, but when you leave it goes away, i got the first part done, just need second part.
In response to Lt. Pain
Lt. Pain wrote:
I need a way so you enter a vault, and a window pops up with options, but when you leave it goes away, i got the first part done, just need second part.

Oh, that's diff then the way you made it sound like. You would have to make a leave button that closes the popup window.

I'm not sure on the coding for that, but I'm sure there are alot of info on this(since alot of games use such systems).

PS. lol, infact I even have to learn this for the game I'm making.
You should read the reference:

browse proc
See also:
<< output operator
browse_rsc proc
file proc
link proc
run proc
Format:
usr << browse(Body,Options)
Args:
Body: html text, file, or null to close the browser.
Options: optional parameters
mob
verb
Browse1()
src << browse("test","window=name;size=300x300;can_close=0")
sleep(20)
src << browse(null,"window=name;size=300x300;can_close=0")
In response to Kalzar
Kalzar wrote:
src<<browse(null,"window=name;size=300x300;can_close=0")


It is unnecessary to send any other parameters other than the window parameter when trying to close a browser window.
In response to Zoltor
As UP and Kalzar mentioned, instead of sending any html, just send null (and the window's name if defined)