| View previous topic :: View next topic |
| Author |
Message |
daorc
Joined: 18 Oct 2006 Posts: 169
|
Posted: Mon Feb 01, 2010 4:11 pm Post subject: exitcode conventions? |
|
|
Hello,
Does anyone know of any conventions for using exitcode. Are there any values to avoid using?
For example, I have A.ahk using runwait to run B.ahk, and wants to know how B.ahk got on (using errorlevel).
Can B.ahk use the exitcode "10" to mean "I couldn't do X" and 11 for "I couldn't do Y"?
I know this is possible, but I want to know if it's really ok to do. is there any other way that an exitcode of "10" could be given without me wanting it to be (either by something to do with Windows or something built in to AutoHotkey?
Sorry for the confusing message, I hope it makes sense! |
|
| Back to top |
|
 |
daorc
Joined: 18 Oct 2006 Posts: 169
|
|
| Back to top |
|
 |
randallf
Joined: 06 Jul 2009 Posts: 678
|
Posted: Mon Feb 01, 2010 10:03 pm Post subject: |
|
|
| I actually might not use those unless they are on-the-spot applicable... they are already matched to items in windows and if other things depend on the code... |
|
| Back to top |
|
 |
daorc
Joined: 18 Oct 2006 Posts: 169
|
Posted: Tue Feb 02, 2010 9:03 am Post subject: |
|
|
| ... so we are agreed it is better to use exitcodes above 15999 then? |
|
| Back to top |
|
 |
randallf
Joined: 06 Jul 2009 Posts: 678
|
Posted: Tue Feb 02, 2010 2:08 pm Post subject: |
|
|
| daorc wrote: | | ... so we are agreed it is better to use exitcodes above 15999 then? |
O rite I misread  |
|
| Back to top |
|
 |
|