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
 

 

Calling Menu from Macro

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
ATH020

New User


Joined: 25 Sep 2006
Posts: 5

PostPosted: Tue Oct 17, 2006 1:25 pm    Post subject: Calling Menu from Macro
Reply with quote

Can anyone help how to call the menu in macro
(say for example; I want to call File-> Print Screen Collection -> Collect Screen)
I do not find any Sendkeys for "ALT" - key in a macro.

Regards,
ATH020
Back to top
View user's profile Send private message

ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Tue Oct 17, 2006 1:38 pm    Post subject:
Reply with quote

I didn't say which emulation you use. I assume you are working on IBM's Personal Communication.

You can simply record a new macro, use the ALT key, and then just look at the macro code and see how it was interpreted.

O.
Back to top
View user's profile Send private message
ATH020

New User


Joined: 25 Sep 2006
Posts: 5

PostPosted: Tue Oct 17, 2006 2:07 pm    Post subject: Re: Calling Menu from Macro
Reply with quote

Yes I am using IBM Personal Communication.

I have tried recording macro for ALT key.

But no code was recorded under procedure subSub1.

So can anyone say the alternative for that.

[PCOMM SCRIPT HEADER]
LANGUAGE=VBSCRIPT
DESCRIPTION=
[PCOMM SCRIPT SOURCE]
OPTION EXPLICIT
autECLSession.SetConnectionByName(ThisSessionName)

REM This line calls the macro subroutine
subSub1_

sub subSub1_()
end sub
Back to top
View user's profile Send private message
Richard Booth

New User


Joined: 15 Oct 2009
Posts: 2
Location: Tankersley

PostPosted: Thu Oct 15, 2009 11:50 am    Post subject:
Reply with quote

You could try

autECLSession.autECLPS.SendKeys "[print]"

Which prints the screen

There may be other Sendkey commands that carry out the functions you need

Take a look at

http://publib.boulder.ibm.com/infocenter/pcomhelp/v5r9/index.jsp?topic=/com.ibm.pcomm.doc/books/html/quick_beginnings05.htm
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 -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts "DFSRRC00 vs IKJEFT01" for ... arunsoods All Other Mainframe Topics 5 Fri Aug 12, 2016 9:54 pm
No new posts How to get the program name of callin... pkmurali COBOL Programming 8 Mon Aug 01, 2016 3:36 am
No new posts Calling Cobol DB2 program from a cobo... nkjain87 DB2 2 Thu Jul 21, 2016 5:12 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


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