Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Send key sequence to window until specific value in child field
#1
I need to run a loop sending a keys sequence and testing certain field for value and if the value is not meeting condition, reloop:

Code:
Copy      Help
int wMain=win("" "*.Window.*" "KeePass")
if(!wMain) ret;
int w=child("" "*.Window.*" wMain 0x0 "wfName=m_pbQuality")
if(!w) ret;
WindowText wt.Init(w)
 g1
'VDDY           ;; Space (40) (40) Enter
wait 50
str s=wt.CaptureToString
x = ????? ;; <===== extract the integer part from s
if(x < 52) goto g1
ret

1. How do I extract the integer part from 's' when it contains text like "57 bits" ?
2. Is it better to use WindowText wt.Init(w), wt.CaptureToString or s.getwintext(w) ?


Messages In This Thread
Send key sequence to window until specific value in child field - by Ethereal - 08-09-2018, 06:23 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)