kurtlewis
April 22nd, 2007, 09:44 AM
Was working on this a while back with Mike- Wondering if this is still the best method to 'auto kill' warning, info and error popup message in JRMC.
Reason is, I will log on to the server evry so often and there is like 50+ warning / error windows to kill from JRMC12. most of these windows are causd by a radio station not being available to play, or some error relating to a music file. It would be ideal to always auto-kill these using Girder.
Here is the last thread on it, there was another more detailed thread but it seems to have dissapeared. if there is a better method for doing this let me know, the below action script does not work reliably:
--[[
Automatically kill JRMC warning / info message windows with G4 - script by Mike C
This script runs on G4 and looks for 'warning' or 'information' window popups in JRMC.
Upon finding the window(s) it sends an 'enter' command to close it.
This is needed because sometimes a warning window popup in JRMC will freeze all MP functionality until the window is closed.
Use:
Create a script action in G4 and paste the code there.
Add an event (right click on the action), select Girder Event, select Script Enable.
--]]
local f = function ()
local h = win.FindWindow (nil,'Warning')
print (h)
if h then
gir.SendKeys (h,'<ENTER>')
end
h = win.FindWindow (nil,'Information')
if h then
gir.SendKeys (h,'<ENTER>')
end
end
JRMCTIMER = gir.CreateTimer (nil,f,nil,1)
JRMCTIMER:Arm (1000)
__________________
Reason is, I will log on to the server evry so often and there is like 50+ warning / error windows to kill from JRMC12. most of these windows are causd by a radio station not being available to play, or some error relating to a music file. It would be ideal to always auto-kill these using Girder.
Here is the last thread on it, there was another more detailed thread but it seems to have dissapeared. if there is a better method for doing this let me know, the below action script does not work reliably:
--[[
Automatically kill JRMC warning / info message windows with G4 - script by Mike C
This script runs on G4 and looks for 'warning' or 'information' window popups in JRMC.
Upon finding the window(s) it sends an 'enter' command to close it.
This is needed because sometimes a warning window popup in JRMC will freeze all MP functionality until the window is closed.
Use:
Create a script action in G4 and paste the code there.
Add an event (right click on the action), select Girder Event, select Script Enable.
--]]
local f = function ()
local h = win.FindWindow (nil,'Warning')
print (h)
if h then
gir.SendKeys (h,'<ENTER>')
end
h = win.FindWindow (nil,'Information')
if h then
gir.SendKeys (h,'<ENTER>')
end
end
JRMCTIMER = gir.CreateTimer (nil,f,nil,1)
JRMCTIMER:Arm (1000)
__________________