Jump to content
(Public Beta) HyperSpin 2 is now available for everyone ×

Settings.ini GUI (PCLauncher) Final!


Recommended Posts

  • Replies 79
  • Created
  • Last Reply
Posted

Updated - 8/29/2012 - 3:03 PM

1. Fixed problem where script was putting app path and exe in the AplicationEXE key.

2.Games are now launching correctly. Problem posted in this post is now fixed.

3. Later I will be adding ability to get window title and ahk_class on the fly to fill in the "FadeTitle" key

Posted

Updated - 8/29/2012 - 4:27 PM

1. FadeTitle is no longer optional

2. After selecting your executable and filling in whatever options you may have set you will be presented with a Message Box with instructions to get the "FadeTitle" key filled in. This is rather simple...

  • Press Ok to close the message box - the app will start
  • wait until you can see the App on screen - press *
  • The proper values will be retrieved - Ini key gets filled in
  • Then the App will exit and bring back the gui
  • If the app does not close you will get another Message box - go close the App then push Ok to continue

Hopefully this is the Final update

I would also like to add that sometimes the message box saying the App is still open pops up even when the app appears to be closed. This is because the app didnt close before the script checks to see if it is closed. As long as the app is closed you can just press ok to continue.

Posted

Great job on this dustin. Maybe one day this can be incorporated into HL2.

"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music."

RocketLauncher's Official Home

If you appreciate my work:
donate_button.png

My Apps:
Window Logger
Idle Volume Adjuster
ExplorerRestorer
Rom Folder Cleaner
Module Updater
My Guides:
How To Mod Guncons with Aimtrak

  • 2 weeks later...
Posted

Hey Guess what???

Update - 9/7/2012 - 12:41 PM

1. Added hotkey to refresh GUI

2. Now you can also edit one key at a time for any given game

3. Added video to first post

Posted

When I click browse for a folder and want to cancel out, I can't. It keeps popping up with a msgbox to Please Choose again.

If I leave everything default and click to create the txts, it automatically created a dir in the root of my D drive called txts. I am trying to break it to show you places you may need to add some simple error handling (wanted to know where the default dirs would translate to). Basically, this shouldn't just create a dir in a place I didn't choose.

I see a ton of iniwrite lines, which all look the same to me except for the value written. With that many, I would create a simple function instead where you pass only the value and/or the key you want to write to. This would make your code look a lot cleaner and more manageable if you want to make a change later.

"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music."

RocketLauncher's Official Home

If you appreciate my work:
donate_button.png

My Apps:
Window Logger
Idle Volume Adjuster
ExplorerRestorer
Rom Folder Cleaner
Module Updater
My Guides:
How To Mod Guncons with Aimtrak

Posted
When I click browse for a folder and want to cancel out, I can't. It keeps popping up with a msgbox to Please Choose again.

If I leave everything default and click to create the txts, it automatically created a dir in the root of my D drive called txts. I am trying to break it to show you places you may need to add some simple error handling (wanted to know where the default dirs would translate to). Basically, this shouldn't just create a dir in a place I didn't choose.

There are no defaults... That's the reason for the loop and for the random dir when you tried to use defaults.

I see a ton of iniwrite lines, which all look the same to me except for the value written. With that many, I would create a simple function instead where you pass only the value and/or the key you want to write to. This would make your code look a lot cleaner and more manageable if you want to make a change later.

My skills are moderate at best right now. I am still working on this trying to make it cleaner, but I have a lot of reading to do. As for the Function, that is what i am currently trying to figure out. Thank you for the constructive criticism, I put in as much time as I can in between family and work. Im up for any suggestions.

Posted

Do you want the answer, or do you want to figure it out for yourself? Up to you, however you learn better.

If there are no defaults, what would you consider the default value you assign in the edit box?

"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music."

RocketLauncher's Official Home

If you appreciate my work:
donate_button.png

My Apps:
Window Logger
Idle Volume Adjuster
ExplorerRestorer
Rom Folder Cleaner
Module Updater
My Guides:
How To Mod Guncons with Aimtrak

Posted
Do you want the answer, or do you want to figure it out for yourself? Up to you, however you learn better.

If there are no defaults, what would you consider the default value you assign in the edit box?

Ill try out some stuff before I just give in that easy :).

What's in the edit box by default is just the control label. Its kinda there just as an example. In this case I don't think I could really set any defaults since the script needs to know what system you are working on for it to work correctly. Maybe I should just leave the editbox blank to avoid confusion.

Posted

I would leave it blank and you can make the title of the browse window say what to look for.

"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music."

RocketLauncher's Official Home

If you appreciate my work:
donate_button.png

My Apps:
Window Logger
Idle Volume Adjuster
ExplorerRestorer
Rom Folder Cleaner
Module Updater
My Guides:
How To Mod Guncons with Aimtrak

Posted

I still haven't converted to using functions yet, but I am getting close.

  • I've changed the interface quite a bit
  • Added "Help" buttons
  • No more infinite loops
  • Game Folder only needs to be defined once per system instead of every time
  • Other things I can't think of off the top of my head

9/19/2012

Updated the code above.

  • Now using some functions.
  • Fixed lots of errors.

Please test... I need input

Posted
Quit question though, is there anyway to change the Pc Games path? I accidentally selected the wrong path :(

Good find... That is a small fix. For right now you can open the settings file and delete the value in the settings file then reselect PC Games from the system menu and choose the correct folder.

The key is here

[GamesFolder]
Folder=

Ill fix this and re-up

Posted

Updated and fixed. Would you mind re-downloading and testing it? Just put the wrong path in on purpose then go to the system tab and press the Change GameDir button.

Nevermind for some reason adding that broke stuff. I'll have to check this out some more

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...