Re: Simple 'screensaver' launcher
Re: Simple 'screensaver' launcher
- Subject: Re: Simple 'screensaver' launcher
- From: Paul Berkowitz <email@hidden>
- Date: Wed, 20 Dec 2000 10:09:33 -0800
On 12/20/00 9:19 AM, "Carl West" <email@hidden> wrote:
>
Phi Sanders wrote:
>
>
>
> The blackwatch screen saver includes some source code,
>
> apparently for a minimal screen saver...
>
>
It's C code for dealing with "two Gestalt selectors, 'SAVR' (screen
>
saver attributes) and 'SAVC' (screen saver control)."
>
>
I've heard of 'Gestalt' and was guessing that's what I'd have to deal
>
with to make an idle-for-x-minutes application launcher. Does AS have
>
access to Gestalt?
Akua Sweets; if you can figure this out, maybe it will help:
system value : Get/Set a low memory global (crash MacOS X). Enums can be
added as needed with XYYY where YYY is the low memory hex value and X is the
format to return.
system value [ lm system version/lm button up/lm key map/lm mouse/lm
icon use QD/lm current font/lm current font size/lm current font face/lm
file select volume/lm file select directory/lm top of memory/lm screen V
res/lm screen H res/lm system event mask/lm random seed/lm ticks/lm time/lm
boot drive/lm last key/lm keyboard type/lm sound volume/lm sound level/lm
ROM85/lm port B use/lm double click time/lm caret time/lm screen dump
enabled/lm scrap size/lm scrap count/lm scrap name/lm app font/lm font scale
disable/lm dialog font/lm hardware config/lm system font/lm system font
size/lm menu bar height/lm fractional font enable/lm debugger flags/lm
relative CPU speed/lm hilite color/lm current app/lm system name/lm finder
name] -- The global you wish to access.
[at address string] -- The hex address of the location you wish to
access.
[from gestalt string] -- The four-character Gestalt code to inquire
[bit small integer] -- The bit to test (and return a boolean).
[set with anything] -- The value you wish to replace it with.
[as type class] -- The type of return (and length of data to
set/get) to use. (When using 3at address2, Akua Sweets won9t know how to
format the data - so this is necessary and defaults to short integer.)
[dereferencing boolean] -- The contents are the address of the real
thing you want - sanity checking is performed and will return a 3parameter
error2 if the value is crazy.
Result : anything -- The value from the low memory global.
--
Paul Berkowitz