Sign in to follow this  
Followers 0
Aceguy

Another _ispressed question

4 posts in this topic

#1 ·  Posted (edited)

can anyone please explain why its nessecary to

$dll = DllOpen("user32.dll")

when using _IsPressed("23", $dll) on very low sleep times.

what difference would it make from just _Ispressed("23").

Edited by Aceguy

Share this post


Link to post
Share on other sites



can anyone please explain why its nessecary to

$dll = DllOpen("user32.dll")

when using _IsPressed("23", $dll) on very low sleep times.

what difference would it make from just _Ispressed("23").

_ispressed needs to check the .dll to see if _ispressed is true or not

[u][font="Century Gothic"]~я α и d γ ĵ . ċ . ѕ қ ϊ и и ε я~- My Programs -auto shutdownSleep funcdisallow programs[/font][/u]

Share this post


Link to post
Share on other sites

Doing a DllOpen() makes the process faster because it save the open and close of the DLL on each check for a keypressed:

Remarks

If a dll filename is given then the DLL is automatically loaded and then closed at the end of the call. If you want to manually control the loading and unloading of the DLL then you should use DllOpen and DllClose and use a handle instead of a filename in this function.


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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