Jump to content
Sign in to follow this  
bchan

Return a string on Exit

Recommended Posts

bchan

Hi,

I'm currently using AutoIt with C# and I'm trying to get AutoIt to return a string (variable) on exit but I couldn't find anything online. Is this possible?

Thanks,

Bchan

Share this post


Link to post
Share on other sites
JScript

;ClipPut --------------------------------------------------------------------------------

;Writes text to the clipboard.

ClipPut( "value" )

;Parameters - "value" The text to write to the clipboard.
This solves?

Edited by jscript

http://forum.autoitbrasil.com/ (AutoIt v3 Brazil!!!)

Somewhere Out ThereJames Ingram

somewh10.png

dropbo10.pngDownload Dropbox - Simplify your life!
Your virtual HD wherever you go, anywhere!

Share this post


Link to post
Share on other sites
Tvern

As far as I know exitcodes always have to be an integer. In theory you'd be able to encode any message to an integer, but I fear there is a size limitation to it.

Share this post


Link to post
Share on other sites
Richard Robertson

Exit codes are integers. This can't be changed.

Instead consider writing to the console.

Share this post


Link to post
Share on other sites
Juvigy

You can write strings to the registry or to files just before exit.

Share this post


Link to post
Share on other sites
Richard Robertson

Writing to a non-volatile resource like that is slow and sometimes prone to caching error between programs.

Share this post


Link to post
Share on other sites
bchan

Hi everyone,

thanks for the suggestions!!

@jscript - I don't think copying to the clipboard would help because it would confuse things in my current code since I'm running a lot of this in parallel.

@Richard - I'll try out writing to console although I'm not quite sure how to approach this yet. :blink:

Share this post


Link to post
Share on other sites
bchan

Hi everyone!

I think I'm going to stick with an alternative solution - using AutoItX3!

thanks,

(I'm not sure how to close topics)

B

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×