How to debug Send hotkeys ?
Issue Overview:
When using Send Hot keys the messages fail, or the activity does not seem to work.
Troubleshooting Steps:
- Read more on the working of SendWindowMessages and test the Send Hot key activity with SendWindowsMessages option enabled or disabled.
- Send Windows hotkeys should not be affected by resolution. Keep this in mind when troubleshooting automations that use this activity.
- If the issue is intermittent, try the following
- Use the activity “Highlight” before the automation, to identify which element has the focus of the screen
- If it happens intermittently in Unattended mode, try taking a screenshot after highlighting the active element but before sending the hotkey. This way it can be verified that the correct element was active.
- If the issue happens in Unattended mode, try using one of the following tools to troubleshoot it,
- Try adjusting the properties of the activity
- Activate – Try disabling. For example, when using send hotkeys in an Excel application, having activate set to true can cause activities requiring sequential sets of messages to fail. ( if the sequence of hotkeys “Alt+H” and “Alt+N” is used as two separate activities on Excel, different behavior will be seen if Activate is set to True vs False. With Activate set to true, the sequence well end with the Insert menu in Excel displayed. When set to false, the formatting drop down will be selected. Try it with Slow Step.)
- Adjust delay between keys – Cases are noticed where applications ignore keys if they are clicked too quickly in succession. A delay prevents this.
- If it is possible to produce the issue in Studio, try running the automation in slow step
- This can be helpful in troubleshooting issues involving input.