Jump to content

Help with a function :)


Frap
 Share

Go to solution Solved by FireFox,

Recommended Posts

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 :D . 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 by Frap
Link to comment
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
 Share

  • Recently Browsing   0 members

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