Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Copy text to the outside editor
#1
I am going to write the following code:

1. Open the outside text editor (probably RunProgram ("FineEditor.exe"))
2. Copy text from the Clipboard to opened, outside editor (probably: send Ctrl+v keystroke to opened, outside editor).

How to make QM code to make possible choosing of own, outside editor: one time it would be AngelWriter, the second time FoxEditor, the other time WordPad, etc. And forcing the choosen editor to take a text from Clipboard.

The most important part of my question is based on the fact, that nobody knows what kind of editor will be choosen. That is why the name and/or class of the editor's window ought to be also decribed in Quick Macros code programmaticaly.

Thanks in advance:
Sharik
#2
Example
Code:
Copy      Help
str programs=
;$program files$\FineEditor\FineEditor.exe
;$program files$\Windows NT\Accessories\wordpad.exe
;and so on

ARRAY(str) ap=programs

str windows=
;Fine Editor
;WordPad
;and so on

ARRAY(str) aw=windows

int+ g_ed; g_ed+1; if(g_ed>ap.len) g_ed=1

run ap[g_ed-1]
wait 10 aw[g_ed-1]
key Cv


Forum Jump:


Users browsing this thread: 1 Guest(s)