Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

PCOMM SendKeys Not Working

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IBM Tools
View previous topic :: :: View next topic  
Author Message
Richard Booth

New User


Joined: 15 Oct 2009
Posts: 2
Location: Tankersley

PostPosted: Thu Oct 15, 2009 11:24 am    Post subject: PCOMM SendKeys Not Working
Reply with quote

Hi,

I am writing an interface from VBA excel to Mainframe PCOMM V5.9

Everything works fine except

autECLPSObj.SendKeys "Logon [Enter]"

The macro runs, does not fail just appears to not sent the characters and carries on the next line.

If I use other commands in the VBA script, they work on the Screen session fine

i.e. autECLPSObj.SetCursorPos 23, 39 works

so I know the VBA is talking to the screen.

Any help would be appreciated[/quote]
Back to top
View user's profile Send private message

mrgnndhmk

New User


Joined: 01 Feb 2006
Posts: 46
Location: India

PostPosted: Wed Dec 09, 2009 12:01 am    Post subject: Reply to: PCOMM SendKeys Not Working
Reply with quote

Did you check if your session is configured with ENTER key? By default it uses CTRL for the function of CR+LF

~Muruganandham
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10210
Location: italy

PostPosted: Wed Dec 09, 2009 12:34 am    Post subject: Reply to: PCOMM SendKeys Not Working
Reply with quote

autECLPSObj.SendKeys "Logon [Enter]"

the statement will send the logical enter, it is not relevant to which key the enter is assigned

a script is able to send also functions not currently mapped to any key
Back to top
View user's profile Send private message
mrgnndhmk

New User


Joined: 01 Feb 2006
Posts: 46
Location: India

PostPosted: Wed Dec 09, 2009 6:44 am    Post subject:
Reply with quote

Yes. Sendkeys would send the logical function irrespective the of the mapped keys.

But the terminal can work only with the mapped keys.

Quote:
autECLPSObj.SendKeys "Logon [Enter]"

The macro runs, does not fail just appears to not sent the characters and carries on the next line.


As per the result, when [ENTER], is given it goes to the next line instead of sending PF Key.

In PCOMM, [ENTER] key is mapped to [NEXT LINE] (NL) by default. It should be mapped to [CTRL ENTER]. I have faced this issue by myself

~Muruganandham k
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10210
Location: italy

PostPosted: Wed Dec 09, 2009 12:58 pm    Post subject: Reply to: PCOMM SendKeys Not Working
Reply with quote

Muruganandham... did You read and understand the issue ?
the TS complained about sending from a script,
not about entering data and sending the enter key from the keyboard
Back to top
View user's profile Send private message
mrgnndhmk

New User


Joined: 01 Feb 2006
Posts: 46
Location: India

PostPosted: Wed Dec 09, 2009 2:39 pm    Post subject: Reply to: PCOMM SendKeys Not Working
Reply with quote

Ok now I understand. I misread the statement
Quote:
carries on the next line
- my bad.

The script is perfectly alright. If the user does the same command manually "Logon [ENTER]" using the keyboard he can find something I hope.

I again tested the code in my mainframe with the same command it worked perfectly for me.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IBM Tools All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SCRNAME not working on my mainframe? mrsidhu12 TSO/ISPF 7 Thu Sep 01, 2016 2:17 pm
No new posts PCOMM macro to call another PCOMM macro boyti ko All Other Mainframe Topics 4 Tue Jul 12, 2016 4:30 pm
No new posts 2 same CLIST pgm but with different n... boyti ko CLIST & REXX 5 Fri Jun 03, 2016 4:55 pm
No new posts REXX Screen not working due to LINKED... sundarkudos CLIST & REXX 1 Mon May 09, 2016 1:44 pm
No new posts Free FILE not working for specific users sankalp-goyal CLIST & REXX 12 Mon Apr 25, 2016 6:33 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us