Jump to content

Recommended Posts

Posted (edited)

Hello guys! I have a problem with capturing higher resolution using the _UIA_action("capture").  I need to capture my taskbar using the said code. It works perfectly fine with 1366 x 768 resolution. But when I tried to to a higher resolution, the capturing is a bit off. Is it possible to get the screen resolution first before capturing the taskbar? This is my code.

Func _Get_TaskBar($FileName)
    Local $sPic_Name = $sFileName
    
    _UIA_setVar("Taskbar.mainwindow", "title:=Taskbar;classname:=Shell_TrayWnd")
    Local $sTaskBarPic = $logPath"\TaskBar_"&$sPic_Name ;store of pics
    _UIA_action("Taskbar.mainwindow", "capture", $sTaskBarPic)
    Return $sTaskBarPic
EndFunc

EDIT: Does the _UIA_action("capture")  have limitation on capturing base on resolutions?

Edited by bowker

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...