Hello all. I was looking for a bit of some guidence on this one.
What i am trying to do is this:
1.open a txt file full of items and simply PASTE those items into a software window
i have open. These items are for example tools, ie: screwdriver,hammer,blade etc...
I wrote the script and if i use NOTEPAD to test it...it works. Each item is taken from list and using the send keys:{Control}({V}) it pastes it into notepad, then another sendkey: ENter
to toggle to the next line. Great...exactly what i wanted.
Now the problem is i don't want to use notepad...i want this clipboard text to be pasted into a software program window i have open. I used the FOCUS window...and it pops up BUT nothing gets pasted into the text window.
Yet...if i manually CTRL+V into the text box the clipboard pastes it in.
So WHY isnt it focus on the window and paste into text box?
OR...do i need to use image capture to tell it EXACTLY where to paste it?
INTO the caption PART..is what i need.
Also...if i want to CLICK "save and new" button...i need to use WHAT to click it?
Is this possible with winautomation?
Here is a screengrab of window i want populated:

Heres a pic of the script so far:

THANKS for any help,
Robbie.
| Attachment | Size |
|---|---|
| propertyopen.jpg | 17.72 KB |
| winautoscript.jpg | 37.62 KB |


Hm... Are you sure that the cursor is actually in the field that you want it to be?
Basically, I can see 3 different reasons why the specific job may not be working for you:
1) The cursor is not placed in the specific field where you want to send the Ctrl+V. Solution: Send a mouse click or use tabs to get the cursor there.
2) The Control+V is being sent too fast. Solution: add a {Delay 1000} in the send keys action before the Control+V that will pause the job for 1 second.
3) The application may not be accepting Control+V for some weird reason. Solution: Try sending the text directly without placing it into the clipboard. Place the %CurrentItem% directly in the Send keys action.
==Dedicated Automation Solutions==
==Dedicated Automation Solutions==