26 August 2012, 11:00 | #1 |
Registered Whdload user
Join Date: Oct 2006
Location: Finland
Age: 48
Posts: 532
|
How to get an automatic reboot after exiting an app?
Trying to create a Startup-sequence that automatically start a certain app and then when the user exists that app the Amiga would automatically reboot.
How do I tell the Amiga to automatically reboot after exiting a certain app back to DOS? |
26 August 2012, 11:06 | #2 |
2 contact me: email only!
Join Date: May 2001
Location: Auckland / New Zealand
Posts: 3,187
|
If you have a reboot app, can't you just run that after running your other app to force the reset? To reset the Amiga is only a couple of lines of ASM code so there's bound to be an app on Aminet that does it.
|
26 August 2012, 11:24 | #3 |
Registered Whdload user
Join Date: Oct 2006
Location: Finland
Age: 48
Posts: 532
|
Yes that was, what I thought. But the problem is, how do I tell the AmigaDOS to execute the reset *after* the first app is exited byt the user (pressing Esc)?
|
26 August 2012, 11:27 | #4 |
Registered User
Join Date: Jan 2002
Location: Germany
Posts: 7,002
|
Commands in startup-sequence (or scripts in general) are executed one after the other. Just put the reboot command after your app.
Code:
setpatch app reboot |
26 August 2012, 11:48 | #5 | |
Registered Whdload user
Join Date: Oct 2006
Location: Finland
Age: 48
Posts: 532
|
Quote:
*edit* Unfortunately what happens is that the reboot happens right after the first app is started (the app never actually gets to open at all)... |
|
26 August 2012, 12:27 | #6 |
Registered User
Join Date: Jan 2002
Location: Germany
Posts: 7,002
|
Do you call the app with 'Run'? Run returns immediately. That's what it's made for. Don't use Run if you want to wait until the app returns. (Same is true for WBRun IIRC).
If you did't use Run, then the app detaches itself from the shell. In this case you are lost. The only way would be to regularly check for a resource the app creates, for example an ARexx port. If the resource disappears, the app might have ended. |
26 August 2012, 12:43 | #7 | |
Registered Whdload user
Join Date: Oct 2006
Location: Finland
Age: 48
Posts: 532
|
Quote:
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Windows update automatic reboot | bernd roesch | support.WinUAE | 4 | 12 July 2012 14:50 |
Suggestion when exiting WinUAE... | Leo42 | request.UAE Wishlist | 4 | 09 October 2005 12:18 |
Strange Lines When Exiting Games | MSC | support.WinUAE | 1 | 31 August 2004 01:53 |
REQ: Automatic resolution change ; automatic resolution detection | Borg_Number_One | request.UAE Wishlist | 3 | 21 August 2004 14:16 |
Exiting build-in debugger? | WintermuteX | support.WinUAE | 12 | 16 March 2004 23:19 |
|
|