AutoHotkey Community

It is currently May 27th, 2012, 4:36 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: March 4th, 2010, 5:25 pm 
Offline

Joined: February 25th, 2010, 4:55 pm
Posts: 8
Location: USA
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.


Report this post
Top
 Profile  
Reply with quote  
PostPosted: March 5th, 2010, 12:40 am 
Offline

Joined: December 24th, 2008, 3:25 am
Posts: 1401
Location: :noitacoL
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.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: 0x150||ISO, Bing [Bot], rbrtryn and 66 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group