Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
get amount
#1
i was wondering how i could getwintext from a text and if greater than a certain value subtract the greater amount until it equals the correct value for example
Code:
Copy      Help
it = 1340
if >1000
subtract the amount it is greater than so it would = 1000
if!>1000 goto(next)
something like that is what im looking for
#2
Macro Macro5
Code:
Copy      Help
CURRENCY a b c

a = "1,340"
b = "1,000"
c = "0"

if a > b
,c=a      ;; save a in c (c is not needed if you dont work with the 1000 in your following code)
,a.sub(b) ;; get difference from a to b
,c.sub(a) ;; substract difference from c (saved a)
,out c
else
,,goto ..


Forum Jump:


Users browsing this thread: 1 Guest(s)