Code: Select all
LibFunc>user32,GetSystemMetrics,number,80
MDL>number
Moderators: Dorian (MJT support), JRL, Phil Pendlebury
Code: Select all
LibFunc>user32,GetSystemMetrics,number,80
MDL>number
Code: Select all
LibFunc>user32,GetSystemMetrics,VIRTUAL_SCREEN_x,76
LibFunc>user32,GetSystemMetrics,VIRTUAL_SCREEN_y,77
LibFunc>user32,GetSystemMetrics,VIRTUAL_SCREEN_w,78
LibFunc>user32,GetSystemMetrics,VIRTUAL_SCREEN_h,79
LibFunc>user32,GetSystemMetrics,MONITOR_count,80
MDL>%MONITOR_count%%CRLF%%VIRTUAL_SCREEN_x%%CRLF%%VIRTUAL_SCREEN_y%%CRLF%%VIRTUAL_SCREEN_w%%CRLF%%VIRTUAL_SCREEN_h%
Code: Select all
RunProgram>cmd /c PowerShell -Command " & {Add-Type -AssemblyName System.Windows.Forms;[System.Windows.Forms.Screen]::AllScreens}" | clip
Code: Select all
BitsPerPixel : 32
Bounds : {X=0,Y=0,Width=1920,Height=1200}
DeviceName : \\.\DISPLAY4
Primary : True
WorkingArea : {X=0,Y=0,Width=1920,Height=1160}
BitsPerPixel : 32
Bounds : {X=-1920,Y=920,Width=1536,Height=960}
DeviceName : \\.\DISPLAY1
Primary : False
WorkingArea : {X=-1920,Y=920,Width=1536,Height=920}
BitsPerPixel : 32
Bounds : {X=1920,Y=0,Width=1920,Height=1200}
DeviceName : \\.\DISPLAY5
Primary : False
WorkingArea : {X=1920,Y=0,Width=1920,Height=1160}
Code: Select all
Let>RP_CAPTURESTDOUT=1
Let>POWERSHELL_COMMAND=Add-Type -AssemblyName System.Windows.Forms;[System.Windows.Forms.Screen]::AllScreens | ConvertTo-Json
RunProgram>cmd /c PowerShell -Command " & {%POWERSHELL_COMMAND%}"
JSONParse>RP_STDOUT,$[*].DeviceName,TEMP_device_name
JSONParse>RP_STDOUT,$[*].Primary,TEMP_is_primary
JSONParse>RP_STDOUT,$[*].Bounds.X,TEMP_x_position
JSONParse>RP_STDOUT,$[*].Bounds.Y,TEMP_y_position
JSONParse>RP_STDOUT,$[*].Bounds.Width,TEMP_x_resolution
JSONParse>RP_STDOUT,$[*].Bounds.Height,TEMP_y_resolution