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:
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) ?
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) ?