I made myself a little autoclicker in c++, but after it's done, I want the console window to come up again, so the user can decide wether to do it again, or end the program.
How do I do that?
sha11e
0
Junior Poster
Recommended Answers
Jump to PostPiece of cake! Use SetForegroundWindow -> http://msdn.microsoft.com/en-us/library/ms633539(v=vs.85).aspx
#define _WIN32_WINNT 0x0500 #include <windows.h> int main() { HWND hwnd = GetConsoleWindow(); int timer_1 = 0; int timer_2 = 0; int delay = …
Jump to PostI need
#define _WIN32_WINNT 0x0500
because I can't use GetConsoleWindow otherwise.
See the remarks section here -> http://msdn.microsoft.com/en-us/library/ms683175(v=vs.85).aspxHWND
is nothing but a typedef forHANDLE
, which in turn
is a typedef …
All 5 Replies
m4ster_r0shi
142
Posting Whiz in Training
sha11e
0
Junior Poster
m4ster_r0shi
142
Posting Whiz in Training
sha11e
0
Junior Poster
m4ster_r0shi
142
Posting Whiz in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.