Post Reply 
Update of Emu48 to v1.57
07-18-2015, 01:47 AM (This post was last modified: 12-13-2015 07:01 PM by compsystems.)
Post: #3
RE: Update of Emu48 to v1.57
New Cmds

Quote:SysItem allows to call SYSCOMMAND messages. SYSCOMMAND messages are normally generated by the system or control menu. Interesting as commands inside the KML script are:
SC_MOVE 61456
SC_MINIMIZE 61472
SC_CLOSE 61536

where SC_MOVE enabling the window to move by the keyboard, SC_MINIMIZE minimizing and SC_CLOSE closing the program window.


Example:
Code:
# control MENU BAR
Button 2000     # Close win emu            
Type 2
  Size 19 8
    Offset 9 9
    NoHold
    OnUp
    SysItem 61536    #     SC_CLOSE
    End
End

Button 2001                # Move window with cursor mouse or keyboard
Type 2
  Size 19 8
    Offset 10 26
    NoHold
    OnUp
    SysItem 61456 # SC_MOVE
    End
End

Button 2002            # MINIMIZE window 
Type 2
  Size 19 8
    Offset 9 42
    NoHold
    OnUp
    SysItem 1472 # SC_MINIMIZE
    End
End



.... The function to automatically detect the type of keyboard, waiting for a long time
Thanks CG

Code:
# switcher for nationalized keyboard setting

Locale 7            # German(Neutral)
    Include "hp50gp-gr.kmi"
End

Locale 2057            # English(UK)
    Include "hp50gp_kb-uk.kmi"
End

Locale 9            # English(Neutral)
    Include "hp50gp_kb-us.kmi"
End

Locale 1034        # Spanish 1
    Include "hp50gp_kb-sp.kmi"
End

Locale 1033        # Spanish 2
    Include "hp50gp_kb-sp.kmi"
End


Locale 0            # default, must be the last defined locale
    Include "hp50gp_kb-us_dft.kmi"
...
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Update of Emu48 to v1.57 - rprosperi - 07-15-2015, 12:00 AM
RE: Update of Emu48 to v1.57 - compsystems - 07-18-2015 01:47 AM



User(s) browsing this thread: 1 Guest(s)