Sign in to follow this  
Followers 0
w0uter

_IsPressed

3 posts in this topic

my own personal mod from _IsPressed() seems faster then the included one.

(it also ads the option to use a DllOpen() handle if it is called alot)

Func _IsPressed($s_hexKey, $v_dll = 'user32.dll')
    Local $av_R = DllCall($v_dll, "int", "GetAsyncKeyState", "int", '0x' & $s_hexKey)
    If Not @error And BitAND($av_R[0], 0x8000) = 0x8000 Then Return 1
    Return 0
EndFunc  ;==>_IsPressed

My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll

Share this post


Link to post
Share on other sites



my own personal mod from _IsPressed() seems faster then the included one.

(it also ads the option to use a DllOpen() handle if it is called alot)

Func _IsPressed($s_hexKey, $v_dll = 'user32.dll')
    Local $av_R = DllCall($v_dll, "int", "GetAsyncKeyState", "int", '0x' & $s_hexKey)
    If Not @error And BitAND($av_R[0], 0x8000) = 0x8000 Then Return 1
    Return 0
EndFunc  ;==>_IsPressed

<{POST_SNAPBACK}>

I'll take a look at this when I get home from work, being I submitted on behalf of the authors, looks like it'll work with out breaking any current scripts, shouldn't be a problem.

Gary


SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

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  
Followers 0