[screenweaver] swSystem.getEnvironmentVar

Muzak p.ginneberge at telenet.be
Fri Oct 28 14:24:26 PDT 2005


Here's an example app that will read all the values found in
HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders

http://www.muzakdeezign.com/swos/special_folders.zip

regards,
Muzak

----- Original Message ----- 
From: "Muzak" <p.ginneberge at telenet.be>
To: <screenweaver at osflash.org>
Sent: Friday, October 28, 2005 6:55 PM
Subject: Re: [screenweaver] swSystem.getEnvironmentVar


> Oh, and here's the registry key that holds the location to all the current users special folders
>
> HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer
> Contains paths to:
>
> - Administrative Tools
> - AppData
> - Cache
> - CD Burning
> - Cookies
> - Desktop
> - Favorites
> - Fonts
> - History
> - Local AppData
> - Local Settings
> - My Music
> - My Pictures
> - My Video
> - NetHood
> - Personal (= My Documents)
> - PrintHood
> - Programs
> - Recent
> - SendTo
> - Start Menu
> - Startup
> - Templates
>
> ----- Original Message ----- 
> From: "Gaspy" <gaspyy at gmail.com>
> To: <screenweaver at osflash.org>
> Sent: Friday, October 28, 2005 5:35 PM
> Subject: [screenweaver] swSystem.getEnvironmentVar
>
>
> Hello,
>
> I've just started working with SW3.
>
> I'm trying a very simple example that just doesn't work:
>
> swInterface.init();
> getEnvironmentVar_callback = function( value, result )
> {
> swDebug.trace( "Env var: "+ value + " (" + result + ")" );
> }
> swDebug.trace( "test" );
> swSystem.getEnvironmentVar( "USERPROFILE", getEnvironmentVar_callback );
> stop();
>
> The callback never executes. I've tried several variations to no success.
>
> Any idea why?
>
> I am getting a little desperate as I need to load and save data in user's
> Document and Settings, but I cannot hardcode the value (different users,
> different languages...)
>
> I use SW3OS 3.1.0.4 <http://3.1.0.4> with Flash8.ocx
>
>
>
>
>
> _______________________________________________
> screenweaver mailing list
> screenweaver at osflash.org
> http://osflash.org/mailman/listinfo/screenweaver_osflash.org
> 





More information about the screenweaver mailing list