Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Updating one macro on multiple computers
#2
On client computers import the file as shared file (the 3-rd button in the file viewer).

However on client computers it will be updated not immediately. When QM restarted or main QM file reloaded. To immediately reload main QM file, click menu File -> Recent -> first item.

To automatically reload main QM file when a shared file modified, can be used macro with file trigger, like this:
Function reload_qm_shared_file
Trigger $f 0x3F8 "\\server\sharesfolder" "shared.qml"     Help - how to add the trigger to the macro
Code:
Copy      Help
function event $name [$newname]
;event: 1 added, 2 removed, 4 renamed, 8 modified
;out F"{event} {name}"

MES m.style="YNn"; m.x=-1
sel mes("Shared file modified on server computer. Update it here in QM? It will reload your main QM file.[][]%s" "Quick Macros" m name)
,case 'Y'
,shutdown -5


;Also check 'Allow single instance' in Properties -> Function properties.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)