Skip to main content

I have a VERY simple macro that moves the cursor to HOME and sends and Enter (Transmit).

It runs find when I invoke it via the Run Macro. The cursor (lower half block) moves to the command line (Home) and Enter is processed.

I then assigned this macro to a mouse event (double left click). It does work with this HOWEVER, the cursor indicator (lower half block) does not display.  I know its there as when I type the text is typed on the command line. The only means I've found to get it cursor indicator to redisplay is move my mouse cursor to the command line and click once. Pressing Enter or any key combination does not seem to re-enable the cursor indicator. 

Thanks for any insights

Bill George


#Desktop
#Reflection

I have a VERY simple macro that moves the cursor to HOME and sends and Enter (Transmit).

It runs find when I invoke it via the Run Macro. The cursor (lower half block) moves to the command line (Home) and Enter is processed.

I then assigned this macro to a mouse event (double left click). It does work with this HOWEVER, the cursor indicator (lower half block) does not display.  I know its there as when I type the text is typed on the command line. The only means I've found to get it cursor indicator to redisplay is move my mouse cursor to the command line and click once. Pressing Enter or any key combination does not seem to re-enable the cursor indicator. 

Thanks for any insights

Bill George


#Desktop
#Reflection

billgeo,

Can you include a snippet of the code you are using?  What version of Reflection are you working with?  What type of host are you connecting to (IBM Mainframe, AS/400, Unix?)

Thanks,
JeffB


billgeo,

Can you include a snippet of the code you are using?  What version of Reflection are you working with?  What type of host are you connecting to (IBM Mainframe, AS/400, Unix?)

Thanks,
JeffB

Thanks

Here's the macro.

I believe version 16.1.  By the way, how do I verify the version?

IBM mainframe.

 

Sub Home()
'---------------------------------------------------------------------
' Generated by Micro Focus Reflection Desktop (16.1.125.0)
' Generated by the Macro Recorder on 05/08/2018 11:59:24 AM
'---------------------------------------------------------------------
' Common variable declarations
Dim ibmCurrentTerminal As IbmTerminal
Dim ibmCurrentScreen As IbmScreen
Dim hiddenTextEntry As String
Dim returnValue As Integer
Dim timeout As Integer
Dim waitText As String
timeout = 15000

Set ibmCurrentTerminal = ThisFrame.SelectedView.control
Set ibmCurrentScreen = ibmCurrentTerminal.Screen
'---------------------------------------------------------------------

ibmCurrentScreen.SendControlKey (ControlKeyCode_Home)
ibmCurrentScreen.SendControlKey (ControlKeyCode_Transmit)

End Sub


Thanks

Here's the macro.

I believe version 16.1.  By the way, how do I verify the version?

IBM mainframe.

 

Sub Home()
'---------------------------------------------------------------------
' Generated by Micro Focus Reflection Desktop (16.1.125.0)
' Generated by the Macro Recorder on 05/08/2018 11:59:24 AM
'---------------------------------------------------------------------
' Common variable declarations
Dim ibmCurrentTerminal As IbmTerminal
Dim ibmCurrentScreen As IbmScreen
Dim hiddenTextEntry As String
Dim returnValue As Integer
Dim timeout As Integer
Dim waitText As String
timeout = 15000

Set ibmCurrentTerminal = ThisFrame.SelectedView.control
Set ibmCurrentScreen = ibmCurrentTerminal.Screen
'---------------------------------------------------------------------

ibmCurrentScreen.SendControlKey (ControlKeyCode_Home)
ibmCurrentScreen.SendControlKey (ControlKeyCode_Transmit)

End Sub

Thanks for the code snippet billgeo. The major version is enough for me to have a look at your issue.  While the behavior you describe is what does happen, my suggestion is to map this function to something other than the mouse double-click.  That action is pretty common and might have a number of factors, including windows or the application misunderstanding a part of the action as the user meaning to move the pointer.  I find that if mapped to the middle mouse button the macro runs correctly, but does not produce the after effect with the cursor.  If you want to create a bug request for this issue, you can contact our support team at support2@microfocus.com

For future reference, you can find the version with Help - About Reflection.  The help button is in the far top right corner of the workspace window by default in version 16.1.

Regards,

JeffB