Widget button to simulate that I have pressed "f12" on keyboard

Hi,

I am tryting to make simple BUTTON in widget to act as “F12” button on keyboard.

So if I click on button it should do same as when I would press “F12” on keyboard.

is there any simple way to do that ?

D.