Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
using astrix(*) in str only text
#1
str left=("*has left the Conference. ") ;; im trying to use the * here because the name changes everyperson that leaves but im not sure how to do it
str s sp diff
str sp.getwintext(child("" "Internet Explorer_Server" win("Conference:*" "YSearchMenuWndClass" "" 0x1) 0x1))
act id(225 win("Freind*" "YSearchMenuWndClass" "" 0x1))
_s=sp; _s.setwintext(id(225 win("Friend*" "YSearchMenuWndClass" "" 0x1)))
0.001
key Y
rep
,0.001
,s.getwintext(child("" "Internet Explorer_Server" win("Conference:*" "YSearchMenuWndClass" "" 0x1) 0x1))
,if(s.len>sp.len) diff.get(s sp.len)
,,if left=diff
,,,act id(225 win("Freind*" "YSearchMenuWndClass" "" 0x1))
,,,_s=diff; _s.setwintext(id(225 win("Freind*" "YSearchMenuWndClass" "" 0x1)))
,,,key X
,,,0.001
,,,key Y
,,else diff=""
,,,sp=s
,,,1
#2
try to change
if left=diff
to
if matchw(diff left)
#3
perfect thanks alot heres final code
;start
str left=("*has left the Conference. ") ;; im trying to use the * here because the name changes everyperson that leaves but im not sure how to do it
str s sp diff
str sp.getwintext(child("" "Internet Explorer_Server" win("Conference:*" "YSearchMenuWndClass" "" 0x1) 0x1))
0.001
rep
,0.001
,s.getwintext(child("" "Internet Explorer_Server" win("Conference:*" "YSearchMenuWndClass" "" 0x1) 0x1))
,if(s.len>sp.len) diff.get(s sp.len)
,,if matchw(diff left)
,,,act id(225 win("Freind*" "YSearchMenuWndClass" "" 0x1))
,,,_s=diff; _s.setwintext(id(225 win("Freind*" "YSearchMenuWndClass" "" 0x1)))
,,,key X
,,,0.001
,,,key Y
,,,goto start
,,else diff=""
,,,sp=s
,,,1


Forum Jump:


Users browsing this thread: 1 Guest(s)