Reading 32bit Registry value into ZennoPoster

  • Автор темы Автор темы Maddis
  • Дата начала Дата начала

Maddis

Новичок
Регистрация
22.10.2018
Сообщения
27
Реакции
3
Баллы
3
Hi, hopefully someone can help. I am trying to return a value that is in my 32bit registry with the custom C# Action so I can store the value as a variable.

I have tried many C# variations but can't get a return value. Can anyone possibly help?

My Key is : "Computer\HKEY_CURRENT_USER\Software\VB and VBA Program Settings\My Program\API"
and the string value i want to read is "AccessURL"

This is what I have tried so far with no luck:

C#:
Развернуть Свернуть Копировать
var key = Microsoft.Win32.Registry.CurrentUser.OpenSubKey("SOFTWARE\VB and VBA Program Settings\My Program\API");
var subKey = key.GetValue("AccessURL");
return subKey;

Maddis :-)
 
Hi, hopefully someone can help. I am trying to return a value that is in my 32bit registry with the custom C# Action so I can store the value as a variable.

I have tried many C# variations but can't get a return value. Can anyone possibly help?

My Key is : "Computer\HKEY_CURRENT_USER\Software\VB and VBA Program Settings\My Program\API"
and the string value i want to read is "AccessURL"

This is what I have tried so far with no luck:

C#:
Развернуть Свернуть Копировать
var key = Microsoft.Win32.Registry.CurrentUser.OpenSubKey("SOFTWARE\VB and VBA Program Settings\My Program\API");
var subKey = key.GetValue("AccessURL");
return subKey;

Maddis :-)
Do you get some message in execution log?
 
I figured it out. This is what worked for me:

C#:
Развернуть Свернуть Копировать
Microsoft.Win32.RegistryKey key = Microsoft.Win32.Registry.CurrentUser.OpenSubKey(@"SOFTWARE\VB and VBA Program Settings\MEmu Launcher\Settings\");


if (key != null)

{

    project.Variables["API_IP_CheckURL"].Value = (key.GetValue("ProxyTestURL").ToString());

    key.Close();

}
 

Кто просматривает тему: (Всего: 0, Пользователи: 0, Гости: 0)