Jump to content
Sign in to follow this  
Docfxit

Down and exit isn't working in Quickbooks

Recommended Posts

Docfxit

I have a script that works with Quickbooks 2014. I was finally able to get the Down and Exit working.

Sometimes the enter (at the Note) works and sometimes it doesn't.

#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_UseUpx=y
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
_Au3RecordSetup()
WinWait("Docfxit, Inc.  - QuickBooks Accountant 2014", "General Ledger Last ")
If Not WinActive("Docfxit, Inc.  - QuickBooks Accountant 2014", "General Ledger Last ") Then WinActivate("Docfxit, Inc.  - QuickBooks Accountant 2014", "General Ledger Last ")
WinWaitActive("Docfxit, Inc.  - QuickBooks Accountant 2014", "General Ledger Last ")
;~*~*~*~*~*~*~*~*~*~*~*~*~*~
; Note: Sometimes this enter works and sometimes it doesn't
Send("{ENTER}")
WinWait("Docfxit, Inc.  - QuickBooks Accountant 2014", "Enter Credit Card Ch")
If Not WinActive("Docfxit, Inc.  - QuickBooks Accountant 2014", "Enter Credit Card Ch") Then WinActivate("Docfxit, Inc.  - QuickBooks Accountant 2014", "Enter Credit Card Ch")
WinWaitActive("Docfxit, Inc.  - QuickBooks Accountant 2014", "Enter Credit Card Ch")
Send("{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}")
Sleep(100)
Send("loan{TAB}{ALTDOWN}a{ALTUP}")
WinWait("Docfxit, Inc.  - QuickBooks Accountant 2014", "General Ledger Last ")
If Not WinActive("Docfxit, Inc.  - QuickBooks Accountant 2014", "General Ledger Last ") Then WinActivate("Docfxit, Inc.  - QuickBooks Accountant 2014", "General Ledger Last ")
WinWaitActive("Docfxit, Inc.  - QuickBooks Accountant 2014", "General Ledger Last ")
Sleep(2500)
Send("{Down}")
Exit

Func _Au3RecordSetup()
    ;AutoIt_Debugger_Command:Disable_Debug
    Opt('WinWaitDelay', 100)
    Opt("WinTitleMatchMode", 4)
    Opt('WinDetectHiddenText', 1)
    Opt('MouseCoordMode', 0)
    Opt("TrayIconDebug", 1) ;0-off
    ; Set so that tray displays current line number
    ;AutoIt_Debugger_Command:Enable_Debug
EndFunc   ;==>_Au3RecordSetup
Edited by Docfxit

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×