|
Post by pablom on Aug 10, 2020 13:42:37 GMT
Hi, it's possible to send custom text or %INTEGER% to clipboard? So i don't have to copy content from X place each time, but just send it directly to the clipboard and then use it to paste.
|
|
|
Post by zeak on Aug 11, 2020 5:45:43 GMT
Hi Pablom, I would take a look at www.turnssoft.com/conditions.html#clipboard, it might answer a few questions. and possibly combining it with www.turnssoft.com/conditions.html#keypress. Here is an example code: 1 | X | X | 200 | Keypress Ctrl+ | a 2 | X | X | 200 | Keypress Ctrl+ | c 3 | RUN ACTION | SELECT WINDOW BY NAME | Untitled - Notepad 4 | RUN ACTION | KEYPRESS | %CLIPBOARD% This selects all text with Ctrl A, you would first want to click the mouse where you want to copy the text, then does Ctrl C to copy, I told it to select Notepad as the place to paste to, then with Keypress %CLIPBOARD% it paste everything copied. Hope this helped. Zeak
|
|
|
Post by pablom on Aug 11, 2020 6:21:45 GMT
Thank you, yes i saw it, but i don't want to copy anything, and send the data directly to the clipboard.
|
|
|
Post by pablom on Aug 11, 2020 11:43:14 GMT
This actually works 1 | RUN ACTION | DEFINE INTEGER VARIABLE | %STRING%::google.com 2 | RUN ACTION | COPY TO CLIPBOARD | %STRING% 3 | RUN ACTION | MESSAGE PROMPT | %CLIPBOARD%
|
|
|
Post by Steve on Aug 13, 2020 10:36:19 GMT
This actually works 1 | RUN ACTION | DEFINE INTEGER VARIABLE | %STRING%::google.com 2 | RUN ACTION | COPY TO CLIPBOARD | %STRING% 3 | RUN ACTION | MESSAGE PROMPT | %CLIPBOARD% This will also work to get a value to the system clipboard and cuts your code down too: 1 | RUN ACTION | DEFINE STRING VARIABLE | %CLIPBOARD%::google.com 2 | RUN ACTION | MESSAGE PROMPT | %CLIPBOARD%
|
|
|
Post by pablom on Sept 3, 2020 13:16:26 GMT
Hi, im trying to copy data from excel, and send it to strings, then use this strings to paste that data on another place, for now in excel itself, but it does not work:
1 | RUN ACTION | WAIT SECONDS | 3 2 | 80 | 187 | 1248 | Left Click 3 | 171 | 260 | 200 | Keypress Ctrl+ | c 4 | RUN ACTION | DEFINE STRING VARIABLE | %STRING1%::%CLIPBOARD% 5 | 80 | 171 | 1392 | Keypress right 6 | RUN ACTION | DEFINE STRING VARIABLE | %CLIPBOARD%::%STRING1% 7 | RUN ACTION | PASTE FROM CLIPBOARD
It pastes: "Image: {Width=85, Height=17}" not sure where that came from, its like MMM can't save the data in correct format.
Edit:
Yes, this is it, i just copied anything and sent to the string, totally changed, again with the "Image:..." what format i should use, so MMM can copy it correctly?
|
|
|
Post by zeak on Sept 7, 2020 22:46:23 GMT
|
|