Elkie Posted April 13, 2007 Share Posted April 13, 2007 Please explain to me, can autoit return values from another application and the application receive the output from autoit.Example:APP1 run autoitscript using:run("runme.exe param1 param2")autoit(runme.exe):dim $c Select case $cmdline[0]=1 $c=$cmdline[1]+$cmdline[2] case $cmdline[0]=2 $c = $cmdline[1]*$cmdline[2] case $cmdline[0]=0 MsgBox(0,"Info","Please insert the paramater") EndSelectHow may APP1 or other application reads/receives the $c value??Helpme please Link to comment Share on other sites More sharing options...
BrettF Posted April 13, 2007 Share Posted April 13, 2007 I have no idea on this as I have know experience with it, but I think what you're looking for is StdinWrite () Regards, Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
Elkie Posted April 13, 2007 Author Share Posted April 13, 2007 I have no idea on this as I have know experience with it, but I think what you're looking for is StdinWrite ()Regards,Sorry for my dumb scripting as my posted code will always read 2 parametersAnother example using the posted code:If i run from command promptC:\runme.exe 3 2 6 <----Output in DOS command windowI want the output just like that, so any application can read the output of the $c Link to comment Share on other sites More sharing options...
martin Posted April 13, 2007 Share Posted April 13, 2007 Sorry for my dumb scripting as my posted code will always read 2 parametersAnother example using the posted code:If i run from command promptC:\runme.exe 3 2 6 <----Output in DOS command windowI want the output just like that, so any application can read the output of the $cLook at help for StdoutRead, and search this forum for other examples. Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. 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