请教大家,倒数第2行怎么改?if (GetAsyncKeyState(VK_LWIN) and (GetAsyncKeyState(Ord('B'))) < 0) then // Win+B begin Memo1.Clear;
Memo1.Lines.Add(Activecontrol.Name); (Activecontrol.Name).CopyToClipboard;===》 这行Delphi代码有问题 end;
报以下错误:E2029 Statement expected but 'CLASS' found
[培训]科锐逆向工程师培训第53期2025年7月8日开班!
Mxixihaha uses Clipbrd; Clipboard.SetTextBuf(PChar(Activecontrol.Name));
没有效果,哥们。
if (GetAsyncKeyState(VK_LWIN) and (GetAsyncKeyState(Ord('B'))) < 0) then // Win+B begin SynMemo1.Clear; SynMemo1.Lines.Add(Activecontrol.Name); TSynMemo(Activecontrol.Name).CopyToClipboard; TSynMemo(Activecontrol.Name).PasteFromClipboard; end;end;如成功的话Memo1-Memo10000就不用写1万次事件了,只需要按次热键。容器内容即可粘过去。
ninebell Mxixihaha uses Clipbrd; Clipboard.SetTextBuf(PChar(Activecontrol.Name)); 没有 ...
Mxixihaha 你这个代码都有问题. 写得矛盾.
ninebell a8fK9s2c8@1M7s2y4Q4x3@1q4Q4x3V1k6Q4x3V1k6%4N6%4N6Q4x3X3f1#2x3Y4m8G2K9X3W2W2i4K6u0W2j5$3&6Q4x3V1k6@1K9s2u0W2j5h3c8Q4x3X3b7I4x3K6f1#2x3K6t1%4i4K6u0V1x3g2)9J5k6o6q4Q4x3X3g2Z5N6r3#2D9 解决了,见5楼,把.name去了,就行了。