W4lk3r Posted August 10, 2018 Share Posted August 10, 2018 Hello guys, little ask. I'm writing two scripts, the first one retrieve data from a website and work with then (just numbers and calculations) The second one is a module that send email (using smtp/mail UDF provide in this forum) So, the variable $mMessage stores the body of the mail message, this variable exist in the mail module (an .exe called sender.exe) Also, this variable exist in the first module to. So, i wanna "generate" the message body in the first module and send this variable to the second module, like this: Run(@scriptDir "\sender.exe" -$mMessage) In this way the mail Sender module will take the variable generate in the other process and put this in the mail function called mailsend() and send the message. I'm working with .ini file to share parameters, but this time i can't use for security issues, some values in this message must be hidden! Thanks in advance. Link to comment Share on other sites More sharing options...
pixelsearch Posted August 10, 2018 Share Posted August 10, 2018 Hi W4lk3r, Maybe you'll be interested in a detailed example, explaining how to pass variables between 2 scripts : https://www.autoitscript.com/forum/topic/195073-autoit3executescript-variable-space-can-a-variable-defined-in-autoit-script-be-used-in-txt-file-autoit-code/ Hope it will help you. Good luck Link to comment Share on other sites More sharing options...
W4lk3r Posted August 10, 2018 Author Share Posted August 10, 2018 Thanks! I'll try this and soon post the results. 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