Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
C#
Python
SQL
Shell
Bash
Markdown
YAML
JSON
HTML
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
Arduino
TypeScript
Perl
Autohotkey
Lua
SQF
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
#include
#include
using std::string; #include
int main(){ //sleep 5 seconds int s=5; sleep(5); //get focused window HWND hWnd = GetForegroundWindow(); //hide focused window ShowWindow( hWnd, SW_HIDE ); //ShowWindow( hWnd, SW_HIDE ); //sleep 5 seconds sleep(5); //show hiden window ShowWindow( hWnd, SW_SHOW ); //sleep 2 seconds sleep(2); //minmize window ShowWindow( hWnd, SW_MINIMIZE ); //sleep 2 seconds sleep(2); //maximize window ShowWindow( hWnd, SW_MAXIMIZE ); //sleep 2 seconds sleep(2); //restore window ShowWindow( hWnd, SW_RESTORE ); return 0; }
Mark as private (unlisted)
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
everlasting (like CCCP)