Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Execute multiple hotkeys under a specific program
#5
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"     Help - how to add the trigger to the macro
Code:
Copy      Help
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


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

Forum Jump:


Users browsing this thread: 4 Guest(s)