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

[ QUOTE ]
Hi Schuckmer,

<font class="small">Code:</font><hr /><pre>
IniRead, gx, %inifile%, Defaults, gx
IniRead, gy, %inifile%, Defaults, gy

If (gx &lt;= 0) Or (gx &gt;= A_ScreenWidth )
LastGuiX = Center
If (gy &lt;= 0) Or (gy &gt;= A_ScreenWidth )
LastGuiY = Center
</pre><hr />

[ QUOTE ]

What this does is ensures that the Gui will be visible. I had problems previously with your script if I switched from using dual monitors to a single monitor, or if I changed the screen resolution. The script would load but the Gui would be "off-screen".


[/ QUOTE ]

Great suggestion, I will add this in [img]/images/graemlins/smile.gif[/img]

[ QUOTE ]

BTW, if you'd rather I PM you with this stuff or do something like this over at overcards.com, let me know.


[/ QUOTE ]

Posting as you did here in the appropriate thread is probably best - this way anyone confident in their editing can add it in themselves if they like before I get around to adding / testing and updating a new version.

Many thanks,

dave.

[/ QUOTE ]

I knew when I first posted this that I had typed it in wrong and thought I had updated it in the posting. But after your reply, I realize I never did the update. The code should actually be:

<font class="small">Code:</font><hr /><pre>
IniRead, gx, %inifile%, Defaults, gx
IniRead, gy, %inifile%, Defaults, gy

If (gx &lt;= 0) Or (gx &gt;= A_ScreenWidth )
gx = Center
If (gy &lt;= 0) Or (gy &gt;= A_ScreenWidth )
gy = Center
</pre><hr />
Reply With Quote