mboyce
6 years agoContributor
Problem with Drag action
I have scripts that perform a copy within my tested app. The script uses the Drag method with the ctrl key pressed to drag the item being copied to the location in the tree where the copy should be c...
- 6 years ago
Thanks, I submitted a ticket. But in the mean time, I thought that the problem might be with the timing of releasing the ctrl button, so I used low-level procedures to ensure that ctrl is released after the drag is complete, and now it works!
For anyone who may encounter this or a similar timing issue, I used this line before the drag to simulate clicking ctrl:
LLPlayer.KeyDown(VK_CONTROL, 250);
And this line after the drag to release the control button:
LLPlayer.KeyUp(VK_CONTROL, 250);