For example, when the x-coordinate is between 0 to 100, and y-coordinate is between 0 to 50, it should launch Windows Explorer.
Similarly, when the x-coordinate is between 100 to 200, and y-coordinate is between 0 to 50, it should launch Chrome. You get the idea.
Right now, I just have the script to detect whether Desktop is currently active.
Code: Select all
IsDesktopActive() {
MouseGetPos,,,win
WinGetClass, class, ahk_id %win%
If class in Progman,WorkerW
Return True
Return False
}
Any help is appreciated!