Jump to content

Recommended Posts

Posted

So I am currently in the process of learning Autoit, and I have gotten a lot (really nothing) done.

 

What needs to happen:

Quickbooks needs to be started, we need to login as admin, click any windows that may appear, and switch quickbooks to single user mode.

Wait about 30 minutes for the reports to send out, and then switch back to multi user and start another quickbooks web connector and sync it.

I am going to do most of the research, but I would like to know if this is possible with Autoit before I go down the hours of learning. I can also include pictures upon request. 

 

Thanks,

Djfire

Posted

I did get it to start and login at least:

 

Func Example()

RunWait("C:\Program Files (x86)\Intuit\QuickBooks Enterprise Solutions 18.0\QBW32EnterpriseWholesale.exe")

; Wait for the window to become active
WinWaitActive("QuickBooks Desktop Login")

; Now that the window is active type the password an hit enter
Sleep(5)
Send("PASSWORD{ENTER}")

 

Posted (edited)

a think yes , you can do with autoit , for run script program like admin you must run  a script like admin

for do that after include in top of script you must use

#RequireAdmin

look also in help  for  better

Edited by faustf
  • 2 weeks later...
Posted

@FrancescoDiMuro and @faustf

 

Thank you for the reply.

 

I am still learning as I don't really understand the basics (taking my time) but hopefully it is not all for nothing :)

When you mean run as admin, I put this at the beginning of the script?

Also the autoitwindowinfotool is mostly blank for most of them. But I will try learning the Control*...With Mouse it looks like when my resolution changes it does not click the right place.

Posted
1 hour ago, djfire said:

When you mean run as admin, I put this at the beginning of the script?

Yes.

You can put it below the #include section.

1 hour ago, djfire said:

Also the autoitwindowinfotool is mostly blank for most of them.

So you should read this to get your script do what you are trying to do.

1 hour ago, djfire said:

With Mouse it looks like when my resolution changes it does not click the right place.

That's because Mouse* functions are not reliable when using different screen resolution and/or any other window that is not "included" in the script management.

So, you should use Control* functions (when possible), or UI Automation ;)

Click here to see my signature:

Spoiler

ALWAYS GOOD TO READ:

 

  • 6 months later...
Posted

Trying to get this to work also. Attempting to launch QB and open the specific company file with the line:

RunWait("C:\Program Files (x86)\Intuit\QuickBooks Enterprise Solutions 19.0\qbw32enterprise.exe" -qfm "C:\Users\Public\Documents\Intuit\QuickBooks\Company Files\test.qbw")

Nothing launches, even when I don't specify the company file. What am i missing?

  • Moderators
Posted

Your -qfm is outside your quotes, try enclosing the entire string:

RunWait('"C:\Program Files (x86)\Intuit\QuickBooks Enterprise Solutions 19.0\qbw32enterprise.exe" -qfm "C:\Users\Public\Documents\Intuit\QuickBooks\Company Files\test.qbw"')

 

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...