Results 1 to 3 of 3

Thread: TN3270 or HLLAPI sendkey

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2005
    Posts
    9

    TN3270 or HLLAPI sendkey

    I'm trying to create a simple script to send some keystrokes to a TN3270 terminal session (Hummingbird HostExplorer). If I send normal characters, the vbscript works fine, but when I use a command like SendKeys "{ENTER}" nothing happens. From what I've read, the TN3270 window uses command for enter. I thought maybe I could use the HLLAPI.DLL to interface with the TN3270 window, but I have no idea where to start, and I don't know if I can use a DLL call in vbscript.

    Has anyone else tried automation with TN3270 sessions?

  2. #2
    New Member
    Join Date
    Nov 2005
    Posts
    1

    Re: TN3270 or HLLAPI sendkey

    Use ASCII Mnemonics

    @B Backtab @L Cursor Left @Y Caps Lock
    @C Clear * @N New Line @Z Cursor Right
    @D Delete @P Print @s Scroll Lock
    @E Enter * @R Reset @t Num Lock
    @F Erase EOF @T Tab @@ @ (at) symbol
    @I Insert @U Cursor Up @$ Alternate Cursor
    @J Jump @V Cursor Down @< Backspace Erase
    2-5
    @0 Home @7 PF7 * @e PF14 * @l PF21 *
    @1 PF1 * @8 PF8 * @f PF15 * @m PF22 *
    @2 PF2 * @9 PF9 * @g PF16 * @n PF23 *
    @3 PF3 * @a PF10 * @h PF17 * @o PF24 *
    @4 PF4 * @b PF11 * @i PF18 * @x PA1 *
    @5 PF5 * @c PF12 * @j PF19 * @y PA2 *
    @6 PF6 * @d PF13 * @k PF20 * @z PA3 *
    @A@F Erase Input @A@b Underscore
    @A@H System Request * @A@y Forward Word Tab
    @A@J Cursor Select * @A@z Backward Word Tab
    @A@Q Attention * @S@x Dup
    @A@R Device Cancel @S@y Field Mark
    @A@T Print Screen
    @sp Keypad 0 @@ @ @`
    @! Keypad 1 @A Alt @a F10
    @" Keypad 2 @B Attn (122) @b F11
    @# Keypad 3 @C Compose (LK250) @c F12
    @$ Keypad 4 @D Delete @d F13 (122)
    @% Keypad 5 @E Enter @e F14 (122)
    @& Keypad 6 @F Clear (122) @f F15 (122)
    @' Keypad 7 @G Cursor Sel (122) @g F16 (122)
    @( Keypad 8 @H Home @h F17 (122)
    @) Keypad 9 @I Insert @i F18 (122)
    @* Keypad * @J ErInp (122) @j F19 (122)
    @+ Keypad + @K ExSel (122) @k F20 (122)
    @, Keypad , (LK250/122) @L Cursor Left @l F21 (122)
    @- Keypad - @M Erase EOF (122) @m F22 (122)
    @. Keypad . @N Newline @n F23 (122)
    @/ Keypad / @O Print (122) @o F24 (122)
    @0 @P Print Screen @p Pause
    @1 F1 @Q Play (122) @q Reset (122)
    @2 F2 @R Escape @r Control
    @3 F3 @S Shift @s Scroll Lock
    @4 F4 @T Tab @t Num Lock
    @5 F5 @U Cursor Up @u Enter (122)
    @6 F6 @V Cursor Down @v
    @7 F7 @W Zoom (122) @w
    @8 F8 @X Noname (122) @x Page Up
    @9 F9 @Y Caps Lock @y Page Down
    @: Hold (LK250) @Z Cursor Right @z End
    @; Print (LK250) @[ PA1 (122) @{
    @< Backspace @\ Backtab (122) @|
    @= Setup (LK250) @] PA2 (122) @}
    @> Datatalk (LK250) @^ PA3 (122) @~
    @? Break (LK250) @_ Home (122)

  3. #3
    New Member
    Join Date
    Feb 2011
    Posts
    13

    Question Re: TN3270 or HLLAPI sendkey

    I wish to know how we can automate 3270 sessions with VB scripts.
    Like moving cursor to one positions and then checking what is the vaue at that cursor position.Please help.Please guide with examples.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width