-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommands.h
42 lines (35 loc) · 902 Bytes
/
commands.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#ifndef COMMANDS_H
#define COMMANDS_H
#include <windows.h>
#include <QStringList>
enum CmdType
{
DELAY = 0,
GOTO = 1,
SETCURSORPOS = 2,
CLICK = 3,
PRESSKEY = 4,
WRITETEXT = 5,
DRAG = 6,
SCROLL = 7,
RUNEXE = 8,
REGEX = 9,
};
class Commands
{
public:
static void ExecuteCmd(QString cmd);
private:
static void Click(QStringList cmd);
static void Click(DWORD buttonDown, DWORD buttonUp);
static void Delay(QStringList cmd);
static void CursorPos(QStringList cmd);
static void Drag(QStringList cmd);
static void Scroll(QStringList cmd);
static void PressKey(QStringList cmd);
static void WriteText(QStringList cmd);
static void RunExe(QStringList cmd);
static void ApplyRegex(QStringList cmd);
static const int INTERNAL_DELAY = 25;
};
#endif // COMMANDS_H