/* == GMS-Com 2.0 by Anthony Brice - Zeus UK alliance 1995 == GUI Version for gadgets to use that send commands to GMS port Incorporating all the features of the default scripts into one GUI, making it bloody handy ;) Based on Mat's GMSUtil program but sufficiently rewritten to take some credit ;) */ NL = '0a'x PubScn = 'PIPELINE' Options results if( ~show( 'l', "gms_mailer_rexx.library" ) ) then do if( ~addlib( "gms_mailer_rexx.library", 0, -30, 0 ) )then do say "Could not open gms_mailer_rexx.library" exit end end if( ~show( 'l', "rexxreqtools.library" ) ) then do if( ~addlib( "rexxreqtools.library", 0, -30, 0 ) )then do say "Could not open RexxReqtools.library" exit end end command = rtezrequest( " GMS Com 2 Beta - Select an option" || NL,, "_Info |_Poll Node |_Direct Command |_List |_CANCEL",,"rt_pubscrname="PubScn) if command == 0 then do exit end if command == 1 then do call about exit end if command == 2 then do call node exit end if command == 3 then do Com = rtgetstring("", , "Enter Command for GMS:",,"rt_pubscrname="PubScn) if com ='' then exit com = upper(com) end if command == 4 then do call rtezrequest( "Select a Command" || NL,, "_Reset |_Abort Session |_Quit |_CANCEL",,"rt_pubscrname="PubScn) select when rtresult == 0 then exit when rtresult == 1 then com = 'RESET' when rtresult == 2 then com = 'ABORT' when rtresult == 3 then com = 'QUIT' otherwise exit end end select when Com = 'RESET' then Command = 'Modem_Reset(Mailer)' when Com = 'ABORT' then Command = 'Session_Abort(Mailer)' when Com = 'QUIT' then Command = 'Session_Quit(Mailer)' otherwise exit end call GMS_Mailer_Mailer_Alloc(mailer, 1) IntLine = 'Call GMS_Mailer_'Command Interpret IntLine call GMS_Mailer_FreeScriptData() exit node: gms_node = rtgetstring(,"Node to Poll?","GMS-Com 2.0 Beta",,"rt_pubscrname="PubScn) If gms_node = '' then EXIT IF right(gms_node,2) ~= '.0' then DO gms_node = gms_node'.0' END call GMS_Mailer_Mailer_Alloc(mailer, 1) call GMS_Mailer_Call_Node(mailer, gms_node) call GMS_Mailer_Mailer_Free(mailer) call GMS_Mailer_FreeScriptData() exit About: call rtezrequest( " GMS Com 2 Beta -- By Anthony Brice" || NL ||, " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" || NL || NL ||, " Freely Distributable to all Registered" || NL ||, "GMS users. (C) Zeus UK alliance Jan-1995" || NL ,"Cool!",,"rt_pubscrname="PubScn) return