ID:264166
 
Code:
obj/hub/x
name = "Options"
icon='Stuff.dmi'//this makes the obj's icon
icon_state="Options"
screen_loc="1,1"//this is the obj's screen location
Click()
winshow(usr,"Browser",1)


Problem description: This brings it up, but not in front of the main window and its quite annoying. Any suggestions? (not continuing the code until it works)

I can't remember how to fix it right now, but I can provide an alternative.

Put the browser on the default window and just winset() the browser's is-visible parameter.

So it should look like this;

// blah blah blah..
// same here
Click()
winset(usr,"Browser","is-visible=\"TRUE\"")
In response to Andre-g1
Didn't work =[ but thanks for trying
In response to Andre-g1
You don't need the extra quotes. is-visible=true is fine.
In response to Andre-g1
Er, winshow() basically does that.

I think what you want to winset() is "focus=true"
In response to GhostAnime
Doesn't focus just make it selected ? According to what he said it's appearing under.. Or would making it selected make it the top window ?