Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Execute multiple hotkeys under a specific program
#7
cannot duplicate your issue i just ran it with notepad word and wordpad all open only fired and worked on notepad.

found the bug try this

Macro NotepadMultiKey
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
,sel vk
,,case VK_F6
,,if win()!=w; act w
,,_s="http://quickmacros.com"
,,paste+ _s        
,,case VK_F7
,,if win()!=w; act w
,,_s="http://bing.com"
,,paste+ _s        
,,case VK_F8
,,if win()!=w; act w
,,_s="http://google.com"
,,paste+ _s

sorry posted wrong code corrected now.

and to answer your last question no this cannot be made into an exe in the current format because it uses a qm trigger.
anything with triggers cannot be made into an exe.


Messages In This Thread
RE: Execute multiple hotkeys under a specific program - by Kevin - 08-17-2018, 12:25 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)