Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 49
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: 10327
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: 49
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: 10327
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: 49
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 LIBDEF not working in called proc packerm CLIST & REXX 0 Fri Sep 15, 2017 7:22 pm
No new posts Working with hex values in Filemanage... Emile Straker IBM Tools 0 Tue Sep 12, 2017 1:42 am
No new posts ISREDIT MACRO NOT WORKING! :cry: kirank889 TSO/ISPF 3 Thu Aug 03, 2017 5:46 pm
No new posts Restart=Step not working ALAK SAHA JCL & VSAM 6 Fri Jun 30, 2017 6:28 pm
No new posts Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us