CriscoSystems
Technical User
Hi folx
I'm pretty new to the Attachmate incarnation of VBA (I was a never quite the whiz with other VBA's either...) and I have a little thing written to speed up the schleppy keystrokes we have to use to navigate CA7 in our mainframe environment. Type in a batch job name in my UserForm, and you can click the "LJOB" button or the "LRLOG" button or the "XQ" button and away you go; you don't have to keep hitting HOME and typing LRLOG,JOB=jobname,SPAN=200 - one click does it all for you.
My macro so far is doing all the things I want it to, except when it's running, the actual session screen is locked. I want to be able to type a few things in (to the mainframe, not to my UserForm), tap a few function keys etc and still have the functionality of my macro available at a click, without having to re-instantiate it.
I thought maybe that UnlockInput method was the way to go, so my Initialize event, in its entirety, looks like this:
Is UnlockInput not supposed to do what I think it's supposed to do? If not, what can I do to make my terminal session user-usable while my macro is running?
Thanks.
I'm pretty new to the Attachmate incarnation of VBA (I was a never quite the whiz with other VBA's either...) and I have a little thing written to speed up the schleppy keystrokes we have to use to navigate CA7 in our mainframe environment. Type in a batch job name in my UserForm, and you can click the "LJOB" button or the "LRLOG" button or the "XQ" button and away you go; you don't have to keep hitting HOME and typing LRLOG,JOB=jobname,SPAN=200 - one click does it all for you.
My macro so far is doing all the things I want it to, except when it's running, the actual session screen is locked. I want to be able to type a few things in (to the mainframe, not to my UserForm), tap a few function keys etc and still have the functionality of my macro available at a click, without having to re-instantiate it.
I thought maybe that UnlockInput method was the way to go, so my Initialize event, in its entirety, looks like this:
Code:
Private Sub UserForm_Initialize()
Set term = ThisIbmTerminal
Set thisscreen = ThisIbmScreen
thisscreen.UnlockInput
txtJOBNAME.SetFocus
UserForm1.Width = 148
End Sub
Is UnlockInput not supposed to do what I think it's supposed to do? If not, what can I do to make my terminal session user-usable while my macro is running?
Thanks.