Re: Open at Startup - rephrased

2002-05-05 Thread Klaus Major

Hi Sims,

> Thanks Klaus!
>
> This makes me appreciate my mac even more..   ;-)
>
> sims
>
>> on xxx
>>   ##put the path to "YourApp.exe" into the_app
>>  replace "/" with "\" in the_app ### we have to speak "windows"
>> get 
>> setregistry("HKEY_local_machine\Software\Microsoft\Windows\CurrentVers 
>> ion\
>> Run\YourApp", the_app)
>> end xxx
>>
>> To delete that entry again, set the entry to empty.
>>
>> on xxx
>> get 
>> setregistry("HKEY_local_machine\Software\Microsoft\Windows\CurrentVers 
>> ion\
>> Run\YourApp", "")
>> end xxx
>>
>> "YourApp" is in this case the name of the registry-entry, which you 
>> can set to "" (empty).
>> This way the entry will be deleted.


Yeah, that's ugly, isn't it ;-)


Best

Klaus

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



Re: Open at Startup - rephrased

2002-05-05 Thread sims

Thanks Klaus!

This makes me appreciate my mac even more..   ;-)

sims



>on xxx
>   ##put the path to "YourApp.exe" into the_app
>  replace "/" with "\" in the_app ### we have to speak "windows"
> get 
>setregistry("HKEY_local_machine\Software\Microsoft\Windows\CurrentVers 
>ion\
>Run\YourApp", the_app)
>end xxx
>
>To delete that entry again, set the entry to empty.
>
>on xxx
> get 
>setregistry("HKEY_local_machine\Software\Microsoft\Windows\CurrentVers 
>ion\
>Run\YourApp", "")
>end xxx
>
>"YourApp" is in this case the name of the registry-entry, which you 
>can set to "" (empty).
>This way the entry will be deleted.
>
>_

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



Re: Open at Startup - rephrased

2002-05-05 Thread Klaus Major

Hi Sims,

> Maybe I should rephrase the question...

Oh, sorry for the delay ;-)

> Can I do the following with Windows - if so, how?
>
> WITH A MAC:
>
> If I want to have an app open when I turn on a Mac I can
> make an alias (shortcut) to the app and write it to the
> "Startup Items" folder. When the Mac is turned on, the Rev
> app then automatically opens.
>
> example:
>  put specialFolderPath("System") & "/Startup Items" into prefsLocation
>
> create alias prefsLocation & "/newApp Shortcut" to file tFile
>
> Can I do the above with Windows - if so, how?
>
> sims

there are 2 ways.

The first is to set an entry in the windows-registry, which will cause 
"YourApp"
to launch after windows is started. (Everytime !)

Advantage:
When you place an alias of your app in the windows-startup-item-folder 
(there is one, but i have
no PC at hand to tell you the exact name of that folder, which would be 
solution number 2 tehn ;-)
you can prevent the launching of your app by holding the shift-key while 
windows is starting.
(Yes, the same shortcut as on a mac, funny, isn't it ;-)

With this registry-entry you cannot prevent your app to launch, except 
by setting this reg-entry to empty :-)

The following script is ONLY tested on Win98, so no guarantees for other 
windows-versions !!!
But should work anyway...

on xxx
   ##put the path to "YourApp.exe" into the_app
  replace "/" with "\" in the_app ### we have to speak "windows"
 get 
setregistry("HKEY_local_machine\Software\Microsoft\Windows\CurrentVersion\
Run\YourApp", the_app)
end xxx

To delete that entry again, set the entry to empty.

on xxx
 get 
setregistry("HKEY_local_machine\Software\Microsoft\Windows\CurrentVersion\
Run\YourApp", "")
end xxx

"YourApp" is in this case the name of the registry-entry, which you can 
set to "" (empty).
This way the entry will be deleted.

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



Re: Open at Startup - rephrased

2002-05-05 Thread Ken Ray

Sims,

For windows, do this:

  put specialFolderPath(7) into prefsLocation

When you make your alias on Windows, make sure it has a ".lnk" extension, as
in:

  create alias prefsLocation & "/newApp Shortcut.lnk" to file tFile

Ken Ray
Sons of Thunder Software
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.com/

- Original Message -
From: "sims" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, May 05, 2002 7:27 AM
Subject: Open at Startup - rephrased


> Maybe I should rephrase the question...
>
> Can I do the following with Windows - if so, how?
>
> WITH A MAC:
>
> If I want to have an app open when I turn on a Mac I can
> make an alias (shortcut) to the app and write it to the
> "Startup Items" folder. When the Mac is turned on, the Rev
> app then automatically opens.
>
>
>
> example:
>   put specialFolderPath("System") & "/Startup Items" into prefsLocation
>
> create alias prefsLocation & "/newApp Shortcut" to file tFile
>
>
> Can I do the above with Windows - if so, how?
>
>
> sims
>
> ___
> use-revolution mailing list
> [EMAIL PROTECTED]
> http://lists.runrev.com/mailman/listinfo/use-revolution
>

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



Open at Startup - rephrased

2002-05-05 Thread sims

Maybe I should rephrase the question...

Can I do the following with Windows - if so, how?

WITH A MAC:

If I want to have an app open when I turn on a Mac I can
make an alias (shortcut) to the app and write it to the
"Startup Items" folder. When the Mac is turned on, the Rev
app then automatically opens.



example:
  put specialFolderPath("System") & "/Startup Items" into prefsLocation

create alias prefsLocation & "/newApp Shortcut" to file tFile


Can I do the above with Windows - if so, how?


sims

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