Jump to content

Help with a function :)


Go to solution Solved by FireFox,

Recommended Posts

Posted (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 :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
Posted (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 by Frap
Posted

It's a bit strange , but I don't have both of the files APIConstants.au3 and WinAPIEx.au3 in the folder "Include"!  :ermm:

  • Solution
Posted

Either download the WinAPIEx UDF by Yashied or install the beta version which includes it.

Br, FireFox.

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
  • Recently Browsing   0 members

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