MiMac Posted December 13, 2007 Share Posted December 13, 2007 Hey everybody, I have a question about executable script. Is it possible that the script.exe returns a string or an array instead of a code number? If yes, what is the method to so that? Thanks for your reponses. MiMac. Link to comment Share on other sites More sharing options...
picaxe Posted December 13, 2007 Share Posted December 13, 2007 return string Func Err_Stamp() Return @MON & "/" & @MDAY & "/" & @YEAR EndFunc MsgBox(0, "", Err_Stamp())oÝ÷ Ú·º¹Ú®¶²jëh×6Func Array_ret() Return StringSplit("1,2,3,4,5,6,7,8,9,10", ",") EndFunc $aTest = Array_ret() MsgBox(0, "", $aTest[10]) Link to comment Share on other sites More sharing options...
DW1 Posted December 13, 2007 Share Posted December 13, 2007 @picaxe, that is a Function return... I think he is looking for an "exit code" return... but maybe I misunderstood AutoIt3 Online Help Link to comment Share on other sites More sharing options...
MiMac Posted December 13, 2007 Author Share Posted December 13, 2007 @picaxe, that is a Function return... I think he is looking for an "exit code" return... but maybe I misunderstoodNo, you are right danwilli. My question is for an exit code of an executable like "script.exe". Link to comment Share on other sites More sharing options...
picaxe Posted December 13, 2007 Share Posted December 13, 2007 (edited) @danwilli you're right, it is possible to return a string from a compiled exe, see here via stdout, don't know about an array Edited December 13, 2007 by picaxe Link to comment Share on other sites More sharing options...
MiMac Posted December 13, 2007 Author Share Posted December 13, 2007 @danwilli you're right, it is possible to return a string from a compiled exe, see here via stdout, don't know about an arrayThanks for your response. I dont' have time now to test it, but i'll try next week.MiMac. Link to comment Share on other sites More sharing options...
DW1 Posted December 13, 2007 Share Posted December 13, 2007 I do not think you can use an array.... in fact... I get issues if I use a number over 9 digits IE: Exit(987654321) gives me an exit code of: 987654321 -BUT- Exit(9876543210) gives me an exit code of: 1286608618 strange AutoIt3 Online Help Link to comment Share on other sites More sharing options...
MiMac Posted December 13, 2007 Author Share Posted December 13, 2007 I do not think you can use an array....in fact... I get issues if I use a number over 9 digitsIE:Exit(987654321) gives me an exit code of: 987654321-BUT-Exit(9876543210) gives me an exit code of: 1286608618strangeYes, i know that Exit() doesn't work. It can return only "code". But, i would like to return a string like "Error" or "azertyuiop" (It's just examples ). Link to comment Share on other sites More sharing options...
DW1 Posted December 13, 2007 Share Posted December 13, 2007 the thread that picaxe linked you to has a wrapper to do pretty much what you are asking. AutoIt3 Online Help 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