[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decw_jan-89_to_nov-90

Title:DECWINDOWS 26-JAN-89 to 29-NOV-90
Notice:See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit
Moderator:STAR::VATNE
Created:Mon Oct 30 1989
Last Modified:Mon Dec 31 1990
Last Successful Update:Fri Jun 06 1997
Number of topics:3726
Total number of notes:19516

881.0. "MESSAGE" by VESTA::BAILEY (Mind Set Transfer In Progress) Mon Jun 05 1989 10:25

MESSAGE intercepts broadcast messages and displays them in a nice
pop up message box

EG: Someone sends you mail.... you get a pop up message
box with the contents  
"New mail on node XXXX from " etc etc


You can get rid of the pop up message box by pressing the 
OK push button in each box ...  but to avoid cluttering up
your screen each message box will delete its self 5 Minutes
(after its creation)

Basically all I do is create a DECterm... hack my PCB so it
looks like an interactive process with the created terminal
as 'our' term.. then just enable _all_ broadcast message
classes... and then display them !!!

Disclaimer: 
This requires CMKRNL priv (so as to change the PCB),  using 
CMKRNL _could_ crash your machine.. its never done it to me yet


(If you run MESSAGE interactively then it wont need to create
a DECterm..or hack your PCB.. so _NO_ privs are required...
(and so possibility of a Crash)

I find this very useful as I have _lots_ of Child created 
DECterms on _lots_ of systems... before when I got a 'Bleep'
it was a fair old task to find out which system said what to
me.... with MESSAGE running on each system  I get a nice pop up
box with the message 


The next few replies are.. the source.. how to link it...
and how to run it as a detached process


A version compiled/linked under V5.1 is
JUNO""::MESSAGE.EXE



BTW... all the pop up message boxes stack themselves one-on-top-of-another
in the top left of your screen

If you enable OPCOM messages to MESSAGE & you (say) get a network 
event ... you get to see a lot of boxes  created 
(this isn't a problem.. just letting you know)

NOTE:

like Message says...

(I know that this is a stunningly crude hack... but it was      
very quick to write.. and does what I want)                     

T.RTitleUserPersonal
Name
DateLines
881.1VESTA::BAILEYMind Set Transfer In ProgressMon Jun 05 1989 10:2730
$ !This the the command procedure that you should use to run MESSAGE
$ !in a detached process  (edit the node name )
$ !
$ !
$ set ver
$ !
$ !if this is being executed by the detached process then...
$ !
$ if  "''f$mode()'"   .nes. "INTERACTIVE" then goto do
$ !
$ run/auth/uic=['f$getjpi("","UserName")']  -
sys$system:loginout.exe/input='f$en("Procedure")'/-
out=NL:/proc=MESSAGE
$ exit
$ !
$ do:
$ ! Executed by the detached process created above
$ !
$ set disp/create/node=VANITY     	! <<<<<<<<<< EDIT HERE 
$ !
$ ! create a decterm controller
$ !
$ spa/nowait  mc  decw$terminal
$ !
$ ! wait for the controller
$ !
$ wait 00:00:30
$ !
$ run Sys$Login:Message

881.2VESTA::BAILEYMind Set Transfer In ProgressMon Jun 05 1989 10:298
How to link the source


$ mac  Message  
$ link Message,sys$input:/opt
sys$share:decw$terminalshr/share
sys$share:decw$dwtlibshr/share

881.3how is this different from DECwindows BANNER?CADJR::CERNESEDan Cernese, CAD Systems EngineeringMon Jun 05 1989 10:451
881.4VESTA::BAILEYMind Set Transfer In ProgressMon Jun 05 1989 11:2016
>>   -< how is this different from DECwindows BANNER? >-


MESSAGE will run as a detached process...
you dont have a message box up if there are no messages
messages are allways 'new' (ie a message stays up for 5 mins... then goes away)
you get one message per box



I'am not trying to play down DECbanner or promote Message..
like it says... it a quick 'n' dirty hack that does
what I want it to

thats it

881.5BOOTIS::BAILEYMind Set Transfer In ProgressMon Jun 05 1989 15:4720
If you want to run Message as a subprocess..  do

SPAWN/NOWAIT/NOTI/OUT=NL:   RUN MESSAGE

You'll still get to see  broadcast messages on the terminal
you spawned from  (I dont think there's a way to turn these 
off)


Dont do any

Set Broadcast=nnnn
or
SEt Term/NoBroadcast

type things, cos what the terminal (you spawned from)  'sees'
is what gets put up the messages boxes

Ps..  this requires no privs at all to do

881.6VWSENG::KLEINSORGEToys &#039;R&#039; UsMon Jun 05 1989 16:238
    
    Actually, this isn't like "banner", but instead it's a variant of
    DISPMSG (Burns Fisher circa 1986) for UIS now called VWS Message
    and included on the demo disk.  It did allow VWSBANNER to be used as
    the destination for the output instead of creating a pop-up window.
    
    _Fred

881.7name clash advisoryMU::PORTERwe have seen the enemy and it is usMon Jun 05 1989 22:408
    re .0
    
    How is this different from VMS's MESSAGE utility?	:-)
    
    (In other words, maybe you want to change the name of your program --
     VMS already ships a program called MESSAGE)
    

881.8pointer to the source...?FORTY2::AMOS_NETRich Amos @REO - DTN: 830 4770Tue Jun 06 1989 05:438
Hi,

Could you provide a pointer to the source please,

Many thanks,

Rich.

881.9BOOTIS::BAILEYMind Set Transfer In ProgressWed Jun 07 1989 05:125
> Could you provide a pointer to the source please,


JUNO""::MESSAGE.MAR

881.10VESTA::BAILEYMind Set Transfer In ProgressThu Jun 08 1989 12:4669
What am I doing wrong  ??? (Clean answers only please)

cannot get LOAD_QUERY_FONT to work... any ideas???

failing example follows  (Macro... Sorry!)

(The returned pointer to the created font structure is Zero)


; open the default display

        pushaq  null
        calls   #1,g^X$Open_Display
        movl    R0,Display


; load font

	pushal	x_font_list		; returned pointer to font structure
	pushaq	font_name		; font name
	pushal	display			; display
	calls	#3,g^x$load_query_font

	cmpl	r0,#x$c_success		; check for error
	beql	41$


; tell us the returned pointer to font structure & the display

	movl	#100,out
	$fao_s	ctrstr=ctraaa,outbuf=out,outlen=out,-
		p1=x_font_list,-
		p2=display
	pushaq	out
	calls	#1,g^lib$put_output


	ret		; exit our program !!
41$:	nop



error:	nop

	ret

font_name:	.ascid	/-*-Courier-BOLD-R-Normal--*-*-*-*-M-*-*-*/
x_font_list:	.long	struc			; point to structure 
struc:		.Blkl	100			; font structure <Returned>


out:	.long	100
	.long	out+8
	.blkb	100

ctraaa:	.ASCID	/x_font_list !XL  display !XL/

;x_font_list:	.blkl	100





display:	.blkl	1
null:           .ascid  //
f_err:	.ascid	/------------- error in x$load_query_font-------------/

	.end	start

881.11PSW::WINALSKICareful with that VAX, EugeneThu Jun 08 1989 18:5815
I wish you were using something higher level than MACRO.  It would make
troubleshooting the code easier.

I think you problem may be here:

>       font_name:	.ascid	/-*-Courier-BOLD-R-Normal--*-*-*-*-M-*-*-*/

All of the Courier fonts listed in Appendix D of the DECwindows Programmer's
Guide have the word "Bold" spelled capital-B-o-l-d, not all caps the way you
have it.  An awful lot of X is case-sensitive.  I'd try:

	font_name:	.ascid	/-*-Courier-Bold-R-Normal--*-*-*-*-M-*-*-*/

--PSW

881.12]VESTA::BAILEYMind Set Transfer In ProgressFri Jun 09 1989 04:4718
Thanks for the try...

> I wish you were using something higher level than MACRO.  It would make
> troubleshooting the code easier.

I know... one day I _must_ upgrade

> I'd try:
>	font_name:	.ascid	/-*-Courier-Bold-R-Normal--*-*-*-*-M-*-*-*/


Tried that... but no go

I even ran one of the 'list all loaded font' programs and
used _exactly_ one of the font it listed... even with this no go

rats

881.13VESTA::BAILEYMind Set Transfer In ProgressFri Jun 09 1989 09:027
found my problem, I was passing by reference and not passing
by value... !Sigh! my brain must be leaking...  fortunately
I'am off now for a weeks hols!!


Thanks for the all help

881.14BOOTIS::BAILEYEight or bust.......Thu Jun 22 1989 15:0514
There is a new version of message at juno""::message.exe 


This uses 12 point test in the pop up message box (thus making them
a bit smaller)



re .-1

> fortunately I'am off now for a weeks hols!!

And now I'am back !sigh!..still it was nice while it lasted

881.15Where is message its not at juno"":: ? ThanksDSTEG2::HOSSFELDI&#039;m so confused!Thu Nov 30 1989 08:560
881.16VANISH::BAILEYI have a cunning plan..Thu Nov 30 1989 09:245
Sorry about that

its at VANITY""::

(I've moved)
881.17Source? FEATHR::BLUEJAYRemember when people put thier names here?Fri Dec 01 1989 13:084
How about the source?

%COPY-E-OPENIN, error opening VANITY""::SYS$SYSDEVICE:[DECNET]MESSAGE.MAR; as input
-RMS-E-FNF, file not found
881.18SOURCE .????SUBURB::MILLSONMTue Dec 19 1989 08:134
Has anyone got the source to message ????


			MARTIN :-)
881.19VANISH::BAILEYToo fast to live................Tue Dec 19 1989 11:5410
>Has anyone got the source to message ????


$ dir  vanity""::message.mar

Directory VANITY""::SYS$SYSDEVICE:[DECNET]

MESSAGE.MAR;1

Total of 1 file.