using the clipboard for communicatign between programs - Printable Version +- QB64 Phoenix Edition (https://qb64phoenix.com/forum) +-- Forum: QB64 Rising (https://qb64phoenix.com/forum/forumdisplay.php?fid=1) +--- Forum: Code and Stuff (https://qb64phoenix.com/forum/forumdisplay.php?fid=3) +---- Forum: Programs (https://qb64phoenix.com/forum/forumdisplay.php?fid=7) +---- Thread: using the clipboard for communicatign between programs (/showthread.php?tid=996) Pages:
1
2
|
RE: using the clipboard for communicatign between programs - mnrvovrfc - 10-24-2022 (10-23-2022, 08:41 PM)bplus Wrote:Some people went as far as copying and pasting passwords, credit card data and stuff like that and were hijacked for it, didn't know a malicious program was able to force copy into the clipboard somehow, or block the attempt by the system to clear the clipboard. It must have peaked off enough people going into or out of a web browser then trying to paste text somewhere. Like when I tried one of @Pete's programs to trigger an URL that resided on the clipboard.(10-23-2022, 08:36 PM)Spriggsy Wrote: Microsoft discourages usage of the clipboard in this manner but if it works for your specific purpose then nice. In the past a malicious program could put something into the clipboard to disable something in Internet Explorer. Other things could be done that way because a few companies insisted in providing data into or obtaining data from the clipboard, from paying customers. It sounds paranoid, because there's Data Execution Prevention and stuff like that to check certain sensitive areas of RAM periodically. However, it might be a reason why Windows Defender and/or anti-virus slow things down where they don't have to (eg. computer kept totally offline for weeks). RE: using the clipboard for communicatign between programs - bplus - 10-24-2022 Interesting, thanks! Powerful tools are also dangerous. RE: using the clipboard for communicatign between programs - James D Jarvis - 10-24-2022 No fancy local hosting in this example but it is a useful example on how to use _clipboard$ to open another window (well it's really another program) to serve as a control panel. A simple ascii doodle program that will let the user doodle in the window with the mouse. (EDIT: updated to use colorpick16.exe) Code: (Select All) 'clipboard communcation sample compile this part as pickclip.exe Code: (Select All) 'pickclip When both are compiled clipdoodle will open pickclip. Anytime you click on a character to select it that character will get put in the clipboard as "AC"+ascii# to be read by clipdoodle. If you accidentally close pickclip you can reopen it again without impacting the clipdoodle. When you quit clipdoodle by pressing <esc> it will put a message on the clipboard telling pickclip to quit as well. RE: using the clipboard for communicatign between programs - James D Jarvis - 10-24-2022 added a color picker to the clipdoodle program above. compile as colorpick16.exe Code: (Select All) 'colorpick16 This will enable the user to change foreground and background colors in the clipdoodle sample posted earlier. |