I´m trying do develop an application that saves my screen while pressing a specific key on keyboard.
There are no problem to do this as long as my application is on top. But if I try to hide my app or try to run in background it doesn´t work with the key.
I have also tried with an automatic save loop like this:
Code: Select all
repeat with m=1 to 4 export snapshot from rect "0,0,800,800" to file "Bild" & m &".png" as PNG wait 4 seconds end repeat
and it works fine while running in background. So the problem is to detect the key in this "mode". But how?
All suggestions are appreciated!
( sorry, forgot to mention it is on Windows10 I´ve tested... )