[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

2786.0. "Automatic run with F17 key" by DGOSW0::FLEXAS () Fri May 18 1990 06:04

    Hy.
    
    We have a client who wants to get an hardcopy of a window just in
    pushing a def key (F17 for example). We have the application which
    get the hardcopy.
    
    But, Is this possible to define a key (F17) in order to run this
    application (is this predefined in DecWindows ?), and elsewhere
    is the pointer?
    
    If no am I obliged to write an application which get the F17 motion
    and then get the hardcopy (It doesn't seem to be so easy !).
    
    Any ideas or examples of these.
    
    Thanks in advance.
    
    			Yeye
T.RTitleUserPersonal
Name
DateLines
2786.1try this...GSRC::WESTHelp stamp out and abolish redundancy !Fri May 18 1990 10:4914
RE:                      <<< Note 2786.0 by DGOSW0::FLEXAS >>>
                           -< Automatic run with F17 key >-

  Take a look at XKeysymToKeycode and XGrabKey.  Use the XKeysymToKeycode to
get the code for the F17 key (C_F17).  Then use XGrabKey to place a passive
grab on that key.

  This can be done from the app that is doing the print_screen.  When the user
presses the F17 key, you will receive a KeyPress event.  This is how you know
if the F17 key was pressed and then you could do whatever you wanted to
after that.

						-=> Jim <=-

2786.2DECWIN::FISHERPrune Juice: A Warrior&#039;s Drink!Fri May 18 1990 12:316
Right...the problem is that the Print Screen application has no interface to
itself other than via the session manager pulldown menu, so now that you have
gotten into an application with F17, you can't do what you want without re-
writing Print Screen.

Burns
2786.3...GSRC::WESTHelp stamp out and abolish redundancy !Sun May 20 1990 16:3811
RE:    <<< Note 2786.2 by DECWIN::FISHER "Prune Juice:  A Warrior's Drink!" >>>

>>gotten into an application with F17, you can't do what you want without re-
>>writing Print Screen.

  He's got my print_screen program so it's already been re-written :^).  Do you
know if there any plans on making the Session Manager's print screen callable ?
Probably not....

						-=> Jim <=-

2786.4DECWIN::FISHERPrune Juice: A Warrior&#039;s Drink!Mon May 21 1990 13:543
I don't know.

Burns