Jump to content

Recommended Posts

Posted

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]
  • Developers
Posted

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.

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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
  • Recently Browsing   0 members

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