-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclix.h
More file actions
86 lines (69 loc) · 1.58 KB
/
clix.h
File metadata and controls
86 lines (69 loc) · 1.58 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#ifndef _CLICKER_RES_H
#define _CLICKER_RES_H
#include <windows.h>
// You get WM_HOTKEY, find wParam in LeMegaCtx.Hotkeys
// and you call the callback
typedef VOID (*HK_CALLBACK)(PVOID);
typedef struct _CLIX_HOTKEY
{
UINT Id;
UINT lParam;
UINT wParam;
UINT Modifier;
HK_CALLBACK callback;
}CLIX_HOTKEY, *PCLIX_HOTKEY;
/* for eventual text based message setup
typedef struct _CLIX_MSG
{
UINT Msg;
UCHAR Text[0]; // zero terminated
}CLIX_MSG, *PCLIX_MSG;
*/
typedef struct _CLIX_SETTINGS
{
UINT MaxClicksPS;
BOOLEAN SendLMBDOWN;
BOOLEAN SendLMBUP;
CLIX_HOTKEY hotkeys[2];
}CLIX_SETTINGS, *PCLIX_SETTINGS;
typedef struct _ClixCtx
{
HANDLE hClickerThread;
HANDLE hStartStopClickingEvent;
BOOLEAN bTargetBeingSet;
BOOLEAN bClicking;
BOOLEAN bExit;
struct
{
ULONG TimeIncrement;
UINT_PTR Timer;
}System;
struct
{
UINT ThreadId;
HWND hWnd;
POINT p;
POINT ClientP;
}Target;
struct
{
HWND hWnd;
HWND hButtonStart;
HWND hButtonSelect;
HWND hText;
HMENU sysMenu;
UINT StayOnTop;
}ClixDlg;
struct
{
BOOLEAN SendLMBDOWN;
BOOLEAN SendLMBUP;
UINT MaxClicksPS;
//UINT ClickWhereTheMouseIs;
}Messages;
CLIX_HOTKEY Hotkeys[2];
}ClixCtx;
VOID Clix_ApplySettings(PCLIX_SETTINGS settings);
HRESULT SetTargetClickPt();
VOID StartStop();
#endif