Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
variable scope : want to be sure
#5
1. Valid.
2. int+ MyWindow is optional if variable MyWindow already exists when the macro runs first time.

If the macro or function always runs from the toolbar, you can use GetToolbarOwner.
Toolbar Toolbar48
Trigger !a"Untitled - Notepad" "Notepad"     Help - how to add the trigger to the macro
Code:
Copy      Help
Macro2121 :mac "Macro2121" "" GetToolbarOwner(TriggerWindow)
Function253 :Function253
Macro Macro2121
Code:
Copy      Help
;\
function hwnd
outw hwnd
Function Function253
Code:
Copy      Help
outw GetToolbarOwner(TriggerWindow)


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)