AutoHotkey Community

It is currently May 27th, 2012, 4:46 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: March 10th, 2010, 5:11 am 
Offline

Joined: January 22nd, 2009, 3:43 pm
Posts: 84
>>>UPDATE: I found the problem/solution, text and icons where scaled up to 150% under W7 personalisation, set back to 100%, still strange that dxdiag is not affected by this and retrieves the right resolution while sysget don't, other dllcall? Anyway if any of you run into this, you know how to solve, thanks for you input<<<

I run 1920 * 1200 on Nvidea GT220 in W7

However when id do:

msgbox %A_ScreenWidth%, %A_ScreenHeight%

AHK reports: 1280, 800

When I run dxdiag, windows reports 1920 * 1200

Due to the resolution mismatch i get all kinds of problems when doing imagesearches.:cry:

Is this a known problem with AHK, the videodriver, or W7?


Last edited by Scratch on March 10th, 2010, 6:34 am, edited 3 times in total.

Report this post
Top
 Profile  
Reply with quote  
PostPosted: March 10th, 2010, 5:19 am 
Do you have multiple monitors?...or does your video card have multiple outputs?

Try this example from the help file...

Code:
; Example #2: This is a working script that displays info about each monitor:
SysGet, MonitorCount, MonitorCount
SysGet, MonitorPrimary, MonitorPrimary
MsgBox, Monitor Count:`t%MonitorCount%`nPrimary Monitor:`t%MonitorPrimary%
Loop, %MonitorCount%
{
    SysGet, MonitorName, MonitorName, %A_Index%
    SysGet, Monitor, Monitor, %A_Index%
    SysGet, MonitorWorkArea, MonitorWorkArea, %A_Index%
    MsgBox, Monitor:`t#%A_Index%`nName:`t%MonitorName%`nLeft:`t%MonitorLeft% (%MonitorWorkAreaLeft% work)`nTop:`t%MonitorTop% (%MonitorWorkAreaTop% work)`nRight:`t%MonitorRight% (%MonitorWorkAreaRight% work)`nBottom:`t%MonitorBottom% (%MonitorWorkAreaBottom% work)
}

...does any monitor report the correct size?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: March 10th, 2010, 5:36 am 
Offline

Joined: January 22nd, 2009, 3:43 pm
Posts: 84
1 monitor, I tried the sysget, sysget reports:1 monitor 1280 * 800

Videocard it has the following outs:

D-Sub (VGA), DVI-I, HDMI

of wich only the DVI is used/connected, no funny software desktop extensions running

Its not tied to the specific resolution either, if I change to 1024 * 768, or 720p, or 800 * 600 I still get different mismatches from sysget

Maybe AHK gets its wrong info from looking at a wrong place in the registry or maybe have to delve deeper in the Nvidea control panel to see if I can specify the defaults for each port ???

Still, its funny that dxdiag recognizes the correct setting, while sysget don't, where does dxdiag look that sysget doesn't?

or is there a way to instruct/force a resolution manually to AHK?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 10th, 2010, 9:28 am 
Offline

Joined: February 12th, 2007, 7:54 am
Posts: 2462
It can be a problem of nVidia cards. My previous nVidia card was not working well with Win7. Your option may be either to update the driver of your card or to replace with an ATI card which I took and has been working flawlessly so far with Win7.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: 0x150||ISO, Bing [Bot] and 59 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