Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Replacing text in multiple macros
#4
Replacing text in multiple macros can be automated using macro.

Macro QM_ReplaceTextInAllItems
Code:
Copy      Help
spe 10
int hwnd=win("Find" "#32770" "QM")
int hlb=id(1128 hwnd)
int hb=id(1132 hwnd)
act hlb
key H
rep LB_GetCount(hlb)
,key+ C
,but hb
,key- C
,act hlb
,key DV

Toolbar tb_QM_Find
Trigger: !a"Find" "#32770" /QM
(paste the trigger in the Trigger field in the QM main toolbar)
Code:
Copy      Help
;/mov0 185 0 /siz0 97 20 /set0 0x427 0xFCFF
Replace In All :mac "QM_ReplaceTextInAllItems"

This toolbar will appear over the title bar of the Find dialog. It will have "Replace In All" button. When you type text to find, items containing that text are listed in the right. Click "Replace In All" and it will replace text in all items listed in the right.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)