Hmm there must be a better way to detect the current resolution... EnumKey would require me to know every device in my network and make a decision based upon what I can enum from it... icky.

Hmm...

I have this now.. but it seems to be working sometimes and not others...

code:
 "Discovering remote resloution:        "

$videokey="\\$MACHINE\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Hardware Profiles\Current\System\CurrentControlSet\Services\"
$VidCard= enumkey("$videokey",$index)
if @error=0
$video=$videokey+$VidCard+"\Device0"
$xres=readvalue("$video","DefaultSettings.XResolution")
else
$xres=640
endif

The problem is on 2K pro machines.. they all have docks... the current res on the one I am testing on is 1024x768 but following the above I get 640x480.. there are several other HWProfiles listed there but current seems to me that it should be CURRENT...

I am confused.... why would this be? The results not why am I confused?
[Smile]
_________________________
Austin Henderson