Calvin
September 11, 2017, 5:46am
1
Hello,
I’m attempting to create a macro that selects text that changes (whether a small or larger paragraph). Both the beginning and the end of the paragraph have coordinates based on images I can use to move the mouse to but I’m having a hard time figuring out how to enter the variable coordinate data to the “and drag to” field.
Hope that makes sense and appreciate any help you can give.
Thanks
@JMichaelTX just posted a simple solution for this:
If "for drop" you mean the image to drop the image you dragging on, then this can be achieved easily enough with KM:
Given this as the FrontWindow:
[image]
This macro will drag the blue folder onto the red folder:
###MACRO: Drag Image 1 to Drop on Image 2 [Example]
~~~ VER: 1.0 2017-09-11 ~~~
####DOWNLOAD:
Drag Image 1 to Drop on Image 2 [Example].kmmacros (36 KB)
Note: This Macro was uploaded in a DISABLED state. You must enable before it can be triggered.
[image]
Calvin
September 12, 2017, 1:44am
3
Sorry, here's the clarification.
I already know where my first click is going to be, I just need the second click (the drag part) to be a variable. Not sure how I can do that.
Thanks Peter, first time asking for help but I've seen your name all over these forums. Appreciate your time.
You can get the destinaton (the drag part) by either of these KM Actions:
If your mouse is over the destination, then just use the KM Token %CurrentMouse%
If the destination is another image, use the Found Image Action like I did in this macro:
Drag and Drop - #8 by JMichaelTX