Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
edit text subtract help
#1
i guess last time i asked this question i didn't explain it to well, i need help getting win text from two different static texts on a dialog and subtracting one of those text from the other text,
Code:
Copy      Help
str a.getwintext(id(3 "Dialog"))
str b.getwintext(id(4 "Dialog"))
;;then subtract id(4 "Dialog"))
;;from id(3 "Dialog"))
;; say id(3 "Dialog")) has an amount of 1000
;; and id(4 "Dialog")) has an amount of 250
;; subtract 250 from 1000 would = 750 so that would break
;; if id(4 "dialog")) has an amount of 500 subtract that from id(3 "Dialog")) that would = 500 then out ret
;;if = 500 out
                ret
    else, break
Thanks For Any Help Added Smile


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)