Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
can't get rget to work properly
#1
I want to manipulate the registry in one of my macros, but I can't get rget to work. Here's my test macro:

run "notepad.exe" "" "" "" 1 "Notepad"
int port = 5
key "value before = "
outp port
key Y
rget port "TCPIPDataPort" "SOFTWARE\Symantec\pcANYWHERE\CurrentVersion\System" "HKEY_LOCAL_MACHINE")
key "value after = "
outp port

When I compile I get "Error in test: expected numeric expression." on "HKEY_LOCAL_MACHINE

It works using the default hive,

rget(port "Identity Ordinal" "Identities")

but not for any other hives. Have I misunderstood something? Is there a numeric value for HKEY_LOCAL_MACHINE, and if so what is it?


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)