Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need help to use RandomInt
#1
hi

I'm trying this very powerful tool.

Please I need of your help about an error in this Macro

int w1=act(win("Microsoft Excel - vrt.xlsm" "XLMAIN"))
int i
rep (2)
i+1
if(i>2) break
lef 586 318 w1 1 ;;EXCEL7 'vrt.xlsm'
lef 586 318 w1 1 ;;EXCEL7 'vrt.xlsm'
lef+ 281 159 w1 1 ;;EXCEL<
lef- 232 152 w1 1
'Cc ;; CTRL+C
int w2=win("ShopClient" "HwndWrapper[DefaultDomain;;cc69a213-6c75-4e72-827f-a668f0895152]")
lef 95 150 w2 1 ;;radio button
wait 1
lef 346 421 w2 1 ;;push button
wait 1
lef 1767 857 w2 1 ;;editable text
wait 1
out i ;; CTRL+V
lef 1857 953 w2 1 ;;push button 'Insert'
lef 1861 944 w2 1 ;;push button 'Confirm'
wait RandomInt (5 10)

in the first line I need to wait a random time between 5 to 10 sec but I get this error " expected 2 to 2 arguments, not 0."

many thanks for your help

Luca
#2
replace
wait RandomInt (5 10)
to
wait RandomInt(5 10)

Because in QM ( must be immediately after function name, spaces are not allowed.
#3
Solved!!!!

many thanks


Forum Jump:


Users browsing this thread: 2 Guest(s)