send keys: log?

Discuss RoboTask here
Post Reply
ZuiZuiZui
Posts: 2
Joined: Wed Aug 08, 2018 5:22 am

send keys: log?

Post by ZuiZuiZui »

Hello,
I am using "Send keys to active windows" for testing a software and it works fine. But in some cases I see unusual behavior. Can I log the "sent key" from my key where the "windows changed" event triggered?
Thank you
Oleg
Site Admin
Posts: 3000
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: send keys: log?

Post by Oleg »

Can I log the "sent key" from my key where the "windows changed" event triggered?
It seems I don't understand what do you mean...
Could you describe your goal in more details?
Oleg Yershov
ZuiZuiZui
Posts: 2
Joined: Wed Aug 08, 2018 5:22 am

Re: send keys: log?

Post by ZuiZuiZui »

I mean, I send a long list of key strokes like aa, bb, cc, dd, ee (etc.) and I want to find out on which key the "Windows capture change" Event happened.
Oleg
Site Admin
Posts: 3000
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: send keys: log?

Post by Oleg »

Now you can't determine what trigger fired if you attach many triggers to a task.
Maybe we have to add some mechanism to make this simpler.

But now you can use such trick:
  • make the Main task - it does necessary actions
  • make several tasks which contain only one trigger and one action Start Main task with parameter. Look at the action Start Task. Each task should use its own parameter.
    For example: 1-st task has parameter trigger=1, 2-nd has trigger=2 and so on.
  • in the main task you can analyse the value of variable trigger and determine what trigger fired
Oleg Yershov
Post Reply