Jump to content

AutoIt beginner


Recommended Posts

Hi, I just found this site while looking for scripting possibilities, just trying to see how things work and what can be done.

I've downloaded the Autoit program install and the better Script part, I also got the Autoit 123 and have been taking a look through the help files aswell. But sometimes I have a hard time putting it together, may I ask for an example script so that way I can see how something would look in the end, if anyone has the time to help, much apprecaited. Also for keys on the keyboard, do I just use , the alpha letter F, or a Hexadecimal or does it matter?

~ Example,

When keyboard buttom "F" is pressed.

`Button "G" is Activated and Held.

`Button "H" is Activated and Held.

'Button "J" is Activated and Held.

All sequence of G-H-J. ~ G being beginning, J being end.

When button "F" is released", "GHJ" is released.

Thanks for any help, I hope I explained my example right.

Link to comment
Share on other sites

This question doesn't make much sense to me, since I don't think I have ever seen several alpha keys being held down simultaneously, or at least not without a control key. I think that each subsequent alpha key would override the previous key. Perhaps there's something I don't know.

Link to comment
Share on other sites

There are some keyboards which handle multi-key rollover but they aren't the norm. Is that for a game of some kind?

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)

Link to comment
Share on other sites

Yes, my keyboard has the ability use multiple keys at once.

Yes, this is for a game of sorts. I have difficulty moving with the default keybindings.

Thanks you for your repsonses so far.

Edit: I'm mainly just curious how the code would look in AutoIt language, if I have to use hex -codes, ect, parenthesis, or qoutes. thank you for any assistance. I admit this is and open handed attempt to see the mechanics of the code with-out having to figure out each command.

Edited by currier3
Link to comment
Share on other sites

I don't know how to go multi-key using AutoIt, but I urge you to carefully read the generic response to you quest before you get hurt!

We're looking for your next legitimate question, of course.

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)

Link to comment
Share on other sites

It's okay my script is entirely with in the Code of Conduct.

I'm just curious as to I want to begin using Auto-it, if it can preform the functions needed.

Another example would be.

~ Example,

When button "X" is activated, Button "X" is repeated ( with wait and sleep standards ) until Any other key-press is activated.

Thanks again, much appreciate the responses.

Link to comment
Share on other sites

Until this week I thought you could use only one key at a time. My 7 year old son made me play a 2 character internet game. Each character had three keys for left/right/jump. Both characters move independently. I guess they are using the equivalent of IsPressed().

Link to comment
Share on other sites

Indeed this is a similar situation, if you have played the old 2 player on one keyboard games, I'm having a bit of difficulty getting my keyboard which accepts a maximum of 4 active keys, when we each need atleast 3.

Thank you for the response RichardL :oops:

Link to comment
Share on other sites

It's okay my script is entirely with in the Code of Conduct.

If you mean our rules then no it isn't. You clearly stated it is for a game therefore it violates our rules. Full stop, no argument possible, the rule is zero tolerance.

Thread locked.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

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