There is a macro in the wx_Tools group of macros that I really miss and that's Paste at Mouse which only seems to work for 32 bit.
I tried to do some research on how to update it, but now my head is just spinning. I tried looking at the file: Win32API_PtrSafe.TXT but I'm lost.
Is there an easy way to do this, or can I hire someone to create the macro for me?
Thank You!
joan
I independently wrote my own "Paste Where I Click" macro. It's not based on wOxxOm's code, and it doesn't use any Win API stuff for working with the Clipboard.
My macro works with 64-bit CorelDRAW.
Can you give an example?
tubbiya said:Can you give an example?
Are you asking to see a video showing what the macro does?
Or are you asking for example code?
example code
To get x and y coordinates from the user, you can use the Document.GetUserClick method.
To check if the Clipboard is empty, you can check the value of Application.Clipboard.Empty.
To paste, and have the pasted objects returned as a ShapeRange, you can use the Layer.PasteEx method.
To reposition the content to the desired coordinates, you can use the ShapeRange.SetPositionEx method.
I think I misrepresented myself, my main problem was with using a 64 bit macro. sorry
Dear Eskimo, I am very sorry that I took up your precious time.
If you are looking for information on how to modify a macro so that it can run under 64-bit, then look at this blog post from Shelby Moore on the Oberon Place web site: Macros and CorelDRAW X6 (64-Bit).