Jump to content
Sign in to follow this  
ChickityChina

Key Press Priority

Recommended Posts

Hey guys,

So, hopefully this isn't a stupid question.

I've been working on making an auto-rotation set up for a game where it fires off skills when certain prerequisites are met. The main way that I've been doing this is through PixelGetColor, and it seems to be working mostly the way that I want it to.

One issue that I'm having, however, is that the keys seem to be trying to be pressed at the same time (or incredibly close together), which is causing some skills to be missed entirely.

Just to be clear, this isn't a delay issue as such. It's more like the script doesn't quite know if it should press 1 or 4, so it just sticks with pressing 1 over and over again. Here's the segment that I'm a little stuck on:

<snip>

Let's say that there needs to be 5x (game) resource to use Send 4 (which is indicated by the PixelGetColor). About 80% of the time, if Send 4 and Send 1 are both available, it will choose Send 1 (repeatedly).

I hope I explained that clearly. Thanks for any help that you might be able to give!

Edited by Melba23
Code removed

Share this post


Link to post
Share on other sites

Let's say that there needs to be 5x (game)

Any kind of interaction with games is not allowed in this forums, Please read the forum rules! :)

Edited by TheDcoder
Added link to rules

A cross-platform implementation of the AutoIt language

My contributions to the AutoIt Community ##AutoIt at freenode, real-time chat

3fHNZJ.gif

Spoiler

If I have hurt or offended you in anyway, Please accept my apologies, I never (regardless of the situation) intend to do that to anybody.

Share this post


Link to post
Share on other sites

Ugh, sorry. I thought I had read a bunch of previous posts in similar areas. I'm probably mistaken. Feel free to lock or delete or whatever.

Edited by ChickityChina

Share this post


Link to post
Share on other sites

A mod will soon lock this thread

I hope to see you with a legitimate question again! :D


A cross-platform implementation of the AutoIt language

My contributions to the AutoIt Community ##AutoIt at freenode, real-time chat

3fHNZJ.gif

Spoiler

If I have hurt or offended you in anyway, Please accept my apologies, I never (regardless of the situation) intend to do that to anybody.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...