Dear Liviu
below I added an updated version of my Autohotkey-script which provides additional menu-hotkeys for FET.
Since your recent version does not support alt-hotkeys for the menu bar I had to change my script in a way that it should support different font & window sizes, so generated mouse-clicks on specific menu pop-ups no longer necessary.
Maybe it also might be useful for other users.
Regards
UI
below I added an updated version of my Autohotkey-script which provides additional menu-hotkeys for FET.
Since your recent version does not support alt-hotkeys for the menu bar I had to change my script in a way that it should support different font & window sizes, so generated mouse-clicks on specific menu pop-ups no longer necessary.
Maybe it also might be useful for other users.
Regards
UI
Code Select
;====================================================================================
; MS-WIN - FET GUI Autohotkey script - tested on FET 6.3.0
; provides 5 additional hotkeys for
;
; (1) CTRL+g starting a timetable generation from open activity planing dialog window
;
; (2) CTRL+f aborting timetable generation and reopening activity planing dialog window
;
; (3) CTRL+w opening both teacher and student timetables
;
; (4) CTRL+t opening all-time constraints window
;
; (5) SHIFT+CTRL+t opening all-time constraints window & enables sorting
;
; (6) ALT+SHIFT+CTRL+t opening all-time constraints window & enables last filter & enables sorting
;
;
; CAUTION : (Re-)defining hotkeys on MS-Windows may block pre-defined (system) hotkeys !
;
;====================================================================================
#SingleInstance, force
#Persistent
#NoEnv
CoordMode, Mouse, Screen
SetTitleMatchMode, 2
SetTitleMatchMode, slow
window_border := 40
return
;====================================================================================
^g:: ;(1) Hotkey handler for Ctrl+g / replace by your own hotkey
if not WinExist("ahk_exe fet.exe")
{
MsgBox ERROR: FET not running!
return
}
else
{
WinActivate, ahk_exe fet.exe
WinGetPos , X_FET_winpos, Y_FET_winpos, FET_Win_Width, FET_Win_Height, ahk_exe fet.exe, , ,
x_pos := X_FET_winpos + FET_Win_Width/2 ; window center
y_pos := Y_FET_winpos + window_border ; window border
Click, %x_pos%, %y_pos% ;get focus on FET Main window
Sleep 100
Send {Escape} ; leave dialog window
Sleep 100
Send {Escape} ; leave dialog window
Sleep 100
Send {Escape} ; leave dialog window
Sleep 100 ; wait 100ms
Send ^e ; send CTRL+e to keyboard / opens timetable generation window / replace by your own language specific hotkey
Sleep 100
Send {enter} ; start timetable generation
}
return
;====================================================================================
^f:: ;(2) Hotkey handler for Ctrl+f / replace by your own hotkey
if not WinExist("ahk_exe fet.exe")
{
MsgBox ERROR: FET not running!
return
}
else
{
WinActivate, ahk_exe fet.exe
Send {Escape} ; abort timetable generation
Sleep 100
Send {Escape} ; leave report window
Sleep 200
Send ^a ; open activity planing dialog CTRL+a / replace by your own language specific hotkey
}
return
;====================================================================================
^w:: ; hotkey for opening both teacher and student timetables
if not WinExist("ahk_exe fet.exe")
{
MsgBox ERROR: FET not running!
return
}
else
{
WinActivate, ahk_exe fet.exe
WinGetPos , X_FET_winpos, Y_FET_winpos, FET_Win_Width, FET_Win_Height, ahk_exe fet.exe, , ,
x_pos := X_FET_winpos + FET_Win_Width/2 ; window center
y_pos := Y_FET_winpos + window_border ; window_border
Send {Escape}
Sleep 50
Send {Escape}
Sleep 50
Click, %x_pos%, %y_pos% ;get focus on FET Main window
Sleep 50
Send {alt} ;enable FET menu bar & navigate to desired menu entry
Sleep 50 ;navigate to timetable --> teachers
Send {Right}
Sleep 50
Send {Right}
Sleep 50
Send {Right}
Sleep 50
Send {Right}
Sleep 50
Send {Down}
Sleep 50
Send {Down}
Sleep 50
Send {Right}
Sleep 50
Send {enter} ; open window
Click, %x_pos%, %y_pos% ;get focus on FET Main window
Sleep 50
Send {alt} ;enable FET menu bar & navigate to desired menu entry
Sleep 50 ;navigate to timetable --> classes
Send {Right}
Sleep 50
Send {Right}
Sleep 50
Send {Right}
Sleep 50
Send {Right}
Sleep 50
Send {Down}
Sleep 50
Send {Down}
Sleep 50
Send {Down}
Sleep 50
Send {Right}
Sleep 50
Send {enter} ; open window
}
return
;====================================================================================
^t:: ; hotkey for opening all-time constraints window
if not WinExist("ahk_exe fet.exe")
{
MsgBox ERROR: FET not running!
return
}
else
{
WinActivate, ahk_exe fet.exe
WinGetPos , X_FET_winpos, Y_FET_winpos, FET_Win_Width, FET_Win_Height, ahk_exe fet.exe, , ,
x_pos := X_FET_winpos + FET_Win_Width/2 ; window center
y_pos := Y_FET_winpos + window_border ; window_border
Send {Escape}
Sleep 50
Send {Escape}
Sleep 50
Click, %x_pos%, %y_pos% ;get focus on FET Main window
Sleep 50
Send {alt} ;enable FET menu bar & navigate to desired menu entry --> Menu Data
Sleep 50 ;navigate to all-time constraints window
Send {Right}
Sleep 50
send {Down 12}
send {enter} ; open window
}
return
;====================================================================================
+^t:: ; hotkey for opening all-time constraints window & enables sorting
if not WinExist("ahk_exe fet.exe")
{
MsgBox ERROR: FET not running!
return
}
else
{
WinActivate, ahk_exe fet.exe
WinGetPos , X_FET_winpos, Y_FET_winpos, FET_Win_Width, FET_Win_Height, ahk_exe fet.exe, , ,
x_pos := X_FET_winpos + FET_Win_Width/2 ; window center
y_pos := Y_FET_winpos + window_border ; window_border
Send {Escape}
Sleep 50
Send {Escape}
Sleep 50
Click, %x_pos%, %y_pos% ;get focus on FET Main window
Sleep 50
Send {alt} ;enable FET menu bar & navigate to desired menu entry --> Menu Data
Sleep 50 ;navigate to all-time constraints window
Send {Right}
Sleep 50
send {Down 12}
Sleep 50
send {enter} ; open window
Send {Tab 8}
Send {Space}
}
return
;====================================================================================
!+^t:: ; hotkey for opening all-time constraints window & enables last filter & enables sorting
if not WinExist("ahk_exe fet.exe")
{
MsgBox ERROR: FET not running!
return
}
else
{
WinActivate, ahk_exe fet.exe
WinGetPos , X_FET_winpos, Y_FET_winpos, FET_Win_Width, FET_Win_Height, ahk_exe fet.exe, , ,
x_pos := X_FET_winpos + FET_Win_Width/2 ; window center
y_pos := Y_FET_winpos + window_border ; window_border
Send {Escape}
Sleep 50
Send {Escape}
Sleep 50
Click, %x_pos%, %y_pos% ;get focus on FET Main window
Sleep 50
Send {alt} ;enable FET menu bar & navigate to desired menu entry --> Menu Data
Sleep 50 ;navigate to all-time constraints window
Send {Right}
Sleep 50
send {Down 12}
Sleep 50
send {enter} ; open window
Send {Tab 7}
Send {Space}
Sleep 100
send {enter}
Sleep 50
Send {Tab}
} Send {Space}
return
;====================================================================================
^F1:: ;HELP Infos
MsgBox FET-GUI Tool - Help`n`n(1) CTRL+g starting a timetable generation from open activity planing dialog window`n`n(2) CTRL+f aborting timetable generation and reopening activity planing dialog window`n`n(3) CTRL+w opening both teacher and student timetables`n`n(4) CTRL+t opening all-time constraints window`n`n(5) SHIFT+CTRL+t opening all-time constraints window & enables sorting`n`n(6) ALT+SHIFT+CTRL+t opening all-time constraints window & enables last filter & enables sorting
return
;====================================================================================
; Further docs can be found at:
; https://www.autohotkey.com/
; https://www.autohotkey.com/docs/Hotkeys.htm
; https://www.autohotkey.com/docs/KeyList.htm
;====================================================================================