Toggle ( Run or Show ) / ( Hide ) Window

Post your working scripts, libraries and tools
brodoplovac
Posts: 1
Joined: 19 Mar 2018, 06:49

Toggle ( Run or Show ) / ( Hide ) Window

19 Mar 2018, 10:05

I needed a way to conveniently open my calculator, so I made this script.

Only shortcut is Alt + Ctrl + P.
If calculator Speedcrunch.exe is not open, this shortcut will open it.
Afterward, this shortcut is toggle for hide/show Speedcrunch.exe window. Even taskbar button will be hidden.

If program is minimized, this shortcut will restore window and will place it on the top.
If calculator window is behind some other program, this shortcut will bring Speedcrunch.exe window on top.

When calculator window is hidden, focus will go back to last active window. Last active window will be remembered in C:\SpeedCrunchONOFF.txt INI file.
For this reason you have to make one "C:\SpeedCrunchONOFF.txt" INI file, and you have to place this text inside of it.

Code: [Select all] [Download] GeSHi © Codebox Plus

[Etc]
LastActiveWindow=


If you want to close Speedcrunch, that is done manually. Just click "X".

This is text of a script.

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus

Return to “Scripts and Functions”

Who is online

Users browsing this forum: robodesign and 22 guests