Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Grumpfish Library 3.2 - <b>using multiple desktop utilities</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
USING MULTIPLE DESKTOP UTILITIES

    All of the desktop utilities are configured to be called from "hot-
    keys" as described above.  The following code is an example of how
    to integrate all of them into your program in such a fashion.  You
    should insert it at the top of your program.

    *** Summer '87 syntax                                
    EXTERNAL popcalc, popphone, popdate, popstop, popnote
    PUBLIC start_time, paste_no                          
    notekey  = -3           && F4: hot key for notepad   
    stopkey  = -4           && F5: hot key for stopwatch 
    calckey  = -5           && F6: hot key for calculator
    phonekey = -6           && F7: hot key for phone dir 
    datekey  = -7           && F8: hot key for calendar  
    apptdir = 'C:\APPTS'    && search directory          
    phonehead='My Pals'     && heading for phone list    
    SET KEY notekey TO popnote                           
    SET KEY stopkey TO popstop                           
    SET KEY calckey TO popcalc                           
    SET KEY phonekey TO popphone                         
    SET KEY datekey TO popdate                           
    SET KEY 16 TO paste    && Ctrl-P to paste number     
    checkappts()            && check for today's appts   

    // Clipper 5.0 syntax                            
    #include "inkey.ch"                              
    apptdir := 'C:\APPTS'   // search directory      
    phonehead := 'My Pals'  // heading for phone list
    SET KEY K_F4 TO popnote                          
    SET KEY K_F5 TO popstop                          
    SET KEY K_F6 TO popcalc                          
    SET KEY K_F7 TO popphone                         
    SET KEY K_F8 TO popdate                          
    SET KEY K_CTRL_P TO paste                        
    checkappts()           // check for today's appts

    Of course, you can call any of these utilities directly.

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson