Community forum

Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


SickPup404
2023-01-25T15:48:48Z
Good morning,

I'm trying to set up a Send Keys task in a job and am having an issue.

I have the "Application Title" and "Class Name" populated for my target, along with the text to send.

When it executes, it only makes the window icon flash in the task bar because it doesn't have focus.

If I start the job and have a delay first, then swap to the target window, the send keys works as intended and send the text.

Execution Context is set for:
- Foreground Execution
- Execute on Any Session

I've tried to set it for Same User or Specified Desktop Session and neither helped. I thought it might have been the application (a CMD window running a Java app), but I've tested with just an empty Notepad window with the same behavior.

Once the job runs, the Tray Client stops and subsequent job runs fail. The only way to get back to the app title blinking (original state) is to stop/restart the VC service and manually start the Tray Client again.

Any ideas or suggestions? TIA!
Steve
Sponsor
Forum information
Rachel Gomez
2023-03-16T09:59:35Z
Here is how you can do it:
Click Start, then head to Settings > System > Update & Security.
Click Troubleshoot > Additional troubleshooters.
Under Find and fix other problems, select Keyboard.
Select Run the troubleshooter to start the scan.

Regards,
Rachel Gomez
Bernadette Hudson
2023-04-19T05:52:02Z
Add a "Window Activation" task before the "Send Keys" task: This will activate the window before sending keys to it, ensuring that the keys are sent to the correct window.Mybkexperience 
Add a delay before the "Send Keys" task: This will give the window enough time to activate before the keys are sent.
Try using the "Set Focus" action before the "Send Keys" task: This will set the focus to the target window before sending the keys, ensuring that the keys are sent to the correct window.
Try using the "Activate Window" action before the "Send Keys" task: This will activate the window and bring it to the front, ensuring that the keys are sent to the correct window.
Dorothy Drye
2023-04-24T09:58:56Z
You're having an issue with a Send Keys task in a job. The window icon flashes in the taskbar because it doesn't have focus. If you have a delay and switch to the target window first, the Send Keys works as intended. Execution Context is set for Foreground Execution and Execute on Any Session. You've tested with an empty Notepad window and the same behavior occurs. After the job runs, the Tray ManageMyHealth  Client stops and subsequent job runs fail, and the only way to get back to the original state is to stop/restart the VC service and manually start the Tray Client again. You're looking for ideas or suggestions to resolve this issue.
Scroll to Top