ΠΠ°Π΄Π°Π½ΠΈΠ΅ ΠΏΠΎ ΠΏΡΠ°ΠΊΡΠΈΠΊΠ΅
WinWaitActive («bank.def — ΠΠ²ΡΠΎΠΌΠ°ΡΠΈΠ·ΠΈΡΠΎΠ²Π°Π½Π½Π°ΡΠ±Π°Π½ΠΊΠΎΠ²ΡΠΊΠ°ΡΡΠΈΡΡΠ΅ΠΌΠ° RS-Bank» ," ΠΠ²Π΅Π΄ΠΈΡΠ΅Π΄Π°ΡΡΠΎΡΠΏΡΠ°Π²ΠΊΠΈΠ‘ΠΠ‘"). WinWaitActive («bank.def — ΠΠ²ΡΠΎΠΌΠ°ΡΠΈΠ·ΠΈΡΠΎΠ²Π°Π½Π½Π°Ρ Π±Π°Π½ΠΊΠΎΠ²ΡΠΊΠ°Ρ ΡΠΈΡΡΠ΅ΠΌΠ° RS-Bank» ," Π£ΠΊΠ°ΠΆΠΈΡΠ΅ ΠΏΠ΅ΡΠΈΠΎΠ΄"). WinWaitActive («bank.def — ΠΠ²ΡΠΎΠΌΠ°ΡΠΈΠ·ΠΈΡΠΎΠ²Π°Π½Π½Π°ΡΠ±Π°Π½ΠΊΠΎΠ²ΡΠΊΠ°ΡΡΠΈΡΡΠ΅ΠΌΠ° RS-Bank» ," Π‘ΠΏΠΈΡΠΎΠΊΠΏΡΠΎΡΠ΅Π΄ΡΡ"). WinWaitActive («bank.def — ΠΠ²ΡΠΎΠΌΠ°ΡΠΈΠ·ΠΈΡΠΎΠ²Π°Π½Π½Π°Ρ Π±Π°Π½ΠΊΠΎΠ²ΡΠΊΠ°Ρ ΡΠΈΡΡΠ΅ΠΌΠ° RS-Bank» ," ΠΡΠΎΡΠΌΠΎΡΡ"). ControlClick… Π§ΠΈΡΠ°ΡΡ Π΅ΡΡ >
ΠΠ°Π΄Π°Π½ΠΈΠ΅ ΠΏΠΎ ΠΏΡΠ°ΠΊΡΠΈΠΊΠ΅ (ΡΠ΅ΡΠ΅ΡΠ°Ρ, ΠΊΡΡΡΠΎΠ²Π°Ρ, Π΄ΠΈΠΏΠ»ΠΎΠΌ, ΠΊΠΎΠ½ΡΡΠΎΠ»ΡΠ½Π°Ρ)
ΠΠ°ΠΏΠΈΡΠ°ΡΡ ΠΏΡΠΎΠ³ΡΠ°ΠΌΠΌΡ ΠΏΠΎ Π°Π²ΡΠΎΠΌΠ°ΡΠΈΠ·Π°ΡΠΈΠΈ ΠΏΡΠΎΡΠ΅ΡΡΠΎΠ².
ΠΠΎΠ΄ΠΏΡΠΎΠ³ΡΠ°ΠΌΠΌΡ:
#include.
#include.
#include.
#include.
#include.
#include.
#include.
#include.
#include.
$Date=_DateAdd ('D',-1, _NowCalcDate ()).
$Dates=_DateAdd ('D', 0, _NowCalcDate ()).
#Region ### START Koda GUI section ### Form=.
$Form1 = GUICreate («Form1», 373, 149, 192, 124).
$Date1 = GUICtrlCreateDate ($Dates, 161, 24, 186, 21, $DTS_SHORTDATEFORMAT).
$Date2 = GUICtrlCreateDate ($Date, 161, 56, 186, 21, $DTS_SHORTDATEFORMAT).
$Label1 = GUICtrlCreateLabel («ΠΠ°ΡΠ°ΡΠΎΡΠΌΠΈΡΠΎΠ²Π°Π½ΠΈΡΡΠΌΡ», 20, 24, 132, 17).
$Label2 = GUICtrlCreateLabel («ΠΠ°ΡΠ°ΠΎΠ±ΡΠ°Π±ΠΎΡΠΊΠΈΡΠΌΡ», 20, 56, 109, 17).
$Button1 = GUICtrlCreateButton («ΠΠ°ΠΏΡΡΡΠΈΡΡ», 136, 96, 75, 25).
GUISetState (@SW_SHOW).
#EndRegion ### END Koda GUI section ###.
While 1.
$nMsg = GUIGetMsg ().
Switch $nMsg.
Case $GUI_EVENT_CLOSE.
Exit.
case $Button1.
AutoItSetOption («SendKeyDelay», 200).
$Date1 = GUICtrlRead ($Date1).
$Date2 = GUICtrlRead ($Date2).
Run («G:RsBank55Term55 erm. exew» ," G: RsBank55Term55″).
WinWaitActive («ΠΠ ΠΡΠΎΡΡΡΠ΄Π½ΠΈΠΊΠ° — RS-Bank/Pervasive», «ΠΠ²Π΅Π΄ΠΈΡΠ΅ΠΠ°ΡΠ½ΠΎΠΌΠ΅Ρ»).
Send («9999{ENTER}»).
Sleep (200).
$pass="777 999″ .
Send ($pass & «{Enter}»).
WinWaitActive («ΠΠ ΠΡΠΎΡΡΡΠ΄Π½ΠΈΠΊΠ°» ," Π‘ΠΏΠΈΡΠΎΠΊ").
AutoItSetOption («SendKeyDelay», 150).
send («{DOWN}{DOWN}{DOWN}»).
send («{ENTER}»).
AutoItSetOption («SendKeyDelay», 250).
send («{F10}»).
send («{LEFT}{LEFT}»).
send («{ENTER}»).
send («{ENTER}»).
WinWaitActive («bank.def — ΠΠ²ΡΠΎΠΌΠ°ΡΠΈΠ·ΠΈΡΠΎΠ²Π°Π½Π½Π°ΡΠ±Π°Π½ΠΊΠΎΠ²ΡΠΊΠ°ΡΡΠΈΡΡΠ΅ΠΌΠ° RS-Bank» ," Π‘ΠΏΠΈΡΠΎΠΊΠΏΡΠΎΡΠ΅Π΄ΡΡ").
Send («^{PGDN}»).
Send («{UP}»).
Send («{F6}»).
Send («{ENTER}»).
WinWaitActive («bank.def — ΠΠ²ΡΠΎΠΌΠ°ΡΠΈΠ·ΠΈΡΠΎΠ²Π°Π½Π½Π°ΡΠ±Π°Π½ΠΊΠΎΠ²ΡΠΊΠ°ΡΡΠΈΡΡΠ΅ΠΌΠ° RS-Bank» ," ΠΠ²Π΅Π΄ΠΈΡΠ΅Π΄Π°ΡΡΠΎΡΠΏΡΠ°Π²ΠΊΠΈΠ‘ΠΠ‘").
AutoItSetOption («SendKeyDelay», 50).
Send ($Date1).
Send («{ENTER}»).
WinWaitActive («bank.def — ΠΠ²ΡΠΎΠΌΠ°ΡΠΈΠ·ΠΈΡΠΎΠ²Π°Π½Π½Π°Ρ Π±Π°Π½ΠΊΠΎΠ²ΡΠΊΠ°Ρ ΡΠΈΡΡΠ΅ΠΌΠ° RS-Bank» ," Π£ΠΊΠ°ΠΆΠΈΡΠ΅ ΠΏΠ΅ΡΠΈΠΎΠ΄").
Send ($Date2).
Send («{ENTER}»).
Send ($Date2).
Send («{ENTER}»).
while 1 = 1.
ifWinActive («bank.def — ΠΠ²ΡΠΎΠΌΠ°ΡΠΈΠ·ΠΈΡΠΎΠ²Π°Π½Π½Π°ΡΠ±Π°Π½ΠΊΠΎΠ²ΡΠΊΠ°ΡΡΠΈΡΡΠ΅ΠΌΠ° RS-Bank» ," ΠΡΠ³ΡΡΠΆΠ°ΡΡΠ‘ΠΠ‘Π² SMS AIR Sender ?") Then.
ControlClick («bank.def — ΠΠ²ΡΠΎΠΌΠ°ΡΠΈΠ·ΠΈΡΠΎΠ²Π°Π½Π½Π°ΡΠ±Π°Π½ΠΊΠΎΠ²ΡΠΊΠ°ΡΡΠΈΡΡΠ΅ΠΌΠ° RS-Bank», '', '[CLASS:Button; INSTANCE:2]').
WinWaitActive («Microsoft Excel» ," «).
AutoItSetOption («SendKeyDelay», 250).
send («!{Ρ}»).
send («{ΠΊ}»).
WinWaitActive («Π‘ΠΎΡ ΡΠ°Π½Π΅Π½ΠΈΠ΅Π΄ΠΎΠΊΡΠΌΠ΅Π½ΡΠ°» ," «).
send («{TAB}»).
send («{DOWN}»).
send («{HOME}»).
send («{DOWN}{DOWN}{DOWN}»).
send («{ENTER}»).
ControlFocus («Π‘ΠΎΡ ΡΠ°Π½Π΅Π½ΠΈΠ΅ Π΄ΠΎΠΊΡΠΌΠ΅Π½ΡΠ°», «ΠΠ΅ΡΠ΅Π²ΠΎ», «Edit1»).
AutoItSetOption («SendKeyDelay», 50).
Send («G:RsBank55ARM_ADMSMS CLIENTS» & «Π΄.ΡΠΎΡΠΌ._» & $Date1 & «_Π΄Π°ΡΠ°.ΠΎΠ±_» & $Date2 & «.xls»).
send («{ENTER}»).
AutoItSetOption («SendKeyDelay», 250).
WinWaitActive («Microsoft Excel — Π΄. ΡΠΎΡΠΌ» ," «).
send («!{Ρ}»).
send («{Π²}»).
$msg = «ΠΠ‘Π’Π¬ Π‘ΠΠΠΠ©ΠΠΠΠ ΠΠΠ― ΠΠ’ΠΠ ΠΠΠΠ» .
ExitLoop.
Else.
EndIf.
ifWinActive («Microsoft Excel» ," «) then.
send («!{Ρ}»).
send («{Π²}»).
send («{TAB}»).
send («{ENTER}»).
ControlClick («bank.def — ΠΠ²ΡΠΎΠΌΠ°ΡΠΈΠ·ΠΈΡΠΎΠ²Π°Π½Π½Π°ΡΠ±Π°Π½ΠΊΠΎΠ²ΡΠΊΠ°ΡΡΠΈΡΡΠ΅ΠΌΠ° RS-Bank», '', '[CLASS:Button; INSTANCE:2]').
$msg = «Π‘ΠΠΠΠ©ΠΠΠΠΠΠΠ’» .
ExitLoop.
Else.
EndIf.
WEnd.
WinWaitActive («bank.def — ΠΠ²ΡΠΎΠΌΠ°ΡΠΈΠ·ΠΈΡΠΎΠ²Π°Π½Π½Π°Ρ Π±Π°Π½ΠΊΠΎΠ²ΡΠΊΠ°Ρ ΡΠΈΡΡΠ΅ΠΌΠ° RS-Bank» ," ΠΡΠΎΡΠΌΠΎΡΡ").
send («{ESC}»).
WinWaitActive («bank.def — ΠΠ²ΡΠΎΠΌΠ°ΡΠΈΠ·ΠΈΡΠΎΠ²Π°Π½Π½Π°Ρ Π±Π°Π½ΠΊΠΎΠ²ΡΠΊΠ°Ρ ΡΠΈΡΡΠ΅ΠΌΠ° RS-Bank» ," Π‘ΠΏΠΈΡΠΎΠΊ ΠΏΡΠΎΡΠ΅Π΄ΡΡ Π² ΡΠ°ΠΉΠ»Π΅").
send («{ESC}»).
send («{F10}»).
send («{LEFT}»).
send («{ENTER}»).
send («{DOWN}»).
send («{ENTER}»).
WinWaitActive («bank.def — ΠΠ²ΡΠΎΠΌΠ°ΡΠΈΠ·ΠΈΡΠΎΠ²Π°Π½Π½Π°Ρ Π±Π°Π½ΠΊΠΎΠ²ΡΠΊΠ°Ρ ΡΠΈΡΡΠ΅ΠΌΠ° RS-Bank» ," ΠΡ Π΄Π΅ΠΉΡΡΠ²ΠΈΡΠ΅Π»ΡΠ½ΠΎ Ρ ΠΎΡΠΈΡΠ΅ Π·Π°ΠΊΠΎΠ½ΡΠΈΡΡ ΡΠ°Π±ΠΎΡΡ?").
send («{ENTER}»).
WinWaitActive («ΠΠ Π ΡΠΎΡΡΡΠ΄Π½ΠΈΠΊΠ°» ," Π‘ΠΏΠΈΡΠΎΠΊ").
send («{ESC}»).
MsgBox (0," ΠΠ½ΠΈΠΌΠ°Π½ΠΈΠ΅" ,$msg).
EndSwitch.
WEnd.
ΠΠ½Π΅ΡΠ½ΠΈΠΉ Π²ΠΈΠ΄ ΠΏΡΠΎΠ³ΡΠ°ΠΌΠΌΡ:
ΠΡΠΎΠ³ΡΠ°ΠΌΠΌΠ° ΡΠΎΡΠΌΠΈΡΡΠ΅Ρ ΡΠΌΡ ΡΠ²Π΅Π΄ΠΎΠΌΠ»Π΅Π½ΠΈΠ΅ Π΄Π»Ρ ΠΊΠ»ΠΈΠ΅Π½ΡΠΎΠ² Π² Π±Π°Π½ΠΊΠΎΠ²ΡΠΊΠΎΠΉ ΡΠΈΡΡΠ΅ΠΌΠ΅ Rs-bank 5.5 Π΄Π»Ρ ΠΎΡΠΏΡΠ°Π²ΠΊΠΈ, Ρ ΡΠΎΡ ΡΠ°Π½Π΅Π½ΠΈΠ΅ΠΌ ΠΎΡΡΠ΅ΡΠ° Π² MSExcel.