08-16-2018, 05:44 AM
the only reliable way i can think of is using a filter function and separate trigger function
Function FF_Notepad
Function F6_Notepad
Trigger F6 //FF_Notepad
Function F7_Notepad
Trigger F7 //FF_Notepad
Function F8_Notepad
Trigger F8 //FF_Notepad
Function FF_Notepad
;/
;Each macro or function (key or mouse triggered) that has this filter
;function, will run only if Notepad window is active.
function# iid FILTER&f
if(wintest(f.hwnd "" "Notepad")) ret iid
ret -2
Function F6_Notepad
Trigger F6 //FF_Notepad
Function F7_Notepad
Trigger F7 //FF_Notepad
Function F8_Notepad
Trigger F8 //FF_Notepad