Jump to content

Recommended Posts

Posted

Hey guys.

I think I make a mistake somewhere but I got a trouble. I have multiple screens and I would like my window created with GuiCreate to Re-open where I closed it previously.

Right now, the windows is always opened on my main screen and not where I moved it the previous time I executed it. I would like to use the history 's position of windows like any other window.

$Form1 = GUICreate("Filter LDAP Creator", 362, 685,-1,-1,BitOR($GUI_SS_DEFAULT_GUI, $WS_OVERLAPPEDWINDOW),$WS_EX_APPWINDOW)

Is that possible ?

Thanks !

  • Moderators
Posted

timmalos,

You will need to save the current position of the GUI on exit and then re-read the saved position when you next open it. You could use either an ini file or the registry to save the coordinates. :)

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

Posted

Okay, so there is no way to use the Microsoft history cache as some other windows do I guess? (From CCleaner for example I can delete this cache and all windows lose their saved position)

  • Moderators
Posted

timmalos,

Quite possibly - the principle is exactly the same - but I have no idea how you would go about it. :)

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...