Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to capture data from message box
#7
Cannot give sample code because message boxes of various applications often are different. To create QM code to get text from a message box or other window that does not support Ctrl+C to copy to the clipboard, use one of dialogs from the floating toolbar menu 'Windows, controls'.

When you already have text, the best way to extract numbers etc is regular expressions. QM uses similar regular expressions like most other languages. Google...

Macro Macro2328
Code:
Copy      Help
str s=
;Day1:- 500 data uploaded..
;Day2:- 1245 data uploaded..
;day3:- 10 data uploaded...

ARRAY(str) a
findrx(s "(\d+) data uploaded" 0 4 a)
int i
for i 0 a.len
,out a[1 i]


Messages In This Thread

Forum Jump:


Users browsing this thread: 6 Guest(s)