ClipBoard bug

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
fightcancer
Macro Veteran
Posts: 239
Joined: Fri Apr 15, 2005 8:32 am

ClipBoard bug

Post by fightcancer » Sun May 16, 2021 6:04 pm

I wrote a script to copy a segment of text over and over for the purpose of finding out where I need to add Wait> commands, for how long they should last, etc. The code ends with these lines. However, when the macro ends and I press CTRL+v, what pastes is not the value stored in %cb1%, and I'm wondering why not.

The macro waits at least 0.01 + WaitClipBoard * 3 before ending.

Code: Select all

Label>StartMacro

GoSub>CopyField
  Wait>0.01
If>kCopyField<50
  Goto>StartMacro
EndIf

Label>EndMacro
  WaitClipBoard
PutClipBoard>Avg. Attempts: %AttemptsToCopyAverage%; Avg Time: %CopyAverage%
  WaitClipBoard
GetClipBoard>cb1
  WaitClipBoard
Msg>Avg. Attempts: %AttemptsToCopyAverage%; Avg Time: %CopyAverage%%CRLF%cb1: %cb1%
EDIT: changing Wait>0.01 to Wait>0.5 fixes the bug.

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts