- In the extension bar, click the AdBlock Plus icon
- Click the large blue toggle for this website
- Click refresh
- In the extension bar, click the AdBlock icon
- Under "Pause on this site" click "Always"
- In the extension bar, click on the Adguard icon
- Click on the large green toggle for this website
- In the extension bar, click on the Ad Remover icon
- Click "Disable on This Website"
- In the extension bar, click on the orange lion icon
- Click the toggle on the top right, shifting from "Up" to "Down"
- In the extension bar, click on the Ghostery icon
- Click the "Anti-Tracking" shield so it says "Off"
- Click the "Ad-Blocking" stop sign so it says "Off"
- Refresh the page
- In the extension bar, click on the uBlock Origin icon
- Click on the big, blue power button
- Refresh the page
- In the extension bar, click on the uBlock icon
- Click on the big, blue power button
- Refresh the page
- In the extension bar, click on the UltraBlock icon
- Check the "Disable UltraBlock" checkbox
- Please disable your Ad Blocker
- Disable any DNS blocking tools such as AdGuardDNS or NextDNS
- Disable any privacy or tracking protection extensions such as Firefox Enhanced Tracking Protection or DuckDuckGo Privacy.
If the prompt is still appearing, please disable any tools or services you are using that block internet ads (e.g. DNS Servers, tracking protection or privacy extensions).
Question
Andos
This has annoyed me for hours if not days. :(
I'm writing a simple console application with a menu that has some choices. Every time you select an option it should:
ask for a number,
output the result,
pause the app until a key is pressed so the user can read the data printet out,
clear the screen and display the menu again
system("pause") doesn't work because it's launched in a seperate thread and is not in sync with the application (sometimes its way behind the app and sometimes ahead of the execution(!) O_o )
SleepEx() doesn't seem to be able to do what I want.
WaitForInputIdle() doesn't work since console applications doesn't have a message queue.
What can I do to make this work? I hate those system calls to be so out of sync with the app!
And no, I don't want to use an infinite while loop untill a char is pressed as it would take 100% CPU.
Anyone? :(
Edited by AndosLink to comment
https://www.neowin.net/forum/topic/462358-c-console-function-to-wait-for-input/Share on other sites
7 answers to this question
Recommended Posts