View Single Post
  #87  
Old 12-28-2006, 02:07 AM
easye easye is offline
Senior Member
 
Join Date: Apr 2005
Posts: 112
Default Re: NEW AHK Script: StarsPlanner (Auto Resize / Arrange Tables)

[ QUOTE ]
I was having the same issue with the GUI going off screen. For some reason my co-ords were -32000/-32000, I have no idea why though.

Now I have a small issue with how I start it. If I just Double Click the script, it works fine and the GUI pops up in the 0, 0 hole (new co-ords I set for it in the default) but if I start the script using another .ahk.... it is off screen again.

bit of a brain twister, cannot see why it would be any diff. anyways, just thought I would mention it.

Thanks as always dave, your a monsta!

[/ QUOTE ]

I've had similar problems with other scripts. What is most likely happening is that the working directory is different when you launch it from another script. So you actually have two ini files, one in the folder that contains the script itself (when u run the script directly). And most likely another one in the script that you have launching Stars Planner.

The way to fix this is to explicitly state what the working directory is. In the Run command, do something like:

<font class="small">Code:</font><hr /><pre> Run, F:\My Documents\AHK\Poker\StarsPlanner\StarsPlanner-v0.03b.ahk, F:\My Documents\AHK\Poker\StarsPlanner\ </pre><hr />

The path after the second comma is the working directory. Then your ini file will stay in the correct directory.
Reply With Quote