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
 
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
No new posts Calling IKJEFT01 program from Rexx upendrasri CLIST & REXX 4 Wed Nov 15, 2017 4:27 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
No new posts exec macro in the end of edit anatol CLIST & REXX 8 Fri Sep 22, 2017 5:10 am
No new posts How to Run Rexx Macro? Kalaivignesh CLIST & REXX 5 Fri Sep 01, 2017 9:08 pm
No new posts ISREDIT MACRO NOT WORKING! :cry: kirank889 TSO/ISPF 3 Thu Aug 03, 2017 5:46 pm

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