![]() |
|
ZS Extension. - Printable Version +- Small Basic Forum (https://litdev.uk/mybb) +-- Forum: Small Basic (https://litdev.uk/mybb/forumdisplay.php?fid=1) +--- Forum: Extensions (https://litdev.uk/mybb/forumdisplay.php?fid=3) +--- Thread: ZS Extension. (/showthread.php?tid=100) |
RE: ZS Extension. - z-s - 12-30-2025 From Long time I graduated to csharp for high level work with speed. And not updating zs extension because not getting time anymore because of exams next month. RE: ZS Extension. - litdev - 12-30-2025 Hi AB, I can't see any way with current extensions to send CTRL+V or other modified key states. Using C# it would be possible to do this within a WinForm window (see https://stackoverflow.com/questions/15621147/how-simulate-ctrlv-keystrokes-paste-using-c-sharp but not to general windows I think). To send to other window type this would need to be done by simulating CTRL key down, then up after V key is pressed using User32.PostMessage interop something like (https://www.experts-exchange.com/questions/20757153/PostMessage-WM-KEYDOWN-with-Shift-Ctrl-Alt-Key.html). RE: ZS Extension. - AbsoluteBeginner - 12-30-2025 (12-30-2025, 11:35 AM)z-s Wrote: From Long time I graduated to csharp for high level work with speed. Hello, ZS. I wish you good luck during your exams. I would have switched to C# a long time ago too if I needed it for work. But, Small Basic is entertainment for me. I will try to solve my problem using SB first.
RE: ZS Extension. - AbsoluteBeginner - 12-30-2025 (12-30-2025, 01:23 PM)litdev Wrote: Hi AB, Hello! Please tell me is it possible to solve my problem using LDInline class? RE: ZS Extension. - litdev - 12-30-2025 Hi, Probably possible, it is just effectively writing C# code, but it does need the low level User32 interop stuff (not actually .Net) to do it. I will have a better look over next week or so. Can you please confirm that apart from the ability to use additional control key, the method LDTextWindow.SendKey method works for your purpose, i.e. sending single character keys - this would be very similar with the additional Control key capability. RE: ZS Extension. - AbsoluteBeginner - 12-30-2025 (12-30-2025, 05:27 PM)litdev Wrote: ... Okay, I'll try to check this as best I can.
RE: ZS Extension. - AbsoluteBeginner - 12-30-2025 We already have at least one way to send a key combination. The "LDUtilities.SendClick()" method works perfectly with the Windows 11 On-Screen Keyboard. After granting the executable file that compiled Small Basic Administrator rights, my "script" was able to paste text into the browser's text field. So, we can already do what the on-screen keyboard can do. I congratulate the Small Basic fan community on this achievement! Hooray! RE: ZS Extension. - AbsoluteBeginner - 01-02-2026 Hi all. ![]() Probably 5 or 6 years ago, back on the old Microsoft forum, I already suggested supplementing Small Basic with functions for automating routine operations on a computer. Then I was directed to another Microsoft website, where I found and downloaded the WindowsInput.dll library code for C#. Even back then, I extracted the methods I needed from this library. But then I downloaded that autoclicker that was now blocked for me, and successfully forgot about the library. And now, I remembered it again. I uploaded that project to Visual Studio and tested it for errors. VS did not find any errors. I rebuilt the project and pasted the resulting extension into the Small Basic Lib folder. I have tested not all methods. But all the methods that I have managed to test work well. If anyone else needs this extension (source code), I can share it, while observing computer security rules.
RE: ZS Extension. - z-s - 01-04-2026 Glad to see you started making extension
RE: ZS Extension. - AbsoluteBeginner - 01-04-2026 (01-04-2026, 11:26 AM)z-s Wrote: Glad to see you started making extension Hello, ZS. I haven't started making the extension. I made this project back in February 2021. It was only now that I needed it.
|