AutoHotkey Community

It is currently May 27th, 2012, 7:49 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 33 posts ]  Go to page Previous  1, 2, 3
Author Message
 Post subject:
PostPosted: April 25th, 2006, 12:07 am 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
Thanks for the interesting links. Here's some others that get to the heart of the matter. They seem to indicate that there may not be any solution that works on all display drivers on all XP systems:

http://support.microsoft.com/default.as ... -us;177795
http://www.codeproject.com/gdi/detectfo ... xx552648xx


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 26th, 2006, 10:37 pm 
Offline

Joined: April 21st, 2006, 11:25 pm
Posts: 56
Location: East Coast, USA
Thanks for the links. I was starting to think I had a freak XP installation or something.

I haven't had time to change the script, but I'm thinking I can create the window, then check the sizes of everything and use GuiControl, Move to change things as needed before showing it.


Quote:
Chris:

I believe the correct way to solve this is have the program recognize units other than pixels (like HTML and CSS do). Such a syntax might look something like x+80em. Although I'll add this to the to-do list, other things are a higher priority at the moment.


Pretty Please? :D


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 9th, 2006, 10:56 am 
Offline

Joined: June 7th, 2006, 8:10 pm
Posts: 19
Zippo wrote:
Thanks for the links. I was starting to think I had a freak XP installation or something.

I haven't had time to change the script, but I'm thinking I can create the window, then check the sizes of everything and use GuiControl, Move to change things as needed before showing it.




Sorry for digging old posts, I'm pretty new to AHK.

I had the same problem with DPI setting and fonts on different systems.
It should work on NT based OSes, but I have not tested it on 9x.

My current testing solution is something like this:
Code:
DPI_F:=DPIFactor()

Gui, Font, % "s". 8/DPI_F . " W". 400*DPI_F*1.1 , Tahoma
; width *1.1 to compensate for DPI differencies. Might not be needed
DPIFactor()
{
RegRead, DPI_value, HKEY_CURRENT_USER, Control Panel\Desktop\WindowMetrics, AppliedDPI
; the reg key was not found - it means default settings
; 96 is the default font size setting
if (errorlevel=1) OR (DPI_value=96 )
   return 1
else
   Return  DPI_Value/96
}


TNX to Jordi for reg. entry.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 33 posts ]  Go to page Previous  1, 2, 3

All times are UTC [ DST ]


Who is online

Users browsing this forum: bobbysoon, HotkeyStick, just me, migz99 and 69 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group