IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

PCOMM SendKeys Not Working


IBM Mainframe Forums -> IBM Tools
Post new topic   Reply to topic
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
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: 51
Location: India

PostPosted: Wed Dec 09, 2009 12:01 am
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

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Wed Dec 09, 2009 12:34 am
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: 51
Location: India

PostPosted: Wed Dec 09, 2009 6:44 am
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

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Wed Dec 09, 2009 12:58 pm
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: 51
Location: India

PostPosted: Wed Dec 09, 2009 2:39 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> IBM Tools

 


Similar Topics
Topic Forum Replies
No new posts PD not working for unsigned packed JO... DFSORT/ICETOOL 5
No new posts Def PD not working for unsigned packe... JCL & VSAM 3
No new posts ICETOOL with JOINKEY for Big record l... DFSORT/ICETOOL 12
No new posts JCL JOB Cancel/Purge Not Working JCL & VSAM 6
No new posts OMVS Shell Script not working properly. All Other Mainframe Topics 1
Search our Forums:

Back to Top