MiMac Posted December 13, 2007 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.
picaxe Posted December 13, 2007 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])
DW1 Posted December 13, 2007 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
MiMac Posted December 13, 2007 Author 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".
picaxe Posted December 13, 2007 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
MiMac Posted December 13, 2007 Author 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.
DW1 Posted December 13, 2007 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
MiMac Posted December 13, 2007 Author 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 ).
DW1 Posted December 13, 2007 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
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