Press and Hold Key while dragging mouse

I need to drag an image from an open program screen and drop it to the desktop. The way I perform this outside of eggPlant is to press and hold Ctrl WHILE I perform the drag and drop function. It would be like using the Ctrl key to drag a COPY of a file from one folder to another. Is there a way to do this in eggPlant?

Thanks!

Comments

  • EggplantMattEggplantMatt ForumAdmin admin
    KeyDown controlKey
    Drag "startingImage"
    Drop "endingImage"
    KeyUp controlKey
    
  • fairfaxtestfairfaxtest Member
    Thanks Matt. It didn't quite work right, but it got me where I needed to be.

    ***First, I used the DragAndDrop command***
    KeyDown controlKey
    DragAndDrop ("DragScreenshot", "DropScreenshot")
    KeyUp controlKey
    ***The second image was not recognized***

    ***Then I used your exact suggestion***
    KeyDown controlKey
    Drag "DragScreenshot"
    Drop "DropScreenshot"
    KeyUp controlKey
    ***The second image was recognized, but the mouse button was not released so it hung showing the mouse arrow with the small box and + sign below it***

    ***Finally I used a different combination***
    KeyDown controlKey
    Drag "DragScreenshot"
    KeyUp controlKey
    Drop "DropScreenshot"
    ***It works fine***

    Not sure what the issue is with the first two, but your suggestion got me there. Thanks again!
Sign In or Register to comment.