This App is No Longer Maintained. Visit the Replacement at StrokesPlus.net

StrokesPlus Forum
                       
StrokesPlus Forum
Home | Profile | Active Topics
Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General Discussion
 General Discussion
 Copy Cycle
 Forum Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

3di

Germany
26 Posts

Posted - 02/24/2016 :  04:08:47  Show Profile
Hi,

I would like to use a copy cycle to copy several things.

It should be like - for this Example I use an sample Address:

Tom Wayne
Somewherestreet 5
ZIP 02488

1. I Mark something (Tom Wayne)
2. I draw a gesture (for Example Up)
3. The text will be copied and stored in a Variable 1
4. I press enter(or tick mousewheel) and mark the next text (Somewherestreet 5)
5. The text will be copied and stored in a Variable 2
6. I press enter(or tick mousewheel) and mark the next text (ZIP 02488)
7. The text will be copied and stored in a Variable 2

As you might expect i like to use this to transfer text to some kind of form.

So there should be an routing like this to mark the fields where I would like to put the text.

I played a bit with this combination - but it seems to be a little uncomfortable.

acSendKeys("^c")
acDelay(50)
local clip1 = acGetClipboardText()
iRes = acMessageBox("Mark something", "Question", 291)
if iRes == 2 then
[...]

Is there anything more handy?
Is there a way to send anything els (pictures, files..) into an variable?
acGetClipboard() only gets the text


Thanks for your Help.

Best Regards
3di

Edited by - 3di on 02/24/2016 07:35:29

3di

Germany
26 Posts

Posted - 03/01/2016 :  09:13:08  Show Profile
Hi,

I did several tests with an Clipboard extentsion Tool Called Ditto.
You could assing some Keystrokes there like STRG+C+1, STRG+C+2, STRG+C+3..--> STRG+V+1, STRG+V+2... for several Clipboards

But I think it would be better to create a second/third/.. clipboard in S+ to put stuff in.

I tried with a second copy Stroke (Up+left+right mouse) / second paste (Down+left+right mouse)

------------------------------
clip1 = "" -- Clipboard1 empty
Clip2 = "" -- Clipboard2 empty
clip1 = acGetClipboardText()
acSendKeys("^c")
clip2 = acGetClipboardText()
clip2 = clip2:gsub("@", "{AT}") -- When there is an @ change to {AT}, @ is interpreted as Windows Key
acSetClipboardText(clip1)

------------------
and for paste

acSendKeys(clip2)
------------------------------
But thats not exact the way i want it to be, it would be better to have an cycle for that.

Any suggestions here?

Best Regards

Edited by - 3di on 03/02/2016 04:00:18
Go to Top of Page

3di

Germany
26 Posts

Posted - 03/05/2016 :  05:07:34  Show Profile
I changed the code to the following - to prevent problems when copying something that includes some of those guys:

@ = WINKEY
+ = SHIFT
^ = CTRL
% = ALT

My new code:

clip1 = "" -- Clipboard1 empty
Clip2 = "" -- Clipboard2 empty
clip1 = acGetClipboardText()
acSendKeys("^c")
clip2 = acGetClipboardText()
clip2 = clip2:gsub("@", "{AT}") -- When there is an @ change to {AT}, @ is interpreted as Windows Key
clip2 = clip2:gsub("+", "{PLUS}")
clip2 = clip2:gsub("^", "{CARET}")
clip2 = clip2:gsub("%", "{PERCENT}")
acSetClipboardText(clip1)

I hope it would be usefull for some of you.

As this is just a workaround for my idea of a copy cycle / a way to have more than one clipbords, I still keep the hope that there will be someone to help me with the problem "copy cycle" as described above :-).

Thanks for your Time - and have a good weekend.

Best Regards
3di

Edited by - 3di on 03/05/2016 05:10:13
Go to Top of Page

Rob

USA
2615 Posts

Posted - 03/05/2016 :  17:38:03  Show Profile  Visit Rob's Homepage
S+ only supports getting text from the clipboard at this point in time.

I can't think of any elegant solution to what you're trying to accomplish with the copy cycling at the moment. In the end, it's really just creating a bunch of code/variables/conditions/actions to get it just how you want it.

I use Ditto daily on all of my machines and haven't had a need to get creative in S+ with the clipboard :)
Go to Top of Page
  Previous Topic Topic Next Topic  
 Forum Locked
 Printer Friendly
Jump To:
StrokesPlus Forum © 2011-2018 Rob Yapchanyk Go To Top Of Page
Snitz Forums 2000