Jump to content

Recommended Posts

Posted

Hi,

I would like to use send function to simulate a keypress on ² key, ie key below Escape but I dont know how to do it.

222 is the reply from _IsPressed function but I cant simulate this ?

Regards

  • Developers
Posted (edited)
18 minutes ago, ribo75016 said:

but I dont know how to do it.

Welcome, so what have you tried that isn't working?

Also which key do you means as the keyboards are different in each country and have no idea what you mean with :  

18 minutes ago, ribo75016 said:

send function to simulate a keypress on ² key, ie key below Escape but I dont know how to do it.

 

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Posted

Is it the key used to bring up (down) the game console so you can type game cheatcodes ?

Some guy's script + some other guy's script = my script!

Posted

I used this code to catch keycode, and result is 222 :

Quote

#include <misc.au3>
While 1
    sleep(10)
    For $i = 0 to 255
        if (_IsPressed(Hex($i))) Then
            MsgBox(0, "", "You pressed the: " & Chr($i) & " Key!" & @CRLF & "Which would be polled with: _Ispressed(" & $i & ")")
        EndIf
    Next
WEnd

I tried a send(asc('222')) without success

Posted

What about Send("²")

This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

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...