Jump to content
Sign in to follow this  
Frap

Help with a function :)

Recommended Posts

Frap

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

Share this post


Link to post
Share on other sites
FireFox

Hi,

Welcome to the autoit forum :)

This may help you.

Br, FireFox.


 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites
Frap

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

Share this post


Link to post
Share on other sites
FireFox

Maybe >this.

Br, FireFox.


 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites
Frap

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

Share this post


Link to post
Share on other sites
FireFox

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

Br, FireFox.


 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites
Frap

Oh great! very helpful.. I'm going to test the beta version to try the script :)

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  

×