Obrowser jpeg
Mike Matthews - Omnis
omnis at lineal.co.uk
Sat Nov 16 13:48:25 UTC 2024
Thank you, very interesting
Mike
Sent from my iPhone
> On 16 Nov 2024, at 12:40, Kelly Burgess <kellyb at montana.com> wrote:
>
> Caution: This is a message which has originated from outside the organisation. Ensure the sender is trusted and the content is safe before opening links or attachments.
>
>
>
> Hi Mike,
>
> Here's a Mac version of Rudolf's screenshot command line for WIndows.
>
> Note that it will fail to work until you go to Preferences -> Security & Privacy -> Privacy -> Screen Recording and include Omnis in the list of enabled apps for capturing the screen.
>
> Kelly
>
> # get the top window ID
> Calculate script as 'return id of window 1'
> Do $runapplescript(script,result,error) Returns #F
> Calculate windowID as result
>
> # the -c sends to clipboard
> # the -o suppresses the window shadow
> # the -t jpg can be omitted to get the default png type
> Calculate cmdline as con('screencapture -c -o -t jpg -l ',windowID)
> Calculate script as con('do shell script ',kDq,cmdline,kDq)
> Do $runapplescript(script,result,error) Returns #F
>
> # recover image from the clipboard
> Paste from clipboard iPicture
> Calculate $cinst.$objs.dfPicture.$rawpictformat as pictformat(iPicture)
> Redraw dfPicture
> _____________________________________________________________
> Manage your list subscriptions at https://linkprotect.cudasvc.com/url?a=https%3a%2f%2flists.omnis-dev.com&c=E,1,wPhDz0YUQ_QOR4DxWkXfSsSI0zt-dbqXgS3e4eboDSwXlCDL_uc5QsItsn8ILdoZ1L6kQKQ-uw5mV4ZTc_3SpIxmEjGw748c7QPI_hvMPFoFhA,,&typo=1
> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
More information about the omnisdev-en
mailing list