Jump to content
Sign in to follow this  

User32.dll on Windows 7 I want to run on a different path

Recommended Posts


In windows xp User32.dll (ver 5.1.2600.5512)

it can run       DllOpen(),DllCall()




In Windows 7, the different path User32.dll  (ver 6.1.7600.16384)

DllOpen(),DllCall() can not run


In special circumstances, the command of the keyboard events are needed


$i=DllOpen(@ScriptDir & "user32.dll")
DllCall($i, 'int', 'keybd_event', 'int', 0x41, 'int', 0, 'int', 0, 'ptr', 0)
DllCall($i, 'int', 'keybd_event', 'int', 0x41, 'int', 0, 'int', 2, 'ptr', 0)
Edited by ohnoryno

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