When running I don't get any error Messages, but also no result: mydesktop.png is not created…
I wonder what might be wrong with my code ?
Code: Select all
@FILE 1,"dummy.jpg",{link=True}
@DISPLAY {hidden=True}
Wait(500)
mybrush=GrabDesktop(Nil)
SaveBrush(mybrush,"/storage/emulated/0/Download/mydesktop.png",#NOTRANSPARENCY,#IMGFMT_PNG)
LIne 2: don't open a Display (Hollywood SplashScreen appears however)
Line 3: Wait 10 seconds
Line 4: Grab the Screen to a Brush; GrabDesktop is not listet as non-supported command in mobile section of the Manual
Line 5: Write Brush to a PNG file; /storage/emulated/0/Download/ exists and has permissions drwxrwx--- and owner root.
I don't know however which is the Default os user for running non-root applications and if if this user is in the same group as root
I chose Dowload/ as it is used by serveral 3rd Party apps already which seem to be able to write to this dir.