TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Universal Pause Button

501 pointsby RyanRiesalmost 10 years ago

34 comments

tomkinstinchalmost 10 years ago
This is nice! On OSX, processes can be paused and continued too (by name via killall, and by PID via kill):<p><pre><code> kill -STOP 1234 kill -CONT 1234 killall -STOP -c &quot;Pandora&quot; killall -CONT -c &quot;Pandora&quot; </code></pre> A more nuanced control is to throttle down the CPU, via cputhrottle[1].<p>If I&#x27;m running a CPU-intensive calculation and don&#x27;t want to bog down the rest of my system I will use it to give me enough cycles for Sublime Text to work smoothly.<p>It&#x27;s easy to call:<p><pre><code> sudo cputhrottle PID cpuUsage%</code></pre> ex.<p><pre><code> sudo cputhrottle 12345 400 </code></pre> 1. <a href="http:&#x2F;&#x2F;www.willnolan.com&#x2F;cputhrottle&#x2F;cputhrottle.html" rel="nofollow">http:&#x2F;&#x2F;www.willnolan.com&#x2F;cputhrottle&#x2F;cputhrottle.html</a>
评论 #9688096 未加载
评论 #9689617 未加载
评论 #9687914 未加载
评论 #9688935 未加载
评论 #9687614 未加载
评论 #9687693 未加载
NamTafalmost 10 years ago
Great app but I have one request. Can you please modify it so instead of pausing the game until my SO is done talking, it pauses my SO until my game is done its cutscene? Thanks in advance.
评论 #9689409 未加载
评论 #9690751 未加载
samspotalmost 10 years ago
This should be a basic requirement for all games. Even before I was married my mom would call or someone would ring the doorbell. And when I was a kid I had to go down to dinner or take out the trash.
评论 #9687766 未加载
评论 #9687659 未加载
评论 #9688482 未加载
评论 #9688162 未加载
评论 #9688113 未加载
frikalmost 10 years ago
Great idea, will be helpful.<p>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).
评论 #9687410 未加载
评论 #9688399 未加载
RyanRiesalmost 10 years ago
You can also download the executable (if you don&#x27;t want to compile it) from <a href="https:&#x2F;&#x2F;www.myotherpcisacloud.com&#x2F;post&#x2F;universal-pause-button" rel="nofollow">https:&#x2F;&#x2F;www.myotherpcisacloud.com&#x2F;post&#x2F;universal-pause-butto...</a>
评论 #9689197 未加载
评论 #9693303 未加载
评论 #9687158 未加载
scandinavianalmost 10 years ago
&quot;I&#x27;ve already gotten great value out of the program, as there are lots of cut scenes in The Witcher 3, that I don&#x27;t want to skip.&quot;<p>The Witcher 3 pauses cutscenes when the window is not in focus. So the example is probably not the greatest.
评论 #9688109 未加载
评论 #9687755 未加载
评论 #9687608 未加载
kozukumialmost 10 years ago
Nice idea and app. Having a quick look at the code I had forgotten how much work needed to be done for old-skool Windows applications. They do give you great lean applications though which is something I miss.<p>I will always have a soft spot for small, lean single function applications. I guess it takes me back to my UNIX days. Some of my favourite more modern programs are SumatraPDF, uTorrent (the older 2.x versions) and Notepad2, lovely single exe programs that are self-contained. No installers and messy configs all over the place or in the registry.
评论 #9690604 未加载
评论 #9694708 未加载
ubercow13almost 10 years ago
You can do this to any process in Windows&#x27; Resource Monitor too - the one you can open from task manager. On the CPU tab you can right click any process and suspend it.
评论 #9688455 未加载
arcatekalmost 10 years ago
That&#x27;s interesting. However, I wonder ... don&#x27;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:<p><pre><code> delay = currentFrameTime - lastFrameTime playerPosition += direction * delay </code></pre> 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).
评论 #9687259 未加载
评论 #9687392 未加载
评论 #9688300 未加载
savanalyalmost 10 years ago
Now if only there was a Universal Skip Button for those games with unskippable credits, intros or cutscenes!
评论 #9687907 未加载
评论 #9687707 未加载
评论 #9689516 未加载
ifdefdebugalmost 10 years ago
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&#x27;s deepest, and I loved it. But... the prof told me to never do that again :( Anyway, thanks a lot for the flashback :)
评论 #9687715 未加载
评论 #9687290 未加载
评论 #9687435 未加载
评论 #9689672 未加载
lettergramalmost 10 years ago
Without reading the explanation, immediately my roommate and I figure out how to do it via the linux terminal by pausing the main thread. It seems so obvious, don&#x27;t know why I wasn&#x27;t doing this myself.... since I have the same problem as the OP.
deevusalmost 10 years ago
@OP<p>I&#x27;ve added this to the scoop-extras bucket for Scoop[0]. So users with the extras bucket can install it using:<p><pre><code> scoop install universalpausebutton </code></pre> EDIT: Do you have a licence?<p>[0]: <a href="http:&#x2F;&#x2F;scoop.sh" rel="nofollow">http:&#x2F;&#x2F;scoop.sh</a>
评论 #9715629 未加载
ohitsdomalmost 10 years ago
Really clever. What a thoughtful project, too. Hope your SO appreciates the work you put in on it!
snorkelalmost 10 years ago
Wow, coded like a simple old school Win32 API win app, I didn&#x27;t realize that was still possible in modern Visual Bloatio. Nicely done.
评论 #9689683 未加载
Drdrdrqalmost 10 years ago
I love this!!! The pause button was incredibly useful when trying to figure out what went wrong with DOS boot sequence. I wonder if it would be possible to include support for it in Linux kernel? Sometimes I would like to read those messages that fly over the screen (no, dmesg is not enough)...
评论 #9687936 未加载
评论 #9688169 未加载
VLMalmost 10 years ago
This specific example is nice although not truly universal.<p>An interesting startup idea would be a bluetooth thingy (kinda vague, maybe a necklace?) that when pushed becomes a TRUE universal pause button. Pauses my DVR, my car audio, my linux mythtv box, everything, silences my phone ringer, mutes the TV, shuts off the alarm clock, temp-mutes the smoke alarm if its currently going off, silence the oven timer, car alarm off if its currently sounding, you name it.<p>Sounds technologically possible although a huge PITA, which sounds like a great startup idea.<p>You might need to ram thru a whole new bluetooth LE broadcast protocol, maybe. Or just a blind beacon of &quot;anything&quot; thats sniffable (edited: whoops that wouldn&#x27;t work so well with silenced burglar alarm systems).<p>I suspect this would sell pretty well once it gets universal...
评论 #9689775 未加载
frikalmost 10 years ago
Win10Phone&#x2F;Android&#x2F;iOS apps are suspended and restored the same ways too. Only the visible app (and some system processes) is running in iOS1-8 (in iOS9 iPadAir2 two apps). It&#x27;s usually unused in desktop OS (except for universal apps in Win10).
Carrokalmost 10 years ago
I would love this for Mac, not for games but for all browser tabs. Find whichever tab I&#x27;m playing music in, and pause it, whether it be SoundCloud, YouTube, or some other streaming something. Fantastic idea though!
评论 #9687074 未加载
评论 #9687311 未加载
评论 #9687115 未加载
hittudivalmost 10 years ago
Always used to watch those cutscenes on youtube! Awesome app btw.
janingealmost 10 years ago
Having a modernized pause&#x2F;break key on your keyboard can also be handy if you ever have to use software that acts stupid on purpose, like these &quot;Safe Exam LockDown Browsers&quot; that some schools and universities around here have started forcing upon their students. Software like this typically just run a timer or similar to make sure that only their windows are running in the foreground, but sending them a SIGSTOP stops this annoyance.
ameliusalmost 10 years ago
But what if the process uses a timer to update an animation? (I.e., the state of the timer determines the frame in the animation).<p>In that case, after unpausing, the animation would just skip ahead.<p>As a remedy, the pause button could also stop the system clock as seen by the process.
评论 #9689036 未加载
kilolimaalmost 10 years ago
Wouldn&#x27;t it be easier if your girlfriend would not expect that she can walk in and interrupt you any time she wants?
评论 #9689896 未加载
estalmost 10 years ago
Reminds me of old utility which could resize any DirectX based game and force them run in windowed mode.
murbard2almost 10 years ago
For a fraction of a second, part of me really hoped it could somehow be a pause button for life itself.
miketalmost 10 years ago
Would love to have this for email.
seba_dos1almost 10 years ago
aka &quot;Windows users discover our CTRL+Z&quot; :) Been doing that very often during Ludum Dare where the best games have usually very fine gameplay and very poor everything else, like lack of pause or progress save - surely came handy.
72deluxealmost 10 years ago
On OSX you can use Activity Monitor to use View &gt; Send Signal To Process....
jdlygaalmost 10 years ago
It even pauses video studio! It really is universal.
mattbgatesalmost 10 years ago
Damn, I thought this was for real life.. could&#x27;ve used one of those. Better than hitting snooze 10 times.
Dewie3almost 10 years ago
It wasn&#x27;t until MGS4 before the Metal Gear Solid franchise got cutscenes which you could pause. Which was sorely needed because of how story driven the series is, and how long some of the cutscenes are -- I think the end of MGS4 was something like 1 hour, 30 min.
neutralino1almost 10 years ago
Can we pause the significant other too?
cool-RRalmost 10 years ago
<i>&quot;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&#x27;m playing a video game.&quot;</i><p>Looks like the real solution would be to pause your SO ;)
评论 #9687146 未加载
评论 #9687342 未加载
kpennellalmost 10 years ago
test comment!!