LiLShinta Posted May 11, 2008 Posted May 11, 2008 ehm'... anybody please teach me how to call and use this dll for sending my pseudo keyboard event? My target is to Press Spacebar at a given instance... all i need now is how will I able to use "dinput8.dll" in my script so I can send Keypress.. thanks.
PsaltyDS Posted May 11, 2008 Posted May 11, 2008 ehm'... anybody please teach me how to call and use this dll for sending my pseudo keyboard event? My target is to Press Spacebar at a given instance... all i need now is how will I able to use "dinput8.dll" in my script so I can send Keypress.. thanks.Send("{SPACE}") or ControlSend("Title", "", "", "{SPACE}") won't work?Do you have a link to the interface for that DLL? Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
LiLShinta Posted May 12, 2008 Author Posted May 12, 2008 nope ordinary send keys and controlsend does work coz that program uses dinput8.dll that can be found on windows system..this dll hadles all the sending keys to that particular program..ahmm.. my only problem is how to call that dll and to get the memory of sendinf "Spacebar" so that I can send {SPACE} in given instance.
BrettF Posted May 12, 2008 Posted May 12, 2008 Find the usage of the dll, and we will most likely have an answer. I certainly won't be handing this to you on a plate. Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version!
LiLShinta Posted May 12, 2008 Author Posted May 12, 2008 this dinput8.dll is a DirectC DLL, which handles DirectInput. This gives functionality for multimedia input devices such as joysticks.It is also use DirectInput to sink press touch from keyboards.
ProgAndy Posted May 12, 2008 Posted May 12, 2008 dinput8 is part of directx and it receives the Keybord events, not sends them You have to use keybd_event, which I think AutoIT uses, too (http://msdn.microsoft.com/en-us/library/ms646304(VS.85).aspx) *GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes
LiLShinta Posted May 14, 2008 Author Posted May 14, 2008 (edited) dinput8 is part of directx and it receives the Keybord events, not sends themjust like I said.. so how will I call these dll and send to it my KeyPress(Spacebar). The virtual key for space bar is 0x20 right?KINDLY SEE THIS Edited May 14, 2008 by LiLShinta
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now