Jump to content
Sign in to follow this  
deakhead

DllCall Help

Recommended Posts

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 $bO

EndFunc ;==>_IsPressed

Anyone help?

Share this post


Link to post
Share on other sites

Download the latest version of AutoIt v3.0.103

http://www.autoitscript.com/autoit3/files/beta/autoit/

Also, I don't know if that particular example will work on Windows 95/98/Me

Edited 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!

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...