[ANN] Screen Saver Primer

2010-10-08 Thread Andre Garzia
Folks,

Found another piece of old technology here. A little tutorial on how to
build screensavers for windows using Rev^H^H^HLiveCode.

It is on RevOnline under my account, look for ScreenSaver primer or


http://revonline2.runrev.com/download/stack/517/ScreenSaver-primer

:D

PS: I've built this on 2004 but the info should hold. It worked until XP at
least.

-- 
http://www.andregarzia.com All We Do Is Code.
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Detecting sleep or screen saver

2009-01-17 Thread Bill Vlahos
I would like to be able to detect if the computer has either gone to  
sleep or the screen saver has activated so my program can lock  
itself. How can I detect this?


Bill Vlahos
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Screen saver?

2005-01-31 Thread Frank D. Engel, Jr.
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Mac OS X screen saver modules are *not* applications, but a special 
type of bundle containing an Objective C class with several pre-defined 
methods implementing the screen saver module.  OS X produces an 
Objective C view for the saver to draw into, and tells the screen saver 
when to draw a frame, when to start, when to stop, when to display any 
custom settings during configuration, etc.

An OS X screen saver would be virtually impossible to implement 
directly in Rev.

On Jan 30, 2005, at 5:58 PM, Rick Harrison wrote:
On Jan 30, 2005, at 9:51 AM, James Cass wrote:
Why not just use the built-in Mac OS X screen
saver with your own pictures as the resource
for the slide show?
That's fine, but that's just one type of screen saver.  I might want 
to make a customized screen saver that's actually an application that 
does something a lot cooler than just present a slide show.  :-)

-James

James,
I see... hmm... is it better than Seti, or Tracking Satelites, or 
folding proteins to help fight human diseases?

Let me know, I might be very interested in this!
Rick
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution

- ---
Frank D. Engel, Jr.  [EMAIL PROTECTED]
$ ln -s /usr/share/kjvbible /usr/manual
$ true | cat /usr/manual | grep John 3:16
John 3:16 For God so loved the world, that he gave his only begotten 
Son, that whosoever believeth in him should not perish, but have 
everlasting life.
$
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (Darwin)

iD4DBQFB/k7w7aqtWrR9cZoRAlIPAJEBaHCMSNoDwZKel+vfAe5bPAAxAJ0QqIan
wpB+2drEeSs39EnbM9KLvA==
=ziBB
-END PGP SIGNATURE-

___
$0 Web Hosting with up to 120MB web space, 1000 MB Transfer
10 Personalized POP and Web E-mail Accounts, and much more.
Signup at www.doteasy.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Screen saver?

2005-01-31 Thread James Witte
On Mon, 31 Jan 2005, Frank D. Engel, Jr. wrote:
An OS X screen saver would be virtually impossible to implement directly in 
Rev.
  Off the wall idea: could a shell screen saver be made, which would then 
call off to the MetaCard engine itself with a *very* stripped down stack? 
True, I think would be really slow (maybe, depending on how exactly 
MetaCard draws in MacOSX, and whether that can be pushed directly into the 
NSView that the screensaver is given, and depending on whether the 
MetaCard system could be made a 'delegate' (Obj-C terminology - basically 
something inserted into a message-passing chain like by afterScript).

  Can the MetaCard engine by accessed like this (without having to pay a 
$1500 license for the embedded version..)

Jim
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Screen saver?

2005-01-31 Thread Cassj
 An OS X screen saver would be virtually impossible 
 to implement directly in Rev.
That sounds like a challenge!  :-)  (You said virtually.

Here's a good reference for MacOSX ScreenSavers:
http://www.cocoadev.com/index.pl?ScreenSaver
As it indicates on this website:
ScreenSaver documentation is included in Mac OS X's Developer CD. Once the 
Developer packages are installed, the documentation can be found here:
[Mac OS X 10.0] /Developer/Documentation/ReleaseNotes/ScreenSaver
[Mac OS X 10.1] 
/Developer/Documentation/AdditionalTechnologies/ScreenSaver
[Mac OS X 10.3] 
/Developer/Documentation/UserExperience?/Reference/ScreenSaver

-James


-Original Message-
From: James Witte [EMAIL PROTECTED]
Sent: Jan 31, 2005 11:01 AM
To: How to use Revolution use-revolution@lists.runrev.com
Subject: Re: Screen saver?

On Mon, 31 Jan 2005, Frank D. Engel, Jr. wrote:
 An OS X screen saver would be virtually impossible to implement directly in 
 Rev.

   Off the wall idea: could a shell screen saver be made, which would then 
call off to the MetaCard engine itself with a *very* stripped down stack? 
True, I think would be really slow (maybe, depending on how exactly 
MetaCard draws in MacOSX, and whether that can be pushed directly into the 
NSView that the screensaver is given, and depending on whether the 
MetaCard system could be made a 'delegate' (Obj-C terminology - basically 
something inserted into a message-passing chain like by afterScript).

   Can the MetaCard engine by accessed like this (without having to pay a 
$1500 license for the embedded version..)

Jim
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Screen saver?

2005-01-31 Thread Andre Garzia
On Jan 31, 2005, at 4:47 PM, Cassj wrote:
That sounds like a challenge!  :-)  (You said virtually.
Here's a good reference for MacOSX ScreenSavers:
http://www.cocoadev.com/index.pl?ScreenSaver
As it indicates on this website:
ScreenSaver documentation is included in Mac OS X's Developer CD. Once 
the Developer packages are installed, the documentation can be found 
here:
	[Mac OS X 10.0] /Developer/Documentation/ReleaseNotes/ScreenSaver
	[Mac OS X 10.1] 
/Developer/Documentation/AdditionalTechnologies/ScreenSaver
	[Mac OS X 10.3] 
/Developer/Documentation/UserExperience?/Reference/ScreenSaver

-James
James,
it's very tricky, I think the only way to do it in Rev would be by 
making an external that linked to the needed frameworks and comunicated 
with the Rev app... but I am not having success in mixing Objective-C 
and Externals...

Andre
--
Andre Alves Garzia  2004
Soap Dog Studios - BRAZIL
http://studio.soapdog.org
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Screen saver?

2005-01-30 Thread Rick Harrison
Hi there,
Why not just use the built-in Mac OS X screen saver with your own 
pictures
as the resource for the slide show?  It works great, and there is no 
programming
involved!

Rick
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Screen saver?

2005-01-30 Thread James Cass
Why not just use the built-in Mac OS X screen
saver with your own pictures as the resource
for the slide show?
That's fine, but that's just one type of screen saver.  I might want to 
make a customized screen saver that's actually an application that does 
something a lot cooler than just present a slide show.  :-)

-James
On Jan 30, 2005, at 9:26 AM, Rick Harrison wrote:
Hi there,
Why not just use the built-in Mac OS X screen saver with your own 
pictures
as the resource for the slide show?  It works great, and there is no 
programming
involved!

Rick
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Screen saver?

2005-01-30 Thread Andre Garzia
On Jan 30, 2005, at 12:51 PM, James Cass wrote:
That's fine, but that's just one type of screen saver.  I might want 
to make a customized screen saver that's actually an application that 
does something a lot cooler than just present a slide show.  :-)

-James
yeah, we could create someting like [EMAIL PROTECTED] :-p
--
Andre Alves Garzia  2004  BRAZIL
http://studio.soapdog.org
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Screen saver?

2005-01-30 Thread Rick Harrison
On Jan 30, 2005, at 9:51 AM, James Cass wrote:
Why not just use the built-in Mac OS X screen
saver with your own pictures as the resource
for the slide show?
That's fine, but that's just one type of screen saver.  I might want 
to make a customized screen saver that's actually an application that 
does something a lot cooler than just present a slide show.  :-)

-James

James,
I see... hmm... is it better than Seti, or Tracking Satelites, or 
folding proteins to help fight human diseases?

Let me know, I might be very interested in this!
Rick
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Screen saver?

2005-01-29 Thread Marty Knapp
I need to build a simple screen saver to have available for download on my
wife's web site. I'm assuming that most people will want a windows version
(I'm using a Mac). Would Rev be a good choice to make this? (I have version
2.2.1) I do have a PC if there a good (and inexpensive) alternative. The
screen saver will be free but the site is commercial.

I don't post many question, but I'm a regular reader-- there's a lot of
really cool, generous people on this list. Thanks.


Marty Knapp
Westshore Craftworks LLC
www.westshorecraftworks.com
www.sittingbullies.com

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Screen saver?

2005-01-29 Thread Andre Garzia
Marty,
you can build screensaver with Rev but only for the Windows platform, 
you will not be able to build screensavers for mac or linux, only 
windows...

for your pleasure time I put togheter a little primer teaching how to 
build screensavers for windows with Rev...

it's located at: http://www.soapdog.org/rev/scrsaverprimer.rev
type
go stack URL http://www.soapdog.org/rev/scrsaverprimer.rev;
in the message box to get you running!
cheers and good luck!
andre

On Jan 29, 2005, at 5:24 PM, Marty Knapp wrote:
I need to build a simple screen saver to have available for download 
on my
wife's web site. I'm assuming that most people will want a windows 
version
(I'm using a Mac). Would Rev be a good choice to make this? (I have 
version
2.2.1) I do have a PC if there a good (and inexpensive) alternative. 
The
screen saver will be free but the site is commercial.

I don't post many question, but I'm a regular reader-- there's a lot of
really cool, generous people on this list. Thanks.
Marty Knapp
Westshore Craftworks LLC
www.westshorecraftworks.com
www.sittingbullies.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution

--
Andre Alves Garzia  2004
Soap Dog Studios - BRAZIL
http://studio.soapdog.org
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Screen saver?

2005-01-29 Thread Marty Knapp
On 1/29/05 11:52 AM, Andre Garzia [EMAIL PROTECTED] wrote:

 you can build screensaver with Rev but only for the Windows platform,
 you will not be able to build screensavers for mac or linux, only
 windows...
 
 for your pleasure time I put togheter a little primer teaching how to
 build screensavers for windows with Rev...

Thanks Andre!

Marty Knapp

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Screen saver?

2005-01-29 Thread jbv


Andre,


 you can build screensaver with Rev but only for the Windows platform,
 you will not be able to build screensavers for mac or linux, only
 windows...

I'm afraid that's wrong.
A couple of years ago I built 3 different screensavers for Mac
using MetaCard.
There's a trick (involving another commercial product) and I guess
it must work with Rev as well, although I haven't tried...

JB

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Screen saver?

2005-01-29 Thread Andre Garzia
On Jan 29, 2005, at 6:47 PM, jbv wrote:
I'm afraid that's wrong.
A couple of years ago I built 3 different screensavers for Mac
using MetaCard.
There's a trick (involving another commercial product) and I guess
it must work with Rev as well, although I haven't tried...
JB
JB,
in the primer I talk about this, I talk about me being clueless 
regarding to MacOS Classic savers... but at least for MacOS X it's 
impossible without some hacking for the app must link against lot's of 
frameworks including screensaver.framework, and Rev does not enable 
this...

Andre
--
Andre Alves Garzia  2004  BRAZIL
http://studio.soapdog.org
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Screen saver?

2005-01-29 Thread Andre Garzia
On Jan 29, 2005, at 6:47 PM, jbv wrote:
I'm afraid that's wrong.
A couple of years ago I built 3 different screensavers for Mac
using MetaCard.
There's a trick (involving another commercial product) and I guess
it must work with Rev as well, although I haven't tried...
JB
JB,
and if you could tell me this product or put some links for us to try 
this savers would be great :D
(I am very fond of screen savers)

Cheers
andre
--
Andre Alves Garzia  2004
Soap Dog Studios - BRAZIL
http://studio.soapdog.org
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Screen saver?

2005-01-29 Thread jbv
and AFAIR, roughly at the same time as I was
working on those screensavers for Mac, a Linux
addict told me that it was quite simple to use any
executable file and to configure it in Linux so that
it launches automatically under certain conditions...
but I'm far from being an expert on this...

and btw may be this is also possible under MacOSX...
JB

 On Jan 29, 2005, at 6:47 PM, jbv wrote:

  I'm afraid that's wrong.
  A couple of years ago I built 3 different screensavers for Mac
  using MetaCard.
  There's a trick (involving another commercial product) and I guess
  it must work with Rev as well, although I haven't tried...
 
  JB
 

 JB,

 in the primer I talk about this, I talk about me being clueless
 regarding to MacOS Classic savers... but at least for MacOS X it's
 impossible without some hacking for the app must link against lot's of
 frameworks including screensaver.framework, and Rev does not enable
 this...

 Andre

 --
 Andre Alves Garzia ? 2004 ? BRAZIL
 http://studio.soapdog.org

 ___
 use-revolution mailing list
 use-revolution@lists.runrev.com
 http://lists.runrev.com/mailman/listinfo/use-revolution

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Screen saver?

2005-01-29 Thread jbv
Well, I'm not sure I can publicly explain how to
hack a commercial product...
but actually, a simple google search about tools
for screensavers will give you the answer...
and afair I didn't even buy that product, just used
the trial version...
JB


 and if you could tell me this product or put some links for us to try
 this savers would be great :D
 (I am very fond of screen savers)


___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Screen saver?

2005-01-29 Thread Andre Garzia
For linux, the screen saver is a plain executable, but due to the 
different nature of the window managers, I am left without knowing if 
it is really that simple, like what parameters are passed in Gnome, and 
in KDE, and afterstep... there are so many options

Also in MacOS X, you cannot simply use a executable (I tried) it didn't 
passed the test... For mac classic, there are some settings that must 
go inside the resource fork, but thats all, the rest is you executable.

I'll research more under linux and macos classic and update de primer 
if we find that it is simple enought!

Thanks
andre
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: OS X screen saver - somewhat off topic

2004-04-27 Thread David Vaughan
On 27/04/2004, at 16:40, Sarah Reichelt [EMAIL PROTECTED] 
wrote:

Like the AppleScript, it works fine so long as the screen saver time 
limit hasn't been reached, now to test if it has.

For anyone who is interested, the script is slightly different to the 
one Andre suggested:
  get shell(ps -auxc | grep   quote  ScreenSaverE  quote)
  if it is empty then exit to top
  put word 2 of it into pID
  get shell (kill   pID)
Sarah

If it works, then Transcript now supports the kill command for OS X, 
including nominating the signal type (including 9). You are sending sig 
1 or 15 (I forget which) in the above.

regards
David
Many thanks,
Sarah
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: OS X screen saver - somewhat off topic

2004-04-27 Thread Andre Garzia
if our strategies trying to KILL the process fail, can we go for 
AppleEvents? Can't we send a Hey Quit! apple event direct to the app 
without using AppleScript?

Cheers
Andre
--
Andre Alves Garzia  2004
Soap Dog Studios - BRAZIL
http://studio.soapdog.org
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: OS X screen saver - somewhat off topic

2004-04-27 Thread Dar Scott
On Monday, April 26, 2004, at 11:20 PM, Sarah Reichelt wrote:

I realize that I probably won't be able to wake the screen from sleep,
Fiddling with settings with pmset?

Dar Scott

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: OS X screen saver - somewhat off topic

2004-04-27 Thread Dar Scott
On Monday, April 26, 2004, at 11:20 PM, Sarah Reichelt wrote:

I realize that I probably won't be able to wake the screen from sleep,
/usr/bin/pmset -a dim 0

maybe

Dar

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: OS X screen saver - somewhat off topic

2004-04-27 Thread Dar Scott
On Monday, April 26, 2004, at 11:20 PM, Sarah Reichelt wrote:

I realize that I probably won't be able to wake the screen from sleep, 
but I am tantalizingly close to being able to turn off the screen 
saver.
tell application ScreenSaverEngine to quit

I guess you already tried this.

Dar

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: OS X screen saver - somewhat off topic

2004-04-27 Thread David Vaughan
On 27/04/2004, at 19:20, Sarah Reichelt [EMAIL PROTECTED] 
wrote:
Sorry, it doesn't work if the screen saver has come on after it's time 
setting. In fact it is exactly the same as the AppleScript. You can 
see it happening as the screens saver goes off for about half a 
second, then comes straight back on again :-( Most frustrating as it 
seems that it is ALMOST working.

Thanks for all your help anyway,
Sarah

To be precise, did your tests include kill -9, the real killer?

regards
David
Sarah
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: OS X screen saver - somewhat off topic

2004-04-27 Thread Wouter
On 27 Apr 2004, at 11:20, [EMAIL PROTECTED] wrote:

Message: 6
Date: Tue, 27 Apr 2004 17:21:33 +1000
From: Sarah Reichelt [EMAIL PROTECTED]
Subject: Re: OS X screen saver - somewhat off topic
To: How to use Revolution [EMAIL PROTECTED]
Message-ID: [EMAIL PROTECTED]
Content-Type: text/plain; charset=US-ASCII; format=flowed
Sorry, it doesn't work if the screen saver has come on after it's time
setting. In fact it is exactly the same as the AppleScript. You can see
it happening as the screens saver goes off for about half a second,
then comes straight back on again :-( Most frustrating as it seems that
it is ALMOST working.
Thanks for all your help anyway,
Sarah

Like the AppleScript, it works fine so long as the screen saver time
limit hasn't been reached, now to test if it has.
For anyone who is interested, the script is slightly different to the
one Andre suggested:
  get shell(ps -auxc | grep   quote  ScreenSaverE  quote)
  if it is empty then exit to top
  put word 2 of it into pID
  get shell (kill   pID)
Sarah

If it works, then Transcript now supports the kill command for OS X,
including nominating the signal type (including 9). You are sending
sig 1 or 15 (I forget which) in the above.
regards
David


This works over here:

on wakeUp
  put tell application   quote  Finder  quote  cr \
   quit application  quote ScreenSaverEngine  quote  cr  
end tell into a
  do a as applescript
end wakeUp

HTW
Greetings,
WA
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: OS X screen saver - somewhat off topic

2004-04-27 Thread Thomas McGrath III
Sarah,

I don't know if this will work but due to previously unstable OSs I 
have been waking my system from sleep by hitting the spacebar. It works 
every time. When I used to move the mouse it would do what you said and 
sometimes it would work. So I got in the habit of just tapping the 
space bar once.

Maybe a mouse down sent to the space bar would also do the trick from 
within REV

I don't have the time right now to test it, Let me know if it works.

Tom

On Apr 27, 2004, at 1:20 AM, Sarah Reichelt wrote:

I realize that I probably won't be able to wake the screen from sleep, 
but I am tantalizingly close to being able to turn off the screen 
saver. Has anyone else managed to do this? If it can't be done, I 
guess I can always write myself a fake screen saver in Revolution, but 
I would rather let the system do all the work :-)

Cheers,
Sarah
Thomas J. McGrath III
SCS
1000 Killarney Dr.
Pittsburgh, PA 15234
412-885-8541
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: OS X screen saver - somewhat off topic

2004-04-27 Thread Dar Scott
On Tuesday, April 27, 2004, at 02:10 AM, Dar Scott wrote:

I realize that I probably won't be able to wake the screen from sleep,
/usr/bin/pmset -a dim 0

I have slept on this, but have not tried it.  You might use pmset -g to 
get the dim setting, then the above to turn on the display and then 
restore it.  It has to run as root to make changes.

Dar



___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: OS X screen saver - somewhat off topic

2004-04-27 Thread Brian Yennie
I dunno if this will help, but here was an old trick floating around  
for playing the screen saver on your desktop:

From terminal:
/System/Library/Frameworks/ScreenSaver.framework/Resources/ 
ScreenSaverEngine.app/Contents/MacOS/ScreenSaverEngine -background 

I suppose there might be other options, perhaps a stop or quit  
command or the like, although none of it appears to be documented...

Sorry, it doesn't work if the screen saver has come on after it's time  
setting. In fact it is exactly the same as the AppleScript. You can  
see it happening as the screens saver goes off for about half a  
second, then comes straight back on again :-( Most frustrating as it  
seems that it is ALMOST working.

Thanks for all your help anyway,
Sarah
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: OS X screen saver - somewhat off topic

2004-04-27 Thread Sarah Reichelt
Meanwhile, I guess I just have to make my own slide show screen saver 
:-(
When life gives you lemons, make lemonade.

Maybe the screen saver could be black with a super large machine 
number in grey.  Or do your dancing logo thing.  Or ..
I want a slide show of the images in my Pictures folder.
Will you make this as part of your app with a system window or will 
you make a screen saver plugin?
Since I can't control the built-in screen saver, it will have to be 
either part of my existing app, or maybe better as a second app that my 
main app can start  stop.

Sarah

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: OS X screen saver - somewhat off topic

2004-04-27 Thread David Vaughan
On 28/04/2004, at 10:19, Sarah Reichelt [EMAIL PROTECTED] 
wrote:
Thanks to everyone for their suggestions, however none of them will do 
what I need. Using either AppleScript's quit of the shell's kill (with 
or without -9) works fine if you have started the screen saver by 
pushing the mouse into the specified corner. If the screen saver has 
come on after it's set time, both these methods stop the current 
screen saver process but another one is immediately started.

Sarah

What is the parent process ID of the new process that starts (try ps 
-ajx)? Is it something else you can reasonably kill, so it will not 
spawn further savers?

As an aside, I am wondering if these behaviours are related to a 
problem I have where my Powerbook will occasionally refuse to wake 
properly - the disk sounds are all as usual but the screen never clears 
and the only resort is the reset button.

regards
David
Cheers,
Sarah
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


OS X screen saver - somewhat off topic

2004-04-26 Thread Sarah Reichelt
Hi All,

I have a program running under OS X that monitors some electronics. As 
it operates 24/7, I let the screen saver come on and after some hours, 
I even let the screen go to sleep. My problem is getting the screen to 
activate itself when the electronics send a message that it needs to 
display.

I have tried an AppleScript to turn off the screen saver: quit 
application ScreenSaverEngine
This works fine if the screen saver was turned on manually by pushing 
the mouse pointer into the corner, but if the screen saver has come on 
after it's set time, when the script tries to turn it off, it goes off 
for about a second, displays the underlying Rev window, then comes back 
on again. I have tried moving the mouse pointer location in Revolution 
but this doesn't fool the screen saver setting :-(

I realize that I probably won't be able to wake the screen from sleep, 
but I am tantalizingly close to being able to turn off the screen 
saver. Has anyone else managed to do this? If it can't be done, I guess 
I can always write myself a fake screen saver in Revolution, but I 
would rather let the system do all the work :-)

Cheers,
Sarah
[EMAIL PROTECTED]
http://www.troz.net/Rev/
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: OS X screen saver - somewhat off topic

2004-04-26 Thread Dar Scott
On Monday, April 26, 2004, at 11:20 PM, Sarah Reichelt wrote:

I realize that I probably won't be able to wake the screen from sleep, 
but I am tantalizingly close to being able to turn off the screen 
saver. Has anyone else managed to do this? If it can't be done, I 
guess I can always write myself a fake screen saver in Revolution, but 
I would rather let the system do all the work :-)
Here is a silly idea.  My screen save will turn on or off if I leave 
the pointer in some particular corner depending on some settings.  
Maybe you can move the mouse to some corner of the screen.

Dar Scott

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: OS X screen saver - somewhat off topic

2004-04-26 Thread Sarah Reichelt
I realize that I probably won't be able to wake the screen from 
sleep, but I am tantalizingly close to being able to turn off the 
screen saver. Has anyone else managed to do this? If it can't be 
done, I guess I can always write myself a fake screen saver in 
Revolution, but I would rather let the system do all the work :-)
Here is a silly idea.  My screen save will turn on or off if I leave 
the pointer in some particular corner depending on some settings.  
Maybe you can move the mouse to some corner of the screen.

That was my first idea, but the screen saver doesn't seem to recognize 
that as a mouse move.

Sarah

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: OS X screen saver - somewhat off topic

2004-04-26 Thread Andre Garzia
On Apr 27, 2004, at 2:20 AM, Sarah Reichelt wrote:

I realize that I probably won't be able to wake the screen from sleep, 
but I am tantalizingly close to being able to turn off the screen 
saver. Has anyone else managed to do this? If it can't be done, I 
guess I can always write myself a fake screen saver in Revolution, but 
I would rather let the system do all the work :-)
okay, I am being radical, but can't you kill the process using shell 
function?

you could fetch the process using:

ps -aux | grep ScreenSaverEngine

first word will be process ID (pid)

then to a:

kill --KILL pid

This is radical, but if the process is dead then screen saver cannot be 
on display right!?

Cheers
Andre
PS: I think that kill bill movie is making me a violent coder...

--
Andre Alves Garzia  2004
Soap Dog Studios - BRAZIL
http://studio.soapdog.org
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution