Frap Posted September 16, 2013 Share Posted September 16, 2013 (edited) Hi guys! , I'm new of this nice forum even if I knew Autoit 2 years ago. Now I'm here to share my scripts and to learn something more of this cool language . I created this post because I've got a little problem with a piece of a script that is concerned with the function _ispressed(). Here there's the code of the piece : #include <misc.au3> $hDLL = DllOpen("user32.dll") while 1 sleep(100) if _ispressed(10) then if _ispressed("C0") then msgbox(0,"????","You pressed the question mark") exitloop endif wend The problem is that Autoit recognizes the hexadecimal valor of the shift button, but not the apostrophe to get a question mark. I thoght that the problem may be connected to the kind of keyboard, because I'm using a standard keyboard qwerty like this '> in which some special characthers (?,@,*..) have a particular position respect of other keyboards. What can I do to find the correct hexadecimal valor??? Edited September 16, 2013 by Frap Link to comment Share on other sites More sharing options...
FireFox Posted September 16, 2013 Share Posted September 16, 2013 Hi, Welcome to the autoit forum This may help you. Br, FireFox. Link to comment Share on other sites More sharing options...
Frap Posted September 16, 2013 Author Share Posted September 16, 2013 (edited) Hi Firefox, unfortunately I don't know C++ yet .. How can I use that function? PS : I saw some of your scripts. I like them Edited September 16, 2013 by Frap Link to comment Share on other sites More sharing options...
FireFox Posted September 16, 2013 Share Posted September 16, 2013 Maybe >this. Br, FireFox. Link to comment Share on other sites More sharing options...
Frap Posted September 16, 2013 Author Share Posted September 16, 2013 It's a bit strange , but I don't have both of the files APIConstants.au3 and WinAPIEx.au3 in the folder "Include"! Link to comment Share on other sites More sharing options...
Solution FireFox Posted September 16, 2013 Solution Share Posted September 16, 2013 Either download the WinAPIEx UDF by Yashied or install the beta version which includes it. Br, FireFox. Link to comment Share on other sites More sharing options...
Frap Posted September 16, 2013 Author Share Posted September 16, 2013 Oh great! very helpful.. I'm going to test the beta version to try the script Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now