quote from another post:
牛肉乾如果張單係$320
交少過$320 PPS係唔容許
個繳費碼已經內含咗應該交既最低金額
違例泊車張單繳費碼令到PPS知道張單係$320
另外$480/600牛肉乾,PPS會知張單最少交$480
所以我試過寫300張支票去交$320
;五大訴求, 缺一不可
;Five demands, not one less
;Change the following 5 setting
PageWaitSec := 3000 ;Time to wait between switching pages, 3000 is 3 sec
SendWaitSec := 8000 ;Time to wait after pressing the PAY button to confirm the payment, 8000 is 8 sec
BillRowToPay := 3 ;If the bill you want to pay is on row 1 in the pps website. Set this to 1. If it is in row 10, change it to 10. etc...
AmountToPay := 1.12
NumTimeToPay := 10
;Pause for 15 sec to switch to the correct browser windows
Sleep, 15000
Loop, %NumTimeToPay% {
;Tab pass the PPS header
Click 100,100 ;click the logo to get ready to tab
Send {Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab} ;This would go pass all the header button
;Tab to the correct row of the bill
Loop, %BillRowToPay% {
Send {Tab}
}
Send {Enter} ;select the correct bill to pay
Sleep, %PageWaitSec%
;Set the amount to pay for each transaction and wait for next page to load
;Tab pass the PPS header
;Click 50,50 ;交稅時請將開頭個「;」del,水費/ 差餉唔駛改
;Send {Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab} ;交稅時請將開頭個「;」del,水費/ 差餉唔駛改
;Send {Down}{Tab} 交稅時請將開頭個「;」del,水費/ 差餉唔駛改
Send %AmountToPay%{Tab}{Tab}{Tab}{Tab}
Send {Enter}
Sleep, %PageWaitSec%
;Confirm Payment
Send {Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Enter} ;This would goes to the PAY button and clikc it
Sleep, %SendWaitSec%
AmountToPay += 0.01
AmountToPay := Round(AmountToPay, 2)
;Go back to the top to start over
Send {Tab}{Enter} ;Go back to the pay Bill tab and start all over
Sleep, %PageWaitSec%
}
MsgBox
;