WinExeCommander - Simplify the calling of functions when windows/processes are created, devices are connected.
Posted: 18 Apr 2024, 10:13
WinExeCommander
Script to simplify the calling of functions when windows/processes are created/terminated, devices are connected/disconnected.
Features
Download on GitHub
For example:
When the Calculator app is opened, set the window to be always on top.
When the "mspaint.exe" process is created, change its priority level to "High".
Script to simplify the calling of functions when windows/processes are created/terminated, devices are connected/disconnected.
Features
- Execute fonctions upon:
- Process creation/termination.
- Window creation/termination, activated/deactivated.
- Device connection/disconnection. - Select from various criteria, including wintitle, winclass, process name, process path, active/maximize/hidden window and additional parameters.
- Enable or disable the monitoring of individual events using the tray menu, user interface (GUI), or method call.
- Save profiles and load them via the tray menu, user interface (GUI), or method call.
- Themes customization
Download on GitHub
For example:
When the Calculator app is opened, set the window to be always on top.
Code: Select all
Calculator_AlwaysOnTop_Created(mEvent) {
if WinExist('ahk_id ' mEvent['id'])
WinSetAlwaysOnTop(1, 'ahk_id ' mEvent['id'])
else
WinExeCmd.MsgBox('Calculator does not exist.', 'WinExeCommander', 'iconx')
}
Code: Select all
MSPaint_ProcessSetPriority_Created(mEvent) {
if ProcessExist(mEvent['pid'])
ProcessSetPriority('High', mEvent['pid'])
else
WinExeCmd.MsgBox('MSPaint does not exist.', 'WinExeCommander', 'iconx')
}