Tool/Macro problem
Posted: Tue Nov 30, 2004 5:00 pm
I have written a small Windows program called SendCB which simply sends the contents of the clipboard as a sequence of keystrokes to a specified application window. I would like to be able to use it from TextPad to send the current selection to the specified window. To this end, I add SendCB as a tool to the Tools menu and assign it an accelerator key (F10, say). So far so good - I can select some text, copy it to the clipboard, hit F10 and bingo, the text appears in the window of my specified app.
To automate this, I then try to record a macro that (1) copies the current selection to the clipboard and then (2) invokes the SendCB tool via the F10 key. The macro recording appears to go ok. To test it, I select some text, play the macro and... zilch, nada, nothing happens. At this point I RTFM and find that Tools (and accelerator keys in general?) cannot be recorded... any alternative ideas as to how I might get this to work?
To automate this, I then try to record a macro that (1) copies the current selection to the clipboard and then (2) invokes the SendCB tool via the F10 key. The macro recording appears to go ok. To test it, I select some text, play the macro and... zilch, nada, nothing happens. At this point I RTFM and find that Tools (and accelerator keys in general?) cannot be recorded... any alternative ideas as to how I might get this to work?