Jump to content

_IsPressed


w0uter
 Share

Recommended Posts

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

Link to comment
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.

 

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...