intersraka.blogg.se

Get mouse coordinates
Get mouse coordinates






get mouse coordinates

In Adobe Acrobat, if you select text and copy it, then the text is still selected. That would leave the text "highlighted" in the sense of being selected (as if you were going to copy).

get mouse coordinates

Type T1 into the search box, type ENTER to do the search.Īt completion of the search, your text should again be highlighted.

get mouse coordinates

Mouse click within the document screen to restore focus to the document.Ĭtrl-Home to go to beginning of document, or mouse click at upper left corner of the screen to stay on the same page.Ĭtrl-f or Alt-Edit-Find to open search box. To reproduce the highlighting later, the macro will: When your macro starts, data is already highlighted, so copy to clipboard and save in a text variable, T1. This should work with a MS Word document and some others: If you click and move at the same time, it will grab a wrong coordinate. Just a note, wait a half beat after clicking at the front and the end of the selection. Have your macro then open the second tool and do whatever it needs with the text and then have it reopen the first tool and repeat the first part of the macro so it will automatically highlight the selection again. it will then go back and highlight the text in between and then copy it to the clipboard. It waits for the mouse click at the beginning and then grabs the coordinates and then it waits for you to click at the end of the selection. It will allow you to define the area to select. Is there any way for a macro to save information about the previous selection such that it could re-select the same thing? Then the user has to select a different tool, which the macro can accomplish by keyboard shortcut - but after the tool is selected, the previous text selection is no longer selected (that's just the normal way that the application we're working in works). Is it possible to get the coordinates of an already existing selection, so that the macro could re-select the same thing again on that same page of the document? Suppose that when the macro starts, certain text is already selected (as if you were going to copy it). Apparently it's possible to select text in a macro if I know the mouse coordinates that I want.








Get mouse coordinates