How can i Press Printscreen button through robot

activities

#1

I am Unable to find any activity which helps in pressing PrtSc button in windows


#2

You do not really need to do this as there is an activity called Take Screenshot. You need to call this activity and save the result to an image variable type which can then be saved using the Save Image activity.

RD


#3

Thanks for rply .
i know about take screenshot activity but we have an internal application where youi just press prntscreen and the screenshot is saved in the application .
i just changed the key combination for that application as a work around .


#4

Try this incase if you still need

image


#5

not working


#6

See if this works.

printScreen.xaml (5.7 KB)


Screenshot using UIPath terminals
#7

@dennis

This will take the current active window only so … make sure just for reliability to make active your application window before to call this :slight_smile:

Their is one more way by getting window Rectangle bound and then Using Bitmap and graphichs lib you can achieve but that will produce same result as of like Take Screenshot activity.

Above one is short and Good to take current active screen which is good in mostly needed cases :slight_smile: @vvaidya :+1:

Regards…!!
Aksh


#8

Correct. This is not selector based screenshot, it will capture your entire monitor as no bounds were set.

Also if you have any third party Image capture application installed for eg: Greenshot , you will have to check if that is getting triggered with this Key event or its working fine.