Большая Тёрка / Мысли / LFK / Просьба!
sh-скриптом сделал. Теперь можно взять что-нибудь вроде libcurl + Visual C++ и сделать то же самое, но для трея.
1 #!/bin/sh
2
3 try=
4 empty=
5
6 while [ 1 ]
7 do
8
9 try=`wget -q --keep-session-cookies --save-cookies ./cookies --no-check-certificate --header='User-Agent: Mozilla/5. 0 (Windows; U; Windows NT 6.1; ru; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3' --header='Accept: text/html,application /xhtml+xml,application/xml;q=0.9,*/*;q=0.8' --header='Accept-Charset: windows-1251,utf-8;q=0.7,*;q=0.7' --header='Accept-Encoding: gzip,deflate' --header='Accept-Language: ru,en-us;q=0.7,en;q=0.3' --post-data 'login=YOURACCOUNT&private_password=YOURPASSWORD' -O - https://billing.novotelecom.ru/billing/user/index?act=login | grep -e -100`
10
11 if [ "$try" = "$empty" ]
12 then
13 echo "Trying to pay"
14 wget -q --keep-session-cookies --load-cookies ./cookies --no-check-certificate --header='User-Agent: Mozilla/5.0 (Wi ndows; U; Windows NT 6.1; ru; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3' --header='Accept: text/html,application/xhtm l+xml,application/xml;q=0.9,*/*;q=0.8' --header='Accept-Charset: windows-1251,utf-8;q=0.7,*;q=0.7' --header='Accept-Encoding: gzip,deflate' --header='Accept-Language: ru,en-us;q=0.7,en;q=0.3' --post-data 'action=payment&predPayment=true' -O /dev/null https://billing.novotelecom.ru/billing/user/index?act=predpay
15 else
16 echo "Already paid"
17 fi
18
19 try=empty
20 sleep 900
21
22 done