How to search a text using Enter key in blue prism - blueprism

I have a search box where I can enter the search text however there is no search button next to it. So we use to press enter button after enter the search text in text box.
Please advise how to handle this in blue prism. I have tried using Global Send Keys however the focus moved out of the search box hence nothing happening
If the mouse focus is inside the text box then you can see a 'X' mark inside it
If I use the global sendkeys then the mouse focus is outside the text box as below

To go about this issue, I would first try to set the focus on the field, by sending a Global Mouse Click Center (not just focus) to the Textbox.
Next, send the "{ENTER}" or "~" key to the Textbox, using Send Global Keys.
I would assume that if that doesn't work, you have spied the container of the Textbox, not the Textbox itself somehow.
Alternatively, as a last resort you can also choose to send a Javascript command to the webpage, in order to trigger the form submission. This can be achieved by using the Navigate stage on the Application Model's top element (highest in hierarchy).
Good luck!

Related

How can I get the text position of a mouse click?

I want to click my mouse on a QTextEdit, and get the text position of that click from within the document. Where would my click be if the click resulted in a character being inserted? I'm hoping to subvert some of QTextEdit's functionality, so I do not want to simply get the position from the QTextCursor after the click has been processed. Basically I'm reimplementing mousePressEvent myself, but still need to know what the closest character gap is.

How do i select Button and also set focus on TextBox at a time in C#?

I am creating a windows form using C#. My problem is that I want to set focus on the Text Box control and also select the log in button at the same time.
If I enter something in the Text Box, it accepts that string.
But when I press "Enter" key, I want to fire the log in button click event directly.
Set a KeyUp listener on the TextBox and listen for the Enter key. If they press enter then submit the form. You don't need to specifically select the login button. Focus on the text box.

How to add Listpicker to textbox in LiveCode

I want to add a list picker in Live code.When a user click on the Textbox the list picker should open with list of items.How can do that?
Be aware that your text field must be locked in order to send a "mouseUp" message, if that is how you want to show the combo box that Monte suggested. There are other ways around this, if you still want to be able to type into that field. Write back with your exact needs.
The combo box is useful because you can type right into it. If you only want options that will load data into an existing field, a popup or pulldown might be something to look into.
On the left side of the tool palette about the middle is a style of button called a combo box. I think that's what you want.

how to change text dynamically with raphael

Ok, this is basically what I'm doing right now. I create the raphael text object. I use a click event to open a dialog box. Then I make the changes to the text in the dialog box. This isn't how I wish to implement this though. I want my implementation to be somewhat similar to the way text is created in MS Paint where the user can click on the text object and change the text as they're typing. Does anybody know how to implement this using a raphael text object?
A simple solution would be to create a <textarea> when the user starts editing the text. Fill it with the current text and place it over the text object. Then, when it loses focus (onblur), remove the text area and copy the text back into the text object.
If you really want to edit the text "in place" in the text object, then you can let the user type in a hidden text field. But in this case you'll have to implement all the cursor and selection logic yourself. See this fiddle (which only allows using the right and left arrows to move the cursor, with shift to select text so that you can copy and paste).
Alternately, I don't know if contenteditable works for SVG content, but that would be a very simple solution if it did work.

Disable inserted lines in multiline TextBox

I have a multiline Textbox for my web page. When user logs in and enters text and press "Save" button, data will be saved. Then, next time when the same user logs in and searches for data, I want him to edit only new text in multiline TextBox, not removing or replacing previously entered text.
Is there any way to make multiline TextBox to lock inserted lines or inserted text and allow to only add text?
If by Textbox you mean "textarea" then it is either disabled or enabled, it can't be both.
You would need to use a client side scripting language such as JavaScript to do what you are after.
You could simply just put the text into HTML and not into the Textarea, that way they can see it but can't change it.

Resources