How to cancel the edition of an editbox [message #1729277] |
Tue, 12 April 2016 14:04 |
|
Hi everyone,
I'm facing an issue with in a RCPTT script.
In my application, I have an Editbox which appear when I type F2 key. If I wrote something in this editbox, I have two possibilities :
- With the Enter key or if I click anywhere, I validate the modifications
- With the Esc key, I cancel the modifications and the value come back to the previous one. Here is my problem.
When I try to record the second action, RCPTT record the following script :
key-type F2
with [get-editbox] {
set-text toto
key-type "TRAVERSE_ESCAPE"
}
When I replay this section, the script :
- set the text in the editbox,
- close the editbox
- type the Esc key
So, how can my script type Esc before the editbox closing ?
Do you have any workaround or any clue to help me ?
Thank you per advance for your help!
Elise Ruelle
ALL4TEC
|
|
|
|
|
Re: How to cancel the edition of an editbox [message #1731162 is a reply to message #1731007] |
Tue, 03 May 2016 09:27 |
|
Hi Andrey,
Thank you for your reply.
I've tried your solution and it works pretty well in my case !
I add just the solution corresponding at my first message, if it could help anyone :
key-type F2
with [get-editbox] {
type-text titi
set-focus
key-type "ESCAPE"
}
Thanks a lot for your answer ! I was really helpful !
Elise Ruelle
ALL4TEC
|
|
|
Powered by
FUDForum. Page generated in 0.03254 seconds