09-04-2014, 08:06 AM
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
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