djfire Posted November 20, 2018 Share Posted November 20, 2018 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 Link to comment Share on other sites More sharing options...
djfire Posted November 20, 2018 Author Share Posted November 20, 2018 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}") Link to comment Share on other sites More sharing options...
faustf Posted November 20, 2018 Share Posted November 20, 2018 (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 November 20, 2018 by faustf djfire 1 Link to comment Share on other sites More sharing options...
FrancescoDiMuro Posted November 21, 2018 Share Posted November 21, 2018 @djfire Use AutoItWindowInfoTool and see if you can control your application with Control* functions instead of using Send() and/or Mouse* functions djfire 1 Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette Link to comment Share on other sites More sharing options...
djfire Posted November 29, 2018 Author Share Posted November 29, 2018 @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. Link to comment Share on other sites More sharing options...
FrancescoDiMuro Posted November 29, 2018 Share Posted November 29, 2018 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: Forum Rules Forum Etiquette Link to comment Share on other sites More sharing options...
faustf Posted November 29, 2018 Share Posted November 29, 2018 look help F1 is your friend Quote #include <MsgBoxConstants.au3> #RequireAdmin If IsAdmin() Then MsgBox($MB_SYSTEMMODAL, "", "The script is running with admin rights.") Link to comment Share on other sites More sharing options...
faustf Posted November 29, 2018 Share Posted November 29, 2018 so also youtube is our friend >D Link to comment Share on other sites More sharing options...
tnorris Posted June 14, 2019 Share Posted June 14, 2019 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? Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted June 14, 2019 Moderators Share Posted June 14, 2019 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! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now