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
- How does Robot's Telnet library work?
- Behat doesn't load extensions?
- Load additional CONFIG file with values
- rails controller test failing non-deterministicly wrt state leak (I think)
- Ordering tests using trial twisted
- Unexcepted failed Gavel/Dredd test
- How to use Jasmine and CucumberJS with Protractor
- Django login tests session problems
- How to mock specific RequireJs dependencies while unit testing
- Test case for WCF REST Service
- how to test this business logic
- Protractor - How to get first or last CHILD value
- Factory Not Registered in rspec but found in console
- Pick out certain lines from files
- Selenium stops running after click() function runs
Related Questions in AUTOMATION
- Installing Teamcity build agent as a user: failed to install the service. selected account does not have enough rights
- Automating Telnet Scripts from .bat with a teamspeak instance
- schedule and automate sqoop import/export tasks
- Dynamic @Test generation in TestNG
- detecting a file downloaded in selenium java
- Can I automate auto-app installation on my Android device?
- C# Program automation - Program hangs/doesn't work
- Saving Excel workbook as PDF gives me an OLE error 800A03EC
- Appium-How to send SMS for login verification purpose during automation test
- How to maximize browser window with helium using Java?
- Appium iOS automation using Java : get element using accessibility Id?
- Looking to run automated jobs in .NET application
- How to click the back navigation button of the browser using helium?
- Firefox automatically choose certificate, without ui dialog
- Test class not found in selected project
Related Questions in AUTOIT
- I'm coding a script using AutoIt V3 and I'm having trouble finding the "object name" when I inspect an element
- Exception when handling Window Alert Dialogs
- Want AutoIt3 HotKeySet to Emulate AutoHotKey Application Filtering
- AutoIt- How to enter a value in textbox on Bitvise
- I don't have any idea to use STAF/STAX with AutoIt/Sikuli
- Pixel search in defined area
- AutoIT, Using Variable in DirCopy Paths
- Read out the link address in EXCEL using AutoIT v.3
- How can I return from a function to end a test without ending the script?
- Automated test between Win-app and Web-app
- Can't spy on CheckListBox with AutoIt
- Retrieve Balance in MT4 using AutoIt
- show or hide edit control in Autoit GUI
- AutoIt will not send key strokes
- Change mouse cursor across environment with AutoIt
Related Questions in FUNCTIONAL-TESTING
- Authlogic: Functional Test Failing Validation
- PHP - How to change machine's DateTime only during selenium testing
- Symfony2 Functional Testing: Is a database required or not?
- PHPUnit and Doctrine: How to setup the database
- Symfony Functional Testing: how to understand why the test fails (with a 500 Error)
- Symfony2 Functonal Tests, query parameters are ignored
- Symfony Crawler: how to check that a link to a particular page exists
- "No D-BUS daemon running" when running phpunit test
- what is good configuration of arquillian-drone-graphene functional testing?
- Django: Second Selenium Test Failing with 500 Server Error
- Django Functional Test for Time Delayed Procedure
- Symfony2: Mocked service is set in the container but not used by the controller (it still uses the original service)
- How to test a polymorphic association on a controller with Minitest?
- Writing functional tests that check if Laravel jobs were dispatched with correct parameters?
- class not found when sharing test setup
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 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