deakhead Posted January 24, 2005 Share Posted January 24, 2005 Hi, when i try to run this scrip, it gives me an error that can't find dllcall function. Here's my source code copied from someone;In this little example pressing n will pop up a message;pressing Esc will leave.Func _IsPressed($hexKey) ; $hexKey must be the value of one of the keys. ; _IsPressed will return 0 if the key is not pressed, 1 if it is. ; $hexKey should entered as a string, don't forget the quotes! ; (yeah, layer. This is for you) Local $aR, $bO $hexKey = '0x' & $hexKey $aR = DllCall("user32", "int", "GetAsyncKeyState", "int", $hexKey) If Not @error And BitAND($aR[0], 0x8000) = 0x8000 Then $bO = 1 Else $bO = 0 EndIf Return $bOEndFunc ;==>_IsPressedAnyone help? Link to comment Share on other sites More sharing options...
CyberSlug Posted January 24, 2005 Share Posted January 24, 2005 (edited) Download the latest version of AutoIt v3.0.103http://www.autoitscript.com/autoit3/files/beta/autoit/Also, I don't know if that particular example will work on Windows 95/98/Me Edited January 24, 2005 by CyberSlug Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
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