[screenweaver] swSystem.getEnvironmentVar

Muzak p.ginneberge at telenet.be
Fri Oct 28 09:47:57 PDT 2005


That seems to be broken indeed.

You could try and read em from the registry.
swSystem.Registry.read()

The value of this registry key should return the path to the user's "My Documents"

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\DocFolderPaths

I used to have a screenweaver component that could read all those "special folders" but I'm afraid I no longer have a copy.
Maybe someone else here still has a copy..

regards,
Muzak

----- 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