Jump to content

Keys Pressed At A Certain Timing


Recommended Posts

:) Hi, Im a new AutoIt user and I have been doing a few experiments. I play an online music game (pic example below) which is something similar to the dacing games in arcades but is played with fingers and has 7 keys to be press at a correct timing.

Here are the controls of the game... :think:

S=1st Note (white)

D=2nd Note (blue)

F=3rd note (white)

SPACE=4th Note (orange)

J=5th Note (white)

K=6th Note (blue)

L=Last Note (white)

When a note reaches the red line below, u have to press the correct key. So i was wondering if autoit can press the correct key when it reaches the red line......something like a bot ;)

Thx in advance :(

Joash

Link to comment
Share on other sites

  • Moderators

So i was wondering if autoit can press the correct key when it reaches the red line......something like a bot :(

Thx in advance :think:

Joash

AutoIt can be "coded" to do those options. You'll need to read on PixelCoordMode / MouseCoordMode / PixelSearch() / PixelGetColor() / (maybe PixelCheckSum) / MouseClick() in the help file.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

Why would he need mouseclick? :think:

The below statement is False.The above statement is True.a lesson I learned from Greenmachine; give a man a code and he'll solve one problem. Teach a man to code and he'll solve all his problems.P.S please don't use autoIt as a virus creator/spyware maker(keyLogger especially)Cick this and help me[center]My Scripts:[/center][center]Port Scanner[/center]

Link to comment
Share on other sites

  • Moderators

Why would he need mouseclick? :(

Hell if I know, I woke up after being asleep for 2 hours, so I was a bit groggy I guess, Kind of like gary if he hasn't had his second cup of coffee :think:. Thanks for pointing it out... O2Freak... you would look at Send() / ControlSend()

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

I have tried most of those u all suggested but im still not sure how to make autoit press the correct button when a colour appears on the red line =( ......can anybody teach or help me >.< ? I kept on looking into the whole list of commands autoit can do but still failed to get it right .

Thx again =D

Link to comment
Share on other sites

really simple (probably needs a little upgrade

$search = Pixelsearch(fill this in)
if $search = (the red color) then 
send (KEY)

a lesson I learned from Greenmachine, give a man a code and he'll use it for a day. Teach a man to code and he'll and use it for the rest of his life.

Edited by Infinitex0

The below statement is False.The above statement is True.a lesson I learned from Greenmachine; give a man a code and he'll solve one problem. Teach a man to code and he'll solve all his problems.P.S please don't use autoIt as a virus creator/spyware maker(keyLogger especially)Cick this and help me[center]My Scripts:[/center][center]Port Scanner[/center]

Link to comment
Share on other sites

Hell if I know, I woke up after being asleep for 2 hours, so I was a bit groggy I guess, Kind of like gary if he hasn't had his second cup of coffee :think:. Thanks for pointing it out... O2Freak... you would look at Send() / ControlSend()

careful now :(

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

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