Boring background : I worked with UltraVNC to control a computer in the workplace, and it does an excellent job, but to simplify the work, I created a program that interacts with it in C #. I mainly use the commands that the viewer offers to connect, control, view or transfer to each PC.
The problem is that any user can access the PC, as he has one primary account (without a domain controller). I need everyone to sign up for a PC before they can use it, so to make my work easier, I open each PC and block the inputs + blank screens that should have been signed before use.
Opening each PC and pressing the block button can be difficult when you help someone and the user leave, others come (by the way, I work in an electronic library). UltraVNC does not have a team for this; they asked him, but I don’t think that most of the priority is for them, and the code seems very scary for beginners like me, so I thought I could try to hack what I want.
Problem . I want to use the "click" button in the program that I am using from the application that I am creating in C #. Currently, I can use the process class to get the handle and determine the specific window that I want to use, but I have no way to find the button handle that I am reading is what I need. I found material about using findwindow and sendkeys for this, but I don’t see how it works if the button was not assigned a keystroke that it does not have. So can someone point me in the right direction?
source
share