Jump to content
Macro Express Forums

Clipboard cut does not work


Recommended Posts

I have set delay after keystroke down, and delay after keystroke up, to 1000 microseconds. Also under "Use the hardware..." I have set the first box to 1000.

However, the contents of the Windows 10 clipboard are not updated by "clipboard cut". Are my delays still not long enough to allow operation of the clipboard? This is Macro Express Pro 6.

Link to comment
Share on other sites

Thanks - substituting Ctrl +x does the same thing.

I am trying to write a macro to make the first letter of the last word typed uppercase.

 

What I have is the script:

<TEXT TYPE Action="0" Text="<CONTROL><ARROW LEFT>" _COMMENT="Cursor to start of last word"/>
<DELAY Flags="\x01" Time="0.2"/>
<TEXT TYPE Action="0" Text="<SHIFT><ARROW RIGHT> " _COMMENT="Select first character"/>
<DELAY Flags="\x01" Time="0.2"/>
<TEXT TYPE Action="0" Text="<CONTROL>x"/>
<DELAY Flags="\x01" Time="0.5"/>
<VARIABLE SET STRING Option="\x02" Destination="%lastWordFirstLetter%" NoEmbeddedVars="FALSE"/>
<VARIABLE MODIFY STRING Option="\x0B" Destination="%lastWordFirstLetter%"/>
<TEXT TYPE Action="0" Text="%lastWordFirstLetter%"/>
<DELAY Flags="\x01" Time="0.2"/>
<TEXT TYPE Action="0" Text="<CONTROL><ARROW RIGHT>" _COMMENT="Cursor to end"/>

 

It all seems to work as expected except that the clipboard contents pasted in are what was there previously.
 

Link to comment
Share on other sites

Your code looks fine, but I played with it for an hour and got the same result you did, or even stranger. 

Whatever was in the clipboard before is what gets pasted.

I even replaced CONTROL-x with CONTROL-c followed by DELETE -- which should be the same thing -- but it didn't help.

Also eliminated the uppercase conversion, to see if it would re-paste the original character, but still no good. 

Longer delay times were no help. 

If I do the keystrokes manually the process works, but of course with no upper case conversion. 

I'm wondering if the CONTROL-ARROW sequences are somehow bothering Macro Express, but I haven't tested for that. 

 

Puzzled!

Link to comment
Share on other sites

Quote

I am trying to write a macro to make the first letter of the last word typed uppercase.

 

In Word documents, Outlook messages that you're composing or responding to, and PowerPoint slides, you can capitalize the first letter of the most-recently typed word by pressing Shift + F3. No need to select the word. And no need for the cursor to be at the right boundary of the word -- the cursor can be on any letter of the word. Furthermore, pressing the hotkey does NOT change the position of the cursor.

 

You may have to press Shift + F3 twice; the number of times depends on the initial capitalization state of the word when you start, e.g., "HELLO" vs. "hello".

 

So although you may not need a macro to accomplish this, writing a macro might be more fun!

 

PS: For this to work, the function keys on your keyboard must be mapped as function keys, not as media keys.

 

If the function keys are mapped as media keys, you will need to add the Fn key: Fn + Shift + F3... but that requires too much finger gymnastics for my liking!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...