Lightwave Ui - AHK - Config Win Jump


use arrow key to jump between Config windows



the code >

#NoEnv
#Warn
#SingleInstance force
SetTitleMatchMode, 2 ; use "contains" mode for window titles

;--------------------------------------------------------- jump / winpos
#IfWinActive, Configure Keys
$Right::
WinGetPos, x, y, w, h, A
WinMove, A,, 500, 180, %w%, %h%
Click, 500, 50
Sleep, 500
Send, !{F10}
Return
#IfWinActive

;--------------------------------------------------------- close
#IfWinActive, Configure Keys
$esc::
Click, 500, 50
Return
#IfWinActive

;--------------------------------------------------------- jump / winpos
#IfWinActive, Configure Menus
$Right::
WinGetPos, x, y, w, h, A
WinMove, A,, 500, 180, %w%, %h%
Click, 500, 50
Sleep, 500
Send, !{F11}
Return
#IfWinActive

;--------------------------------------------------------- jump / winpos
#IfWinActive, Edit Plug-ins
$Right::
WinGetPos, x, y, w, h, A
WinMove, A,, 500, 180, %w%, %h%
Click, 500, 50
Sleep, 500
Send, !{F9}
Return
#IfWinActive

;--------------------------------------------------------- close
#IfWinActive, Edit Plug-ins
$esc::
Click, 500, 50
Return
#IfWinActive

;--------------------------------------------------------- rolldown function
#IfWinActive, Configure Menus
$Down::
{
BlockInput, on ; Turn on input blocking
Click, 210, 84
Click, 210, 100
Click, 210, 116
Click, 210, 132
Click, 210, 148
Click, 210, 164
BlockInput, off ; Turn off input blocking
}
Return

;--------------------------------------------------------- rollup function
#IfWinActive, Configure Menus
$Up::
{
BlockInput, on ; Turn on input blocking
Click, 210, 164
Click, 210, 148
Click, 210, 132
Click, 210, 116
Click, 210, 100
Click, 210, 84
BlockInput, off ; Turn off input blocking
}
Return

ExitApp
 
Last edited:

good to see it is of interest
2TMv2Ms.gif
bcwLfNX.gif


edit; video above updated
if new to AHK, Youtube videos and ChatGPT can help a bit .
o4lHP9c.gif


so, cleaned up the code,

added >
close - hit esc to close active window
arrow up - roll up
arrow down - roll down
arrow right - jump to new window
arrow left - no function (atm)

added comments.


 
Last edited:
Back
Top