Fork: Difference between revisions
Content added Content deleted
No edit summary |
|||
Line 44: | Line 44: | ||
Run, %A_ScriptFullName% %instancenum% |
Run, %A_ScriptFullName% %instancenum% |
||
ExitApp</lang> |
ExitApp</lang> |
||
New version: |
|||
<lang AutoHotkey>If 0 = 0 ; no arguments |
|||
InstanceNum = 1 |
|||
Else |
|||
InstanceNum = %1% |
|||
MsgBox, 4, Fork Process, Number %InstanceNum%: Run another? |
|||
InstanceNum += 1 |
|||
IfMsgBox, Yes |
|||
Run, "%A_AhkPath%" "%A_ScriptFullPath%" %InstanceNum%</lang> |
|||
=={{header|C}}== |
=={{header|C}}== |