Highlighted
michaelgruet Absent Member.
Absent Member.
1372 views

Manipulating Rumba Edit Settings via VBA

Jump to solution

Good day, Everybody!

 

I'd like to know if there was a way to manipulate/override/ignore Edit settings in Rumba via VBA code. Some of our users have the "Paste Insert" Edit setting checked, and that has been messing with our VBA macros that try to send text to Rumba using Putstring commands. With "Paste Insert" on, Rumba places the text that we send to wherever the current cursor position is even if we include coordinates in our Putstrings. If there was some way we can ignore this setting through code, we won't have to ask the users to change their Edit settings so they can use automation tools. `

 

Any input will be appreciated.

 

Thanks! 

0 Likes
1 Solution

Accepted Solutions
Micro Focus Expert
Micro Focus Expert

RE: Manipulating Rumba Edit Settings via VBA

Jump to solution

Hi,
are you writing vba in the Rumba scripting engine ?
Unfortunately there is no method of changing the "paste insert" option via rumba script method.
But you can try to send the key codes to the Rumba Application and enable / disable the paste insert Option.

If you are working in Rumba Scripting then please try Emulation command EMSetCursor to set the position.

if you are using the  ActiveX Control then you can return or set a value that specifies whether to insert or overwrite text when pasting information from the Clipboard to the RUMBA display session. When PasteInsert is TRUE, the Clipboard text is inserted at the current cursor position; otherwise, the Clipboard text replaces the display text at the current cursor position.

Visual Basic Syntax: <object>.PasteInsert [= Boolean]

 

cheers

@ndre

0 Likes
1 Reply
Micro Focus Expert
Micro Focus Expert

RE: Manipulating Rumba Edit Settings via VBA

Jump to solution

Hi,
are you writing vba in the Rumba scripting engine ?
Unfortunately there is no method of changing the "paste insert" option via rumba script method.
But you can try to send the key codes to the Rumba Application and enable / disable the paste insert Option.

If you are working in Rumba Scripting then please try Emulation command EMSetCursor to set the position.

if you are using the  ActiveX Control then you can return or set a value that specifies whether to insert or overwrite text when pasting information from the Clipboard to the RUMBA display session. When PasteInsert is TRUE, the Clipboard text is inserted at the current cursor position; otherwise, the Clipboard text replaces the display text at the current cursor position.

Visual Basic Syntax: <object>.PasteInsert [= Boolean]

 

cheers

@ndre

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.