Ejemplo n.º 1
0
        static public ScriptFunction createFuncObj(String func_name, String args)
        {
            ScriptFunction func = null;

            switch (func_name)
            {
            case "ActiveWindow":
                func = new ActiveWindowFunction(args);
                break;

            case "SetAndCheckWinRect":
                func = new SetAndCheckWinRectFunction(args);
                break;

            case "CopyClipboard":
                func = new CopyClipboardFunction(args);
                break;

            case "sleep":
                func = new sleepFunction(args);
                break;

            case "SendInput":
                func = new SendInputFunction(args);
                break;

            case "SetMouse":
                func = new SetMouseFunction(args);
                break;

            case "SendMessage":
                func = new SendMessageFunction(args);
                break;

            case "CheckResolution":
                func = new CheckResolutionFunction(args);
                break;

            case "ReplaceString":
                func = new ReplaceStringFunction(args);
                break;

            default:
                Trace.WriteLine("no cmd know" + func_name);
                break;
            }
            return(func);
        }
Ejemplo n.º 2
0
 public static ScriptFunction createFuncObj(String func_name, String args)
 {
     ScriptFunction func = null;
     switch (func_name) {
         case "ActiveWindow":
             func = new ActiveWindowFunction(args);
             break;
         case "SetAndCheckWinRect":
             func = new SetAndCheckWinRectFunction(args);
             break;
         case "CopyClipboard":
             func = new CopyClipboardFunction(args);
             break;
         case "sleep":
             func = new sleepFunction(args);
             break;
         case "SendInput":
             func = new SendInputFunction(args);
             break;
         case "SetMouse":
             func = new SetMouseFunction(args);
             break;
         case "SendMessage":
             func = new SendMessageFunction(args);
             break;
         case "CheckResolution":
             func = new CheckResolutionFunction(args);
             break;
         case "ReplaceString":
             func = new ReplaceStringFunction(args);
             break;
         default:
             Trace.WriteLine("no cmd know" + func_name);
             break;
     }
     return func;
 }