Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Module] Save/load window locations
#1
So I was a little annoyed at having to move all the module windows when I load up the bot and went about figuring out how to get it to save the positions.

This plugin is very simple to use. You position all your default FFXIVMinion windows then hit the "Save Window Locations" button. Next time you open the bot, all you need to do is hit the "Load Window Locations" button and the window locations will be pre-set so when you open them, they will be in the same place as last time. I have it bound to a button instead of set when the module loads because if you're like me you occasionally change the game's resolution, and I don't like losing windows off the side because I've saved it there before I re-sized the game window.

The module covers these windows:
FFXIVMinion
MeshManager
SkillBook
Radar
Dev
GatherManager
SkillManager
Skill Editor

It doesn't cover:
Console (this seems to save on its own)
3rd party modules (anything that doesn't come with the basic install of FFXIVMinion)

There's three bugs with this at the moment I'm aware of (and I know how to fix one, I'm just lazy to do it at 2am in the morning). So please read them before you run the module so you don't come in here asking why these things are happening.

First bug has to do with pressing the LOAD button before you've ever saved anything. If you do this, all the windows will default to the top left corner and be shrunk to tiny boxes. There's more enough of the window that you can still select and resize it though, so it wont ruin anything if you mess up and hit LOAD before you hit SAVE (this only applies to the first time you run it). I know exactly how to fix this, and I'll do so in the next couple days if I don't get swamped by work.

Second bug has to do with "MeshManager". For some reason, this window gets its position and size set when it is opened. I can't see any way around this other than the devs changing the way this is handled in their code (so it doesn't pre-set its location to be next to the FFXIVMinion window every time someone opens it). If there is a way, and I'm just too blind to see it please let me know. For now the easy workaround is to just hit the load button again after you open the meshmanager window and it will snap to it's previously saved position :)

Third bug is the all the useless crap in the window ('attention' text field, 'main' group). I forgot about it. I'll remove it next update. Cleaned it up and reduced the default window size so it's just the buttons. If you want to use the new "default size" window, delete the settings file in the ChocMeOut folder. This will also delete any other window settings too, so keep that in mind. Otherwise, just re-size the module window yourself and you'll be fine :)

If you're a dev and would like to see this module support your module, please post in here and I'll make the addition as soon as I can (including adding it to the list above of supported windows, with link to your thread). Otherwise, feel free to use the code in this module to give your own module the ability to save and load its location, but please give me a 'thanks' in your thread :)


Attached Files
.rar   ChocMeOut v2.rar (Size: 1.77 KB / Downloads: 38)
 


Messages In This Thread
[Module] Save/load window locations - by Sil - 10-14-2013, 06:08 PM
RE: [Module] Save/load window locations - by Sil - 10-15-2013, 11:03 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)

We help you win the game.

FFXIV Bot and More.

 

Products