Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
variable scope : want to be sure
#10
or
Toolbar Toolbar48
Trigger !a"Untitled - Notepad" "Notepad"     Help - how to add the trigger to the macro
Code:
Copy      Help
Macro2122 :mac "Macro2122" _command
Macro Macro2122
Code:
Copy      Help
;\
outw GetToolbarOwner(TriggerWindow)

_command in toolbar is toolbar handle as string. As well as in functions called from toolbar.
When using mac, the macro runs in other thread, therefore _command is empty if we don't pass it with mac.
TriggerWindow is same as val(_command).


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)