Blue Eye Logo

Blue Eye Macro

Automation is freedom
It is currently Mon Jan 18, 2021 4:07 pm

All times are UTC




Post a reply
Username:
Subject:
Message body:
Enter your message here, it may contain no more than 60000 characters. 

Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :arrow: :| :mrgreen: :geek: :ugeek:
Font size:
Font colour
Options:
BBCode is ON
[img] is OFF
[flash] is OFF
[url] is ON
Smilies are ON
Disable BBCode
Disable smilies
Do not automatically parse URLs
Please click and drag the 2 correct statements to the right hand side.
Please click and drag the 2 correct statements to the right hand side.
Please select the options below to the correct list to avoid automated registrations.
Statements
2 correct statements
Dogs have 4 legs
Chickens can talk
Elephants can fly
Fish can swim
   

Topic review - Read from registry plugin
Author Message
  Post subject:  Re: Read from registry plugin  Reply with quote
zxar7 wrote:
Gigus wrote:
Its used to read information from the windows registry database.
Generally not something needed except for very specific tasks, like reading the current start page of your internet browser, or reading the resolution inside a certain game etc (Not all games store this in registry, but many does).

If your not sure what the windows registry is, don't worry about it, you probably wont need to.

To manually view the registry, open "regedit" using the run-command in your start menu - Warning: changing anything inside the registry may cause severe problems for your windows installation and installed apps.



I added the .dll to the plugins folder and yet I cannot see it on the BEM, and I used plugins before. I added another plugin and this plugin I can see and use
Post Posted: Thu Sep 10, 2020 1:55 pm
  Post subject:  Re: Read from registry plugin  Reply with quote
Gigus wrote:
Its used to read information from the windows registry database.
Generally not something needed except for very specific tasks, like reading the current start page of your internet browser, or reading the resolution inside a certain game etc (Not all games store this in registry, but many does).

If your not sure what the windows registry is, don't worry about it, you probably wont need to.

To manually view the registry, open "regedit" using the run-command in your start menu - Warning: changing anything inside the registry may cause severe problems for your windows installation and installed apps.



I added the .dll to the plugins folder and yet I cannot see it on the BEM, and I used plugins before. I added another plugin and this plugin I can see and use
Post Posted: Mon Mar 23, 2020 2:31 pm
  Post subject:  Re: Read from registry plugin  Reply with quote
Its used to read information from the windows registry database.
Generally not something needed except for very specific tasks, like reading the current start page of your internet browser, or reading the resolution inside a certain game etc (Not all games store this in registry, but many does).

If your not sure what the windows registry is, don't worry about it, you probably wont need to.

To manually view the registry, open "regedit" using the run-command in your start menu - Warning: changing anything inside the registry may cause severe problems for your windows installation and installed apps.
Post Posted: Thu Mar 05, 2015 11:49 am
  Post subject:  Re: Read from registry plugin  Reply with quote
sir whats this plugin is about thanks
Post Posted: Fri Feb 13, 2015 3:47 pm
  Post subject:  Re: Read from registry plugin  Reply with quote
thank you
Post Posted: Fri Feb 13, 2015 1:16 pm
  Post subject:  Re: Read from registry plugin  Reply with quote
thx for this
Post Posted: Sun Nov 16, 2014 7:00 am
  Post subject:  Re: Read from registry plugin  Reply with quote
thx 4 help
Post Posted: Thu Aug 14, 2014 8:50 pm
  Post subject:  Re: Read from registry plugin  Reply with quote
sory just ask what this plugin work for???
Post Posted: Mon May 19, 2014 2:48 pm
  Post subject:  Re: Read from registry plugin  Reply with quote
thx you to help
Post Posted: Mon May 19, 2014 2:45 pm
  Post subject:  Read from registry plugin  Reply with quote
Ownage once posted a plugin in this section to read from registry.

This is the same plugin, just updated to work with the new plugin system introduced with BE version 2.5.

To compile the following C# code, make sure to reference Plugin.dll (by default: C:\Program Files (x86)\Blue Eye Macro\Plugin.dll)
Also make sure to mark your project as a .NET 3.5 project.

To download the compiled version, scroll to the bottom of this post.

Code:
using System;
using Microsoft.Win32;
using Plugin.BaseClasses;
using Plugin.Classes;

namespace ReadFromRegistry
{
   [Serializable]
   public class ReadFromRegistry : BaseInstruction
   {
      public override void InitArguments()
      {
         Arguments.Add(new PluginArgument(PluginArgument.ArgumentType.Text, 250, "Registry Path", @"The path of the registry key, Example: SOFTWARE\Microsoft\Internet Explorer\MAIN"));
         Arguments.Add(new PluginArgument(PluginArgument.ArgumentType.Text, 150, "Registry Key", "The key to read, Example: \"Start Page\""));
         Arguments.Add(new PluginArgument(PluginArgument.ArgumentType.Text, 100, "Variable", "The variable to save the read value to"));
      }

      public override void Execute()
      {
         string path = Arguments[0].Value.ToString();
         string key = Arguments[1].Value.ToString();
         string var = Arguments[2].Value.ToString();

         RegistryKey myKey = Registry.CurrentUser.OpenSubKey(path, true);
         string finalval = myKey.GetValue(key) as string;

         SetVariable(var, finalval);
      }

      public override string Name
      {
         get { return "Read from registry"; }
      }
   }
}


Download here: (Save in your Plugins folder, by default this is: C:\Program Files (x86)\Blue Eye Macro\Plugins)
Attachment:
ReadFromRegistry.dll [5 KiB]
Downloaded 1446 times



To test the plugin try the following macro:
Code:
 begin
     Plugins.Read from registry("SOFTWARE\Microsoft\Internet Explorer\MAIN", "Start Page", "value")
     Window.Display message box("{value}", "yes")
 end


It will retrieve and display the URL of the current start page in Internet Explorer.
Post Posted: Sat Aug 06, 2011 1:25 am

All times are UTC


Jump to:  


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group