Relevance problem

(imported topic written by bearandy)

I want to check registry for HKCU.

I use Fixlet debugger:

“HKEY_USERS” & (name of key whose ((it = name of current user as lowercase OR it starts with name of current user as lowercase & “@”) of (it as string as lowercase) of value “Logon User Name” of key “Software\Microsoft\Windows\CurrentVersion\Explorer” of it) of key “HKEY_USERS” of registry)

And it show “Error: Singular expression refers to nonexistent object”.

I don’t know what’s the problem.

Thanks for help.

(imported comment written by bearandy)

(“HKEY_USERS” & (name of key whose (((it = name of current user as lowercase OR it starts with name of current user as lowercase & “@”) of (it as string as lowercase) of (if (name of operating system = “Win7” OR name of operating system = “WinVista”) then value “USERNAME” of key “Volatile Environment” of it else value “Logon User Name” of key “Software\Microsoft\Windows\CurrentVersion\Explorer” of it))) of key “HKEY_USERS” of registry))

I want to use it to regset HKEY_CURRENT_USER.

And it works in my Win7 64bit. But It just got error in other OS.