19 August 2014, 21:55 | #1 |
Returning fan!
Join Date: Jan 2011
Location: Montréal, QC, Canada
Posts: 1,434
|
Program to Execute a Command When Requester Appears
Hi!
Would anyone know of a program to execute a command when a requester appears: in my case, I would like to reboot my Amiga "server" everytime IXEmul has memory loss , i.e., whenever ixnet.library displays a requester with title "ixnet.library message", I would like to execute the reboot command or a script... I found OkayDokey but it simulate the user clicking on the gadgets, it does not allow executing a command. I wrote a script that uses OkayDokey first and, when quiting, calls reboot but it is not as nice Thanks! |
19 August 2014, 22:18 | #2 |
Registered User
Join Date: Jan 2002
Location: Germany
Posts: 6,985
|
I think AssignWedge comes with source code. Shouldn't be too difficult to adapt it for your case.
|
19 August 2014, 23:13 | #3 |
Registered User
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,365
|
I can not say how to do that but I would try ReqAttack. I guess, this tool can do the trick.
|
20 August 2014, 12:37 | #4 |
Registered User
Join Date: Oct 2009
Location: Germany
Posts: 3,303
|
Maybe MCP its "Requester Timeout" patch can do it. At least the description does exactly what you want.
|
21 August 2014, 00:38 | #5 |
Returning fan!
Join Date: Jan 2011
Location: Montréal, QC, Canada
Posts: 1,434
|
Hi all!
Thanks a lot for your suggestions! I checked ReqAttack and MCP but they didn't do exactly what I needed so, short of modifying AssignWedge , I just wrote a simple script using OkayDokey that reboots the Amiga after the requester appears (and disappears, thanks to OkayDokey). Code:
Echo "Warning! The server will reboot whenever there is a memory problem with IXEmul." OkayDokey SC=Workbench WI="ixnet.library message" TI=4 ACT CX=OkayDokey QA Echo "The server will reboot in 10 seconds..." Wait 10 Echo "Rebooting..." Wait 1 Reboot PS. I had a funny (phony?) behaviour with OkayDokey if my Workbench was not in the background: whenever I would click on the empty background, OkayDokey would quit... causing a reboot: everything works well if the Workbench is "backdrop". PPS. Could a gentle moderator mark this thread as [Solved] (at least for me!) |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
AsyncWB and Execute command crash | ancalimon | support.Apps | 0 | 19 July 2014 15:00 |
Cli program to "execute" .info files | olesio | support.Apps | 4 | 05 September 2010 19:19 |
execute a command line before launching a config for a game | turrican3 | request.UAE Wishlist | 10 | 18 July 2009 12:22 |
Execute Command Redirection Help | Ed Cruse | Coders. General | 2 | 30 September 2008 16:59 |
I cannot make whdload execute a command after it exits???? | keropi | project.WHDLoad | 12 | 23 January 2007 00:12 |
|
|