Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Execute multiple hotkeys under a specific program
#4
the only reliable way i can think of is using a filter function and separate trigger function

Function FF_Notepad
Code:
Copy      Help
;/
;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     Help - how to add the trigger to the macro
Code:
Copy      Help
out "F6"
_s="http://quickmacros.com"
paste _s

Function F7_Notepad
Trigger F7 //FF_Notepad     Help - how to add the trigger to the macro
Code:
Copy      Help
out "F7"
_s="http://bing.com"
paste _s

Function F8_Notepad
Trigger F8 //FF_Notepad     Help - how to add the trigger to the macro
Code:
Copy      Help
out "F8"
_s="http://google.com"
paste _s


Messages In This Thread
RE: Execute multiple hotkeys under a specific program - by Kevin - 08-16-2018, 05:44 AM

Forum Jump:


Users browsing this thread: 3 Guest(s)