try this .This is a little different has one function that runs in a loop and does actions if F6,F7, or F8 keys are pressed. ends either when the notepad window closes or pause key is pressed.
Macro Notepad Multi Key
Trigger !a"" "Notepad"
I cleaned up the code some changed reflected above. Like i said in previous post don't use F1 F3 or F5 as they are already assigned hotkeys in notepad
Macro Notepad Multi Key
Trigger !a"" "Notepad"
int vk w
rep
,w=win("" "Notepad"); if !w;ret
,rep
,,vk=wait(0.3 K)
,,err
,,,w=win("" "Notepad"); if !w; ret
,,,continue
,,break
,if win()!=w
,,act w
,sel vk
,,case VK_F6
,,_s="http://quickmacros.com"
,,paste+ _s
,,case VK_F7
,,_s="http://bing.com"
,,paste+ _s
,,case VK_F8
,,_s="http://google.com"
,,paste+ _s
I cleaned up the code some changed reflected above. Like i said in previous post don't use F1 F3 or F5 as they are already assigned hotkeys in notepad