My curse seems to be SendInput... I have tried many sites and code variations and it never works right... it always returns an error. So can someone just whip together a quick class that has 3 public methods, one for keyboard (that takes a Keys data type) one for mouse, and one for Hardware? Please don't link me to anything, I've tried so many sites that my head's spinning.
Xcelled194 28 Junior Poster in Training
Recommended Answers
Jump to PostWhat are you using it for?
This is now irritating me as well.
Spent 2 hours on it and can't get it to work either.
It's not sending back an error code but doesn't do anything.
Post what you find out and I will as well.
Jump to PostHeres a start of a class you want.
Usage:
SendInputs.SendKey("A")
Hope This Helps
Imports System.Runtime.InteropServices Public Class SendInputs Private Const KeyDown As Integer = &H0 Private Const KeyUp As Integer = &H2 <DllImport("user32.dll")> _ Private Shared Function SendInput( _ ByVal nInputs As Integer, …
All 7 Replies

Unhnd_Exception

Unhnd_Exception

Unhnd_Exception

Unhnd_Exception

Unhnd_Exception
Xcelled194 28 Junior Poster in Training

Unhnd_Exception
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.