 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
Scratch
Joined: 22 Jan 2009 Posts: 72
|
Posted: Wed Mar 10, 2010 4:11 am Post subject: Screen resolution mismatch AHK <> Videocard : SOLVED |
|
|
>>>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.
Is this a known problem with AHK, the videodriver, or W7?
Last edited by Scratch on Wed Mar 10, 2010 5:34 am; edited 3 times in total |
|
| Back to top |
|
 |
Guest
|
Posted: Wed Mar 10, 2010 4:19 am Post subject: Re: Screen resolution mismatch AHK <> Videocard |
|
|
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? |
|
| Back to top |
|
 |
Scratch
Joined: 22 Jan 2009 Posts: 72
|
Posted: Wed Mar 10, 2010 4:36 am Post subject: |
|
|
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? |
|
| Back to top |
|
 |
Sean
Joined: 12 Feb 2007 Posts: 2462
|
Posted: Wed Mar 10, 2010 8:28 am Post subject: |
|
|
| 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. |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|