Jump to content
Sign in to follow this  
07hc420

I can not get key @ from keyboard when user press

Recommended Posts

07hc420

My code

#NoTrayIcon

#include<Misc.au3>

; Open dll user32

$dll = DllOpen("user32.dll")

; Loop

While 1

if _IsPressed("61", $dll) then

FileWrite("temp.txt", "a")

EndIf

While _IsPressed("61", $dll) = 1

WEnd

if _IsPressed("40", $dll) then

FileWrite("temp.txt", "@")

EndIf

While _IsPressed("40", $dll) = 1

WEnd

WEnd

; Close user32.dll

DllClose($dll)

I can not get char '@' or 'a' when user press @ or a from his keyboard. But 'A' with hex '41' is ok.

Anyone help would be appreciated.

I thank a lot.

Edited by 07hc420

Share this post


Link to post
Share on other sites
nfaustin

Hi 07hc420, 

Friendly reminder, I suggest you edit your post before you get ban or this post is blocked.

This is a keylogger issue.


[font="Palatino Linotype"][size="2"]*** The information contained in this post should be considered and certified WORKS ON MY MACHINE ***[/size][/font][font="Palatino Linotype"][size="2"] [/size][/font]

Share this post


Link to post
Share on other sites
07hc420

i am so sorry. i am a new member and a new autoit programer so i can only figure out my knowledge.

Share this post


Link to post
Share on other sites
nfaustin

Better read first the do's and dont's in this forum my friend...

especially the sticky one.

http://www.autoitscript.com/forum/index.php?showtopic=14632

Edited by nfaustin

[font="Palatino Linotype"][size="2"]*** The information contained in this post should be considered and certified WORKS ON MY MACHINE ***[/size][/font][font="Palatino Linotype"][size="2"] [/size][/font]

Share this post


Link to post
Share on other sites
SmOke_N

Enough nfaustin, it's been reported.


Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.