16 posts in this topic
To skip code if it is a library
Is there any way to skip the execution of a particular block of code like any condition or expression, if the au3 file is included as library.?
Like, in my code I wrote all the functionality as functions and called them in 4 lines.
Now I have another requirement where I need to use the same code but different.So I am importing this code so that I can use these functions.
But the code block which is outside the functions (main code) is being executed when I import the au3 file.Is there any condition to check whether the file is running directly or included in another au3 file as library, so that I can keep the same here.
Please suggest if any ideas.
Is it possible to include file(s) in root folder?
X:\Root Folder\Sub Folder
Root Folder contains the script to include in the script located in Sub Folder... Is it possible without specifying the exact path?
#include "X:\Root Folder\Sub Folder"
Thanks in Advance! TD
au3" Erros, Please, help me
in the file button/ BLoginvip72.au3 I want to get data of file input/ Passwordvip72.au3 and input/Usernamevip72.au3
in file button .
:(, Erros ,Please, help me.
User account causing script errors?
I've received great help from the forum community before, so I'm hoping for a repeat. I have a series of compiled scripts that do the following: launch MS Access database, execute macros, provide mid-process credentials, and launch the following database for a rinse-and-repeat. I've used my credentials for the scripts, and after some adjustments everything runs just as intended. I've got dozens of good runs under my belt on my profile with my credentials. However, when my coworker attempts to run the scripts on his profile, the scripts only get through the login step. When the macros finish and the database closes, the script just hangs. It's still running and unpaused, but it's not handing off like it's supposed to. I can post script if anyone would like to see it, but I wonder if anybody has any idea why this script would work for one user and not another. For the record, we also created a duplicate script using his credentials instead of mine, and had the exact same problem. Any ideas?
Thanks in advance!
Help with including a script
Hello, I was browsing the help file (as recommend by many members) & I found out a new way to include a file
I am using this:
#include "...\Includes\StringSize.au3" But I get this error: Error opening the file
I have already re-checked the filenames
Thanks in advance, TD