đź’ˇ HotKey Update CheckBox
Hi (; how long i don't post here ahha
I want a little help, how i update a CheckBox from my Main, i can't do it correct?
So, for doing this, i have to do inside the WinFormApp header, but i can call it only one time or no??
Like the action will only happen if something happen (like a button click), how i do to let it there and looping like
if (form == open) { hotkeys }...
I'm using structure on my main to call the code
Thx in any help, i tried searching, but i can't find any solution.
I want a little help, how i update a CheckBox from my Main, i can't do it correct?
So, for doing this, i have to do inside the WinFormApp header, but i can call it only one time or no??
Like the action will only happen if something happen (like a button click), how i do to let it there and looping like
if (form == open) { hotkeys }...
I'm using structure on my main to call the code
Code:
struct { //HOTKEY
void HotKey(DWORD Key, bool Toggle, std::string CheckBox) {
if (GetAsyncKeyState(Key) & 0x8000) {
while (GetAsyncKeyState(Key) & 0x8000) {
Sleep(100);
}
Toggle = !Toggle;
if (Toggle) {
CheckBox;
}
else {
CheckBox;
}
}
}
}HK;
