テキストボックスに入力されたタイミングで値を取得

ブラウザのテキストボックスに値が入力されたタイミングで入力値を取得したいと考えています。適切なアクティビティありますでしょうか?
現在、1.テキストを取得→2.フロー条件分岐:入力値<>""→Trueなら次の処理Falseなら1に戻るとしています。初めてご質問させていただきます。よろしくお願いいたします。

Hi @keigo.tsutsui !
Welcome to UiPath Community :smile:
If I understand well, you want to get the data displayed on a browser (in a specific field) I suppose ?
If yes, you can try to use several activites like: get full text, get visible text, get text, get OCR text. And the output of the activity should be assigned to a variable (let’s call it content_of_field). Then you can use an if condition, and for the condition: content_of_field <> “” as you suggested

1 Like

Hiba_Bさん、返信ありがとうございます!私がやりたい事はおそらくその通りです。get full text、get textで入力値をcontent_of_fieldに格納できました。他のアクティビティも試しているところです。
1点質問で、content_of_fieldが""だった場合、入力されるまで繰り返したいのですが、下記のようにぐるぐるループし続けるフローチャートであってますか?パソコンに負荷がかかったりするのでは?と心配しています。

<get text
出力:content_of_field> ←
↓ ↑
if content_of_field <> ""→false
↓true
次の処理へ

1 Like

Hi @keigo.tsutsui,

You can try activities like

While → Get full text in the body of While activity → condition: content_of_field = “”, it will break and move on to next activity when it has something in the content_of_field.

Regards,
Kah Liang

1 Like

こんにちは

ブラウザのテキストボックスに値が入力されたタイミング

をもう少し厳密に定義した方が良いように思えます。
ポーリングによる方法は、そのインターバルにもよりますが、入力の仕掛中でも、データがあると
判断する可能性がありますが、これは意図したものでしょうか?
そもそもの実現したいことを共有いただくと、他のアプローチもあるかもしれません。

1 Like

Kah_Liangさん、返信ありがとうございます。入力時⇒取得は実現できる事を確認しました。こちらのサイトで色々な方法を教えていただきまして感謝しております。
Yoichiさん、返信ありがとうございます。speechnotesというサイトで読み上げた数字をEXCELのセルに転記できないかと考えておりまして、色々試しています。他の方法等調べている段階です。

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.