Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Get outex text to a string
#1
I need to store outex output to a string, in a similar way to that of QM-output. I wrote this simple code that gets outex output in tab number 2 :

Code:
Copy      Help
int h=id(101 __outex_hwnd)
int lens=SendMessageW(h WM_GETTEXTLENGTH 0 0)
s.fix(SendMessage(h WM_GETTEXT lens+1 s.all(lens)))

I am in need of some advice to use the tab's name instead of its sequential number (starting gith id=100).

Thanks.
#2
Macro Macro1262
Code:
Copy      Help
lpstr tabName="Macro1261"

int w1=win("QM outex" "QM_outex")
Acc a=acc(tabName "PAGETAB" w1 "SysTabControl32" "" 0x1001); err ret
int idEdit=a.elem+99
;out idEdit
str s.getwintext(id(idEdit w1))
out s
#3
Many thanks, indeed.


Forum Jump:


Users browsing this thread: 1 Guest(s)