Test was unsuccessful in Windows XP Pro because Windows XP doesn't have a User Promoted Notification Area, which this script is looking for to retrieve the taskbars width and height.
Windows 7 Taskbar Width & Height
Code: Select all
//Get Taskbar dimensions
GetScreenRes>ScreenWidth,ScreenHeight
Let>WIN_USEHANDLE=1
GetWindowHandle>User Promoted Notification Area,handle
Repeat>TaskbarWidth
Sub>handle,1
GetWindowSize>%handle%,TaskbarWidth,TaskbarHeight
Until>TaskbarWidth=ScreenWidth
Let>WIN_USEHANDLE=0
//Subtract Taskbar Height from Desktop Height
GetScreenRes>DesktopWidth,DesktopHeight
Let>DesktopHeight=DesktopHeight-TaskbarHeight
Let>MSG_WIDTH=300
Let>MSG_HEIGHT=250
//Display Real screen, Taskbar and desktop dimensions without the Taskbar.
MessageModal>Screen Width With Taskbar: %ScreenWidth%%CRLF%Screen Height With Taskbar: %ScreenHeight%%CRLF%%CRLF%Taskbar Width: %TaskbarWidth%%CRLF%Taskbar Height: %TaskbarHeight%%CRLF%%CRLF%Desktop Width Without Taskbar: %DesktopWidth%%CRLF%Desktop Height Without Taskbar: %DesktopHeight%