|
Post by cyberchipz on Feb 27, 2020 8:02:27 GMT
Not sure exactly how to approach this... We are unable to cut and paste on this one site... there's nothing that can be done about that. However, if I want to quickly type something into it... not sure what I need to do... I know it would possibly need to loop through text... and put it into a location I specify, an input box in the app. Since I can't paste... I thing MMM would do this. We have to put messages in Russian. We have someone who will create the message; but only I can put into a system message. So, if I receive a message, say from google translate, or an email. I would like to copy the message... and have MMM put it into the text box. I can't just paste it. I've only coded for mouse clicks and messages... and logic.. could you/someone point me the way? Perhaps it would involve the clipboard... though the system won't accept paste... MMM could type it in for me perhaps?
I could generate the code to use INPUT BOX to accept and paste the message... and then click the box I want it to put the information. Click OK on INPUT BOX, and MMM does the rest... I'm also thinking it would be short; but a bit foggy on the keywords.
Thanks. Chip
Ideally, when the OCR is built, I would convert this into a translator type macro that would select area with words on screen, convert to text... paste into Google translate, translate to English, then type reply, translate to foreign language... copy and paste where needed as response.
|
|
|
Post by Steve on Feb 27, 2020 9:16:54 GMT
Chip can you break it down a little further in bite sizes. Something like:
1. Copy the text 2. Input box then paste the text. Save as STRING1 3. Click on a page 4. Paste STRING1 out
|
|
|
Post by cyberchipz on Feb 28, 2020 13:13:41 GMT
Chip can you break it down a little further in bite sizes. Something like: 4. Paste STRING1 out I remember seeing an example... somewhere... but it was a long time ago.. one of the first examples I saw where you pushed a keystroke to a text file, and saved it... (sigh) sorry... I just can't find it. I'll keep looking in the meantime. Turns out it *was* that simple: 4 | RUN ACTION | KEYPRESS | %STRING% Geez... brain fart... 1 | RUN ACTION | DEFINE STRING VARIABLE | %STRING%::
2 | RUN ACTION | INPUT BOX | Enter the message to display::Input String::STRING
3 | RUN ACTION | MESSAGE PROMPT | Click on input area and hit enter to continue.::Go to input area::0
4 | RUN ACTION | KEYPRESS | %STRING% Thanks for trying to help me... I understand now why the confusion, in the end it was so easy... I don't know what my problem was... Actually... for some reason I thought keypress was a single keystroke, and was looking for a whole line thing, so I didn't re-read keypress in the conditions page. As soon as I did (I was thinking of using FOR/NEXT) I read it and hey... it does a whole line. lol
|
|