I found a whole bunch of keyboard reading things, most of them either need direct X or this user32.dll file which I get a script error when I try to put in, this is what I have:
Option Explicit
Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer
Everyone says thats what you put in visual basic to declare the function and start using GetAsyncKeyState but when I try to run it I get an error at the word Function and it says "Expected end of statement".
I'm so close to having a macro run by a keyboard command only thing stopping me is getting this libary to join. Do you have to do something different for VBS? there isnt a lot of help out there i've been on google all day looking for the correct way to declare it but it all turns up showing what I already have, am I missing something before or after it? or is it my script runner?
You cannot declare functions in your script. I will add a function to the script plugin for GetAsyncKeyState. Will update the script plugin tonight with it.
I am trying to learn how to do these calls without using xunleashed. I believe having a firmer understanding of how to do simple keyboard/mouse commands will allow programming a working postmessage easier.
Posted: October 5th, 2004, 2:55 pm
wyvernx Total Posts: 6718 Joined: May 1st, 2004, 4:00 am
wyvernx's Reps:21