Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
From a senior citizen
#1
I do hope someone will help an old man. I haven’t done any program since I used Basic & APL 25 years ago before I retired. I wrote the following to automate the backup of my Email to an external drive. I works SOMETIMES. This is a long process and the only thing that changes on the windows w1 through w4 id the name of the block to click on. Such as “Next” or “Select” or “Finish”. It hangs up at “int w4=..”
Please help
;;Backup Thunderbird to Buslink drive

;del "J:\3-?????? Thunderbird Backup File\*.*" ;;remove old files
run "$program files$\RinjaniSoft\EZ Backup Thunderbird Basic\ezbackupthunderbirdbasic.exe"
wait 0 WA "EZ Backup Thunderbird Basic 5.4"
int w1=act(win("EZ Backup Thunderbird Basic 5.4" "TForm1"))
lef 333 345 w1 ;;Click next from initial screen
3
int w2=act(win("EZ Backup Thunderbird Basic 5.4" "TForm1"))
lef 333 345 w2 ;;Click next to select place to back up the file
3
int w3=act(win("EZ Backup Thunderbird Basic 5.4" "TForm1"))
lef 333 345 w3 ;; Click next to acknowledge warning
wait 0 P 10
1
int w4=act(win("EZ Backup Thunderbird Basic 5.4" "TForm1"))
lef 3
#2
The last line "lef 3". I think there should be some coordinates associated with it (the x y values of the button its trying to click). However, I think a better way to do this would be to find out what command line alternates are available to make the backup "silent" so that you aren't presented with any prompts.
Matt B


Forum Jump:


Users browsing this thread: 1 Guest(s)