Philip Brown Posted February 5, 2006 Share Posted February 5, 2006 Hi, I'm a newbie, so bear with my ignorance, please. I generated & compiled a script that passes a variable to a program which copies text into Word 2003. If I run the script .exe in a stand alone vb script: #include <GUIConstants.au3> WinActivate("Document2 - Microsoft Word", "") Sleep(200) ;Sends hotkey to activate BibleWorks popup dialog Send("^+b") Sleep(200) ;Sends book and chapter reference to dialog Send($CmdLine[1]) Send("{TAB}") Send("WTT") Sleep(100) Send("{TAB}") Send("{TAB}") Send("{TAB}") Send("{TAB}") ;Copies text to Word document Send("{ENTER}") ;Reactivates Word document WinActivate("Document2 - Microsoft Word", "") Link to comment Share on other sites More sharing options...
flyingboz Posted February 5, 2006 Share Posted February 5, 2006 have you looked at AutoITX? - It may be more conducive to what you're trying to accomplish. Or you may need to add a loop that waits for the autoit exit code to ensure completion (and optionally, errorlevel branching) prior to resumption of activities in your vb code. Reading the help file before you post... Not only will it make you look smarter, it will make you smarter. 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