Jump to content

Help with autohotkey script - make window in focus

Go to solution Solved by minibois,

This might help:

 

Basically here Taran shows his application opening/switching/etc. AHK script, which I think you could use for the second part of your question.

For the every 12 minutes part, I think using Task Schedular (assuming you use Windows) might just be the easiest option:

https://docs.microsoft.com/en-us/windows/desktop/taskschd/using-the-task-scheduler

Apparently it's just as easy as saying you want it to happen every how ever many minutes/hours:

https://stackoverflow.com/questions/21240656/run-a-script-every-4-hours-with-task-scheduler

 

 

Hey! I was wondering if it's possible to make a script where it brings one specific application in focus every 12 min and then minimizes it instantly.

So to summarize:

  • wait 12 minutes
  • bring app to focus
  • minimize it (or make it re-focus last used app if possible?)

So far i only found that minimizing it will make the previous app come in focus again.

AMD Ryzen 9950X3D [x2 360 Rad EKWB] | Asus Extreme x670E | RTX STRIX 5090 OC@3GHz [Alpha Block] | Corsair HX1500i | G.Skill Neo CL30 6000MHz (2x32GB) | Samsung 9100PRO 8TB Gen5 + MP700 2TB Gen5 + 980/950 Pro 1TB M.2 | x6 85PRO 512GB | NAS@10Gbit/s 4x 24TB Seagate Exo Raid 10 (2x 1TB raid 1 NVME Cache) - 4x 1TB NVMe Raid 0 + Backblaze | Lian-Li o11D XL | Main Screen: Samsung OLED G9 | AUX: LG IPS7 27" (x2) LG CX 55" G-Sync | 10Gbit/s ISP connection | Copyright©1996-2026 Teletha All rights reserved. ®

Link to post
Share on other sites

This might help:

 

Basically here Taran shows his application opening/switching/etc. AHK script, which I think you could use for the second part of your question.

For the every 12 minutes part, I think using Task Schedular (assuming you use Windows) might just be the easiest option:

https://docs.microsoft.com/en-us/windows/desktop/taskschd/using-the-task-scheduler

Apparently it's just as easy as saying you want it to happen every how ever many minutes/hours:

https://stackoverflow.com/questions/21240656/run-a-script-every-4-hours-with-task-scheduler

 

 

"We're all in this together, might as well be friends" Tom, Toonami.

 

mini eLiXiVy: my open source 65% mechanical PCB, a build log, PCB anatomy and discussing open source licenses: https://linustechtips.com/topic/1366493-elixivy-a-65-mechanical-keyboard-build-log-pcb-anatomy-and-how-i-open-sourced-this-project/

 

mini_cardboard: a 4% keyboard build log and how keyboards workhttps://linustechtips.com/topic/1328547-mini_cardboard-a-4-keyboard-build-log-and-how-keyboards-work/

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×