 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
pearlst
Joined: 25 Feb 2010 Posts: 8 Location: USA
|
Posted: Thu Mar 04, 2010 4:25 pm Post subject: Doesn't collect all the information |
|
|
So, I run this program to collect tax bills.
The problem is that when it finished running via AHK it has 2,000KB, but when I manually run it it collects 4,000KB. Does anyone have any idea what is going on? I have tried slowing down the process, but it doesn't help.
Here is the code:
| Code: | Run TIMS
Sleep 7000
WinMenuSelectItem, ahk_class ObeTst, , Report, Outstanding Tax File
Sleep 20000
WinActivate, Outstanding tax file, ahk_class ObeTst
{
Click, 244, 177, 2
Sleep 2000
Click, 242, 193, 2
Sleep 2000
Click, 242, 212, 2
Sleep 2000
Click, 242, 229, 2
Sleep 2000
Click, 242, 248, 2
Sleep 2000
Click, 502, 52
Send 2009
Sleep 4000
Click, 546, 179, 2
}
Sleep 190000
Run C:\TRBALDUE.TXT
Sleep 1000
WinMenuSelectItem, ahk_class Notepad, , File, Save As
Sleep 1000
Send {Tab}{Tab}{Tab}{Tab}{Tab}
Sleep 1000
Send {Down}{Down}{Down}{Enter}
Sleep 1000
Send {Tab}{Tab}{Tab}
Sleep 1000
Send p
Sleep 100
Send {Enter}
Sleep 1000
Send l
Sleep 100
Send {Enter}
Sleep 1000
Send {Down}{Enter}{Tab}
Sleep 1000
Send TRBALDUE
Send {Space}
FormatTime, CurrentDateTime,, MMddyy
SendInput %CurrentDateTime%
Send .TXT
Sleep 1000
Send {Enter}
Sleep 1000
WinClose, ahk_class Notepad
Sleep 1000
Return |
The process is, TIMS opens, you go to build the file, click all the boxes to select the account types, change the start year and click build data. |
|
| Back to top |
|
 |
Carcophan
Joined: 24 Dec 2008 Posts: 1308 Location: :noitacoL
|
Posted: Thu Mar 04, 2010 11:40 pm Post subject: Re: Doesn't collect all the information |
|
|
| pearlst wrote: | | The problem is that when it finished running via AHK it has 2,000KB, but when I manually run it it collects 4,000KB. . |
When it runs and you get the 2mb file, is the content correct?
Did you maybe manually run the file on top of the existing 2mb file, to make it 4mb (doubling its size)?
Can you make a test, where it only runs -part- of the tims file, say 20-30 sets of data, and eyeball-compare them see if they are the same?
If it is a simple txt file, i dont think white-space takes up file/kb size. It doesn't make sense how AHK would minimze content in a file unless it is reporting incorrectly. |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|