Live data from Hacker News

Show HN: Universal Pause Button

github.com

11–20 of 174 posts

Re: Show HN: Universal Pause Button

#11
Indeed some deep nesting here. You made me remember a quickbasic program I wrote for a class back in early 90s, where I packed the whole program in a single do-loop with about 20 indent levels at it's deepest, and I loved it. But... the prof told me to never do that again :( Anyway, thanks a lot for the flashback :)

Re: Show HN: Universal Pause Button

#12
post #7

That's interesting. However, I wonder ... don't you think it can be abused in some games that try to compensate lag? For example, what if they use a code similar to: delay = currentFrameTime - lastFrameTime playerPosition += direction * delay I know that some games (such as Diablo III) may automaticallt ban you if you happen to run a program that may be used to cheat (they detect that via a background process check).

I have thought about this. In fact I even asked Gabe Newell about whether the use of this program might falsely trigger some anti-cheat mechanism within Steam. (He hasn't replied yet.) So, I guess until I get more official information, please proceed with caution and use at your own risk. That being said, that would imply that using Process Explorer or PsSuspend could also get you banned, since those applications also have the ability to suspend threads.

Re: Show HN: Universal Pause Button

#13
post #9
post #5

"I like to play video games. I also have a significant other, and she often walks into the room to talk to me while I'm playing a video game." Looks like the real solution would be to pause your SO ;)

I encountered this problem with babies. They definitely don't pause. My solution was the DS/3DS line of consoles... snap 'em shut, bam, paused. I've called them the consoles of choice for the discriminating father. (If you've never had kids and find yourself wondering what horrible father would be playing video games while taking care of his children, well, you see, it turns out that sometimes your child wants to sle…

> My solution was the DS/3DS line of consoles... snap 'em shut, bam, paused.

I'm a fan of this as well - works for PSP and Vita too, just quickly press power and it's in sleep mode. However, I have run into one game that didn't properly pause itself when closed. I think it was Kingdom Hearts 358/2 Days. Its cutscenes didn't pause when I closed my DS. Otherwise, yeah, this is the greatest.

Re: Show HN: Universal Pause Button

#14

Indeed some deep nesting here. You made me remember a quickbasic program I wrote for a class back in early 90s, where I packed the whole program in a single do-loop with about 20 indent levels at it's deepest, and I loved it. But... the prof told me to never do that again :( Anyway, thanks a lot for the flashback :)

Agreed, it's not the most elegant code, but it's so short and simple I haven't bothered reorganizing the code yet. I probably will start adding features like re-bindable pause key, etc., and I will untangle the mess a bit at that time.

Re: Show HN: Universal Pause Button

#15
post #7

That's interesting. However, I wonder ... don't you think it can be abused in some games that try to compensate lag? For example, what if they use a code similar to: delay = currentFrameTime - lastFrameTime playerPosition += direction * delay I know that some games (such as Diablo III) may automaticallt ban you if you happen to run a program that may be used to cheat (they detect that via a background process check).

I have thought about this. In fact I even asked Gabe Newell about whether the use of this program might falsely trigger some anti-cheat mechanism within Steam. (He hasn't replied yet.) So, I guess until I get more official information, please proceed with caution and use at your own risk. That being said, that would imply that using Process Explorer or PsSuspend could also get you banned, since those applications als…

Yeah do be very careful with this, many anti-cheat programs are very trigger-happy.

Some time ago I had an application crash on a development machine while I was playing a game. On my dev machine crashes go straight to ollydbg. Next thing I know I'm kicked from the game, and it tells me to stop 'using cheat programs'. Go figure :p

Re: Show HN: Universal Pause Button

#16
post #4

I would love this for Mac, not for games but for all browser tabs. Find whichever tab I'm playing music in, and pause it, whether it be SoundCloud, YouTube, or some other streaming something. Fantastic idea though!

And for Firefox.

https://addons.mozilla.org/en-US/firefox/addon/be-quiet/

Re: Show HN: Universal Pause Button

#17

Indeed some deep nesting here. You made me remember a quickbasic program I wrote for a class back in early 90s, where I packed the whole program in a single do-loop with about 20 indent levels at it's deepest, and I loved it. But... the prof told me to never do that again :( Anyway, thanks a lot for the flashback :)

Agreed, it's not the most elegant code, but it's so short and simple I haven't bothered reorganizing the code yet. I probably will start adding features like re-bindable pause key, etc., and I will untangle the mess a bit at that time.

quickest way to do it is to negate your if conditions in the loop something like this:

    if (ForegroundWindow)
    {
        ...
    }
    else
    {
        MessageBox(NULL, L"Unable to detect foreground window!", L"UniversalPauseButton Error", MB_OK | MB_ICONERROR);
    }
becomes

    if (!ForegroundWindow)
    {
        MessageBox(NULL, L"Unable to detect foreground window!", L"UniversalPauseButton Error", MB_OK | MB_ICONERROR);
        break;
    }
    ...

Re: Show HN: Universal Pause Button

#18
post #5

"I like to play video games. I also have a significant other, and she often walks into the room to talk to me while I'm playing a video game." Looks like the real solution would be to pause your SO ;)

"Universal Pause Button" my eye, I tried it and the universe just kept going.

Re: Show HN: Universal Pause Button

#19
Great idea, will be helpful.

Now, I only need a similar tool that kills the process with the highest CPU and MEMORY load with a short cut. Reasons: Sometimes a process leaks memory and fills up 16GB RAM and opening a new process like taskmgr is impossible to severe paging-IO. Sometimes a full screen application crash and spawns a modal crash dialog behind the full screen window so only taskmgr and keyboard usage works (as the mouse is hidden by the crashed full screen app).

Re: Show HN: Universal Pause Button

#20
post #15

Earlier quoted context omitted.

I have thought about this. In fact I even asked Gabe Newell about whether the use of this program might falsely trigger some anti-cheat mechanism within Steam. (He hasn't replied yet.) So, I guess until I get more official information, please proceed with caution and use at your own risk. That being said, that would imply that using Process Explorer or PsSuspend could also get you banned, since those applications als…

Yeah do be very careful with this, many anti-cheat programs are very trigger-happy. Some time ago I had an application crash on a development machine while I was playing a game. On my dev machine crashes go straight to ollydbg. Next thing I know I'm kicked from the game, and it tells me to stop 'using cheat programs'. Go figure :p

Another reason you should cloak your Ollydbg :)

https://tuts4you.com/download.php?list.3 https://tuts4you.com/download.php?view.2425

Post reply on HN