[screenweaver] swSystem.getEnvironmentVar

Muzak p.ginneberge at telenet.be
Fri Oct 28 09:55:56 PDT 2005


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







More information about the screenweaver mailing list