Ok so, I ended up writing a very simple PowerShell script which takes a screenshot of the current active window and sets it into the clipboard :
Code :
#capture the current window
[Windows.Forms.Sendkeys]::SendWait(“%{PrtSc}”)
#pause enough to give time for the capture to take place
start-sleep -Milliseconds 250
And it works, I see the screenshot in the clipboard.
Now on my way to run the Powershell script via UI.Vision RPA with the XRun command.
By the way that topic addressed exactly my issue but I did not find it yesterday.
Actually this here could be an even better option