I have a script in mind, and wanted to get some feedback, mainly - does a script like that already exist and otherwise how would I go around writing it ...
Basically I want the script to read a configuration file that will have a list of key names and the programs to launch/switch to if the key is pressed (I am mainly interested in the numpad keys)
A program will be identified by both an executable file path and optionally a window title mask so that it can point to a specific chrome tab for example.
On pressing the key the script will do the following:
- if there is no currently running process of the matching executable file path, start one and switch to it
- if the currently active process is not a match, but there are matches, switch to the first match (in order of creation or in order they are in the task bar), looping through the matches.
- if the currently active process is a match, and there are other matches, switch to the next one (in order as above)
- otherwise (only one instance that is currently active) do nothing
For example if numpad 5 is associated with visual studio (.../devenv.exe), then pressing numpad5 will start visual studio if it's not running, or switch to the first / next running instance if there are one or more running.
If numpad 3 is associated with chrome and tab gmail it will start/switch to that tab.
I hope that this is clear. Any pointers/code very appreciated.
Thx!
- Home Board index AutoHotkey (v1.1 and older) Ask for Help (v1)
- Search
-
- It is currently 05 May 2024, 07:17
- All times are UTC-05:00
Launche/Switch Script
Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Jump to
- AutoHotkey Foundation
- About This Community
- Forum Issues
- AutoHotkey (v2, current version)
- Ask for Help (v2)
- Gaming
- Scripts and Functions (v2)
- Gaming
- Tutorials (v2)
- Tips and Tricks
- Wish List
- Suggestions on Documentation Improvements
- Bug Reports
- AutoHotkey Development
- AutoHotkey_H
- Ask for Help
- Development
- Editors
- Adventure IDE
- Old Topics
- AHK Studio
- Notepad++
- Pulovers Macro Creator
- SciTE4AutoHotkey
- Visual Studio Code
- Announcements
- General Discussion
- AutoHotkey (v1.1 and older)
- Ask for Help (v1)
- Gaming Help (v1)
- Scripts and Functions (v1)
- Gaming Scripts (v1)
- Tutorials (v1)
- Tips and Tricks (v1)
- General
- Other Utilities & Resources
- Other Programming Languages
- C/C++
- ASM
- C#
- KeySharp
- Off-topic Discussion
- RPA
- Other languages
- Looking for Volunteers in other languages
- Deutsch (German)
- Ich brauche Hilfe
- Spiele
- Skripte und Funktionen
- Tutorials
- Tooltime
- Allgemeines
- 中文 (Chinese)
- 请求帮助
- 脚本函数
- 教程资料
- 相关工具
- 其他
- Español (Spanish)
- Pedir Ayuda
- Automatización de Juegos
- Scripts y Funciones
- Tutoriales
- Otras Utilidades y Recursos
- General
- Русский (Russian)
- Помощь
- Скрипты для Игр
- Скрипты и библиотеки
- Статьи и руководства
- Прочие ресурсы и ПО.
- Свободное общение
- Français (French)
- J'ai besoin d'aide
- Scripts et Fonctions
- Tutoriels
- Autres Utilitaires et Ressources
- Hors Sujet
- Português (Portuguese)
- Ajuda e Suporte Geral
- Scripts e Funções
- Tutoriais
- Outras Ferramentas e Recursos
- Outros Assuntos
- 한국어 (Korean)
Who is online
Users browsing this forum: Bing [Bot], fiendhunter, mikeyww, Rohwedder and 331 guests