![]() That's it, you should be able to run the main project now. StayFocused\bin\圆4\Release\helpers\32BitHelper.exe Similarly, you should set goals to aid you in your work. We’ve already detailed the benefits of waking up early in the morning. You can start by something as basic as setting a goal to wake up at 6 AM every day for at least a month. Once your allotted time has been used up, the sites you have blocked will be inaccessible for the rest of the day. A good way to stay focused and is to set daily goals for yourself. StayFocused\bin\圆4\Release\helpers\PreventFocusStealing64.dll StayFocusd is a productivity extension that helps you stay focused on work by restricting the amount of time you can spend on time-wasting websites. StayFocused\bin\圆4\Release\helpers\PreventFocusStealing32.dll Go to StayFocused\bin\圆4\Release, create a folder named helpers and copy the files generated in the first two steps there. Set the configuration to 圆4 and build the StayFocused project. This is a helper utility that's used to get handles of 32-bit processes from a 64-bit process. Open StayFocused.sln, set the configuration to x86 and build the 32BitHelper project. These are the DLLs that get injected into apps and they're responsible for preventing focus stealing. Open PreventFocusStealing\PreventFocusStealing.vcxproj and build both 32 and 64-bit versions. The building process is a bit involved at the moment, this should be streamlined in the future. When running in the blacklist mode, you shouldn't run this with administrator privileges, system processes are not very safe to hook. You may wanto to turn on the blacklist mode to hook everything excluding system apps. ini file, exit and re-run Stay Focused to apply changes. To exit and unload it, click the unload button.Ĭonfigure which apps you want to hook by editing the. Closing the window minimizes the app to tray. The DLL "hooks" the process' system calls to SetForegroundWindow to an empty function.Įxtract the app somewhere and run it, it will automatically hook whitelisted apps and watch for newly created ones. This utility prevents focus stealing by injecting a DLL into offending apps. Focus stealing occurs when an app pops up unexpectedly, like when you're in the middle of writing a sentence in another window. Stay Focused prevents the annoying "focus stealing" that's been plaguing Windows since Windows 2000.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |