ScriptUO

Official ScriptUO EasyUO Scripts => Script Debug => Topic started by: LV on October 15, 2012, 03:03:06 PM

Title: A menu questions
Post by: LV on October 15, 2012, 03:03:06 PM
Hi everyone,

I have a question.  Is it possible to grab the current menu window coords (not contpos, the menu).  I don't seem to be able to find a mechanism for it, and in my current project I wanted a way to save the current menu position.


LV
Title: Re: A menu questions
Post by: TrailMyx on October 15, 2012, 03:30:55 PM
Are you talking about menu window coords from within a EUO user interface, or the client display?
Title: Re: A menu questions
Post by: LV on October 15, 2012, 03:40:49 PM
The menu window coords.

For example:

menu show 100 100 100 100

will create a window at 100 100.  if a user moves that window to a preferred location, i wanted to be able to trap the new coords the user prefers and save them as a preference on exit.

I am dawdling at releasing a script :)

Title: Re: A menu questions
Post by: TrailMyx on October 15, 2012, 03:48:01 PM
Hmm, yeh I don't think that's information that's available from within EUO.
Title: Re: A menu questions
Post by: LV on October 15, 2012, 04:18:34 PM
yeah, i have never run accross it either.  i mean i could make external exe that grabs windows handle and determines coords, passes it back through registry...but um, no.  just thought maybe i was missing somthing simple. thanks!



Title: Re: A menu questions
Post by: Endless Night on October 15, 2012, 06:55:01 PM
why not just make 2 vars   %MenuX %menuY  and place them at the top of the script for users to customize if they wish.  Thats what i do anyways.
Title: Re: A menu questions
Post by: LV on October 15, 2012, 07:55:23 PM
thanks endless night. 

yeah, that's what i basically have, was just looking for a way to make better but always physical limitations.  I guess i am running out of reasons for not releasing the script lol.