đź’ˇ HotKey Update CheckBox

Posts 1–3 of 3 · Page 1 of 1
đź’ˇ 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
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;
Thx in any help, i tried searching, but i can't find any solution.
Can't edit sorry for duplicated post!
@Color ,Close it i solved by myown (;
Forgot about TimerComponent
//Solved
Posts 1–3 of 3 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us