Recording selecting text and running it using automator - automator

I want to run an action on discord on loop for which I want to record selecting and copying text and running it on loop, but whenever I run it never selects the text but instead stops the action completely. How do I make it select text and copy it?

Related

which command should I use when I judge string?

I use Automation anywhere today.
I want to know which command should I use.
(I do not know where is manual about command.)
I want to divide the following work with the characters displayed when a certain button is pressed.
For example,
if I press the button A, either yes or no will be displayed on the screen.
If yes displayed, it ok.
but If no, I want to press a different button.
but I don't know which command to judge display.
If you know that, please help me.
Automation anywhere can be used to automate a UI.
If you have a UI which has a button and on pressing that button your UI displays A or B, then you can automate the flow with automation anywhere.
First, you need to use object cloning to clone the button and click on it.
Second, use object cloning again to get value/name property of result and store it into a variable.
Finally, you can put an if-else/if-elseif condition on the variable and enclose your code in the condition accordingly.
You can also find some examples on automation anywhere official documentation website

Working of TAdvColumnGrid copy paste is not working with TEditCut/TEditCopy/TEditPaste

I am facing some issue with copy paste options which I have added to the TAdvColumnGrid.
I am using Standard Actions of VCL components for cut/copy/paste as TEditCut, TEditPaste, TEditCopy assigned to Popup menu.
With these actions I can get the standard copy/paste working.
but when I select a cell which is not in Edit mode and try to copy/cut/paste.
The commands on Popup is not working for the operations.
but the keyboard shortcuts are working fine. for the same cell.
Can anyone tell me what will be the problem?
Why Popup operations are working when the cell is in Edit mode
but not when it is in selection mode.
I have tried with overriding the clipboard operations like OnClipboardCopy etc...
but the clipboard operations are triggered only when the cell is not in edit mode.

Entering text in an iPhone app via the Script Editor in Instruments

I'm generating a script in the Script Editor of Instruments by using the Recording Manual User Interface Actions into Automation Scripts feature of Instruments.
Whilst recording the script I can capture taps and swipes but I can't capture text being entered in a form field.
Any suggestions?
The Keyboard isn't technically part of the app, so actions you perform on it won't be captured. After tapping on the form field, insert
UIATarget.localTarget().frontMostApp().keyboard().typeString("Text you would like to type");
before the next action... you may need to add a short delay to ensure the keyboard pops up before attempting to type

Ranorex v5.0 doesn’t click button sporadical

I have a ranorex project, which automated an use case with clicking 5 buttons in an application.
To set up this project I used the record function. I defined some sleep times between the clicks.
The run with the clicks is in a loop, where the loop count is dynamically defined. One button of the five and always the same button, Ranorex "ignores" sometimes. According to the log file, the button is visible and enabled and ranorex also runs the code with the Click(), but the application doesn’t receive the click. Before in code the click is called, I check with an “If” whether the button is visible and enabled - and if the click() is called (or doesn't), I log it to ranorexlog. Sometimes the application is running through and all the clicks work and sometimes this button click is missing one or more times. It doesn’t depend on the sleep time between the clicks, because I tried long and small pause times. It doesn’t depend on the focus of the application, too, because I switched the focus several times.
Does anybody know this problem, workarounds or what I’m doing wrong?
the obvious workaround is to use Mouse.Click("{Button}") with a 0 duration rather than invoking the click event, or if you are invoking the mouse click invoke the buttons click action. (sorry since they are both named Click() i don't know which one you are using).
As to what is happening, from your description it sounds like your script is finding more than one element with the same xpath. This would cause issues with the click event because it may try to click on the element, but it's the first xpath that matches not the second. Are there any optional elements in this sequence of button clicks that appear? for instance a busy spinner with inner text of "OK" that is hidden from view when you are clicking a button on a form with inner text of "OK" would cause two elements to be found if the xpath was looking for an inner text of ok. This element that is causing may not have been caught in the recorder because it might not have been present at the time.
Another possibility if you are using Mouse.Click() (particularly if this is a website)is that it is possible your button is not actually on the screen, I know that should be taken care of by the visible check but it is visible on the dom even though it is not visible on the screen that causes issues.
I highly recommend do not use the recorder to create test suites that need to be re-runnable. It would actually be better to use the spy tool to create a repository or several repositories for the product you are testing, this way you can be sure the xpaths are all unique, which using the recorder there is no gaurantee. You can actually record with the created repository, and ranorex will attempt to find item in the repository before creating a new item, so the recorder will use this repository when creating recordings.

How Do I Interrupt a Find Dialog in Delphi?

I have a standard Find Dialog:
My program can process some very large files, and finding text in such files may take 10 or 20 seconds or more. So after the "Find Next" button is pressed, I change the cursor to an hourglass. I change it back to the standard pointer after the text is either found or not found.
My problem is that the user may decide to cancel the search and decide to do so by pressing the Cancel button. The Cancel button then closes the dialog but the search continues within my FindDialogFind routine until the text is either found or not found.
I've put a breakpoint upon exit from the FindDialog.exe, but it is not reached until the FindDialogFind is completed.
Is there any way I can capture the fact that the Cancel button has been pressed which will allow me to break the FindDialogFind loop, or maybe is there some better way to stop the search when the Cancel button is pressed?
In the OnCloseevent of the TFindDialog component, set a boolean variable, FAbortSearch.
Check this var often in your search routine, and abort if set.
Move the searching logic into a worker thread that you launch whenever the Next button is pressed. When the dialog is closed, you can terminate the thread if it is still running.

Resources