示例#1
0
        public override int Execute()
        {
            TempVal = Variables.GetString(Value);
            Variables.Set(VarName, TempVal);

            return(0);
        }
示例#2
0
        public override int Execute()
        {
            String InputString = Variables.GetString(str);

            LowAPI.API_Structs.KEYBDINPUT input = new LowAPI.API_Structs.KEYBDINPUT();
            input.type  = 1;
            input.time  = 0;
            input.wScan = 0;

            for (int i = 0; i < InputString.Length; i++)
            {
                Thread.Sleep(20);

                input.dwFlags = 0;
                input.wVk     = (ushort)LowAPI.API_Functions.VkKeyScan(InputString[i]);
                LowAPI.API_Functions.keybd_event((byte)input.wVk, (byte)input.wScan, (int)input.dwFlags, 0);

                Thread.Sleep(20);

                input.dwFlags = 2;
                LowAPI.API_Functions.keybd_event((byte)input.wVk, (byte)input.wScan, (int)input.dwFlags, 0);
            }

            return(0);
        }
示例#3
0
        public override int Execute()
        {
            ActionsManager actionsManager = new ActionsManager(this.eStatus, this.formBase);

            actionsManager.ReadFromFile(Variables.GetString(FileName));
            actionsManager.Execute();
            return(0);
        }
示例#4
0
        public override int Execute()
        {
            TempRegistryPath = Variables.GetString(RegistryPath);
            TempValueName    = Variables.GetString(ValueName);

            Registry.SetValue(TempRegistryPath, TempValueName, Variables.Get(VarName));

            return(0);
        }
示例#5
0
        public override int Execute()
        {
            TempRegistryPath = Variables.GetString(RegistryPath);
            TempValueName    = Variables.GetString(ValueName);

            String value = (String)Registry.GetValue(TempRegistryPath, TempValueName, "");

            Variables.Set(VarName, value);

            return(0);
        }
示例#6
0
        public override int Execute()
        {
            int ret = 0;

            try
            {
                TempNumber = long.Parse(Variables.GetString(number));
                Variables.Set(VarName, (long.Parse(Variables.Get(VarName)) + TempNumber).ToString());
            }
            catch
            {
                ret = 1;
            }

            return(ret);
        }
示例#7
0
        public override int Execute()
        {
            if (Dir[Dir.Length - 1] != '\\')
            {
                Dir += '\\';
            }
            String[]       files         = Directory.GetFiles(Variables.GetString(Dir));
            ActionsManager actionManager = new ActionsManager(this.eStatus, this.formBase);

            for (int i = 0; i < files.Length; i++)
            {
                actionManager.ReadFromFile(files[i]);
                actionManager.Execute();
            }

            return(0);
        }
示例#8
0
        public override int Execute()
        {
            MessageBox.Show(Variables.GetString(Content), Variables.GetString(Title));

            return(0);
        }
示例#9
0
        public override int Parse(String[] args)
        {
            FileName = Variables.GetString(args[1]);

            return(0);
        }