I am running an AutoIt script and that script calls another AutoIt file. How do I pass a variable value from my first script to the next?
How to pass a variable value from one AutoIt script script to the next
5.4k Views Asked by Tony Davis At
2
There are 2 best solutions below
0
Milos
On
Use command line interface in order to communicate between two files. File 2 must be compiled.
File1.exe:
$ThisIsVariableFromFIle1 = "This is some text."
Run("File2.exe " & $ThisIsVariableFromFIle1)
File2.exe:
MsgBox(0,"This is the whole commandline I got", $CmdLineRaw)
MsgBox(0,"This is part one", $CmdLine[1]); This
MsgBox(0,"This is part two", $CmdLine[2]); is
MsgBox(0,"This is part three", $CmdLine[3]); some
Related Questions in TESTING
- Using ES Modules with TS, and Jest testing(cannot use import statement outside module)
- Mocking AmazonS3 listObjects function in scala
- How to refer to the filepath of test data in test sourcecode?
- No tests found for given includes: [com.bright.TwitterAnalog.AuthenticationControllerSpec.Register user with valid request](--tests filter)
- Error WebMock::NetConnectNotAllowedError in testing with stub using minitest in rails (using Faraday)
- How to use Mockito for WebClient get call?
- Jest + JavaScript ES Modules
- How to configure api http request with load testing
- How can I make asserts on outbound HTTP requests?
- higher coefficient of determination values in the testing phase compared to the training phase
- Writing test methods with shared expensive set-up
- Slow performance when testing non-local IP services with Playwright
- uiState not updating in Tests
- Incorrect implementation of calloc() introduces division by zero and how to detect it via testing?
- How to test Creating and Cancelling Subscription in ThriveCart in Test Mode
Related Questions in AUTOMATION
- Applescript To Select Sound Output stops at opening Sound Preferences Screen
- I am automating web scraping using python
- Autofill data from previous cell to next cell in openpyxl
- In spotfire, IronPython script: No Module named Selenium
- Python selenium automation browser
- Specflow defination not showing references
- Expect: Any way to match a specific rule only once?
- Automate the update of a pivot table in Excel via Power Automate Web
- Encountering a problem to interact with a weird button which is a combobox (select)
- Unable to Login through Automation(Cypress) to app, while the credentails are true. It allows manual login but unable to login through Cypress
- Selecting an option in the mobile app drop down which is not visible when the app is loaded for the first time
- Unable to launch WebDriverAgent
- How do I automate a video download with Selenium and Python (Meta Quest Store Trailer Download)
- Error: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure
- Trouble uploading with playwright
Related Questions in AUTOIT
- Robotframework, AutoIt: Error message "No keyword with name 'Run' found"
- Autoit Library in Robotframework, cannot use "Send" Keyword
- How to get text from cmd using autoIT
- Need advice on python (3.10) + selenium (4.15.2)
- Quick time event script
- Failed to execute script due to unhandled expression: Cannot load AutoItX from path
- My Autoit.exe doesn't work when combining with seelenium
- Finding Drive Letter by Disk Number, Partition Number, and Label using AutoIt
- How to stop loop in AutoIt?
- Check size and position in background
- Outputting programs in the Windows system tray with AutoIT
- Autoit click on button which is on Frame
- ControlClick chooses the wrong context menu item
- Object error during installation of Windows updates
- Send("{DOWN}") on a context menu doesn't work everytime
Related Questions in FUNCTIONAL-TESTING
- I want to generate PDF automation report in XUnit using selenium driver and .net in visual studio?
- How to functionally test an app that has a GUI and also CLI
- jest tests prisma error 'Foreign key constraint failed on the field: `ResetPasswordToken_userId_fkey (index)`' while testing nest app
- Create JUnit tests for a card validating method
- java.lang.NoClassDefFoundError: org/mockito/Mockito at edu.ncsu.csc326.coffeemaker.CoffeeMakerTest.setUp(CoffeeMakerTest.java:76)
- How to write functional tests for a slack app
- Difference between functional and regression test cases
- Code coverage report for testcases written in robot framework for Java application
- Symfony WebTestCase InvalidArgumentException: Invalid "base_uri" option
- Functional testing using User model in a Laravel 8 package
- How to unit test repositories using Entity Framework
- Mocking Classes/ methods in ruby in a functional test?
- What parameters are missing when I use this function? Python, Pytest
- Could not create instance of functional test class. Specs must have a public zero-arg constructor
- How to fix 'Module com.google.common not found' error when creating a Selenium WebDriver class with ChromeDriver?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You need to learn the scope concept of a variable (Dim, Global & Local variables).
Examples with two files: main.au3 and constantes.au3.
Content of constants.au3
Content of main.au3
More information is here: http://www.autoitscript.fr/autoit3/docs/keywords/Dim.htm