ChickityChina

Key Press Priority

4 posts in this topic

#1 ·  Posted (edited)

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



#2 ·  Posted (edited)

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

AutoIt.4.Life Clubrooms - Life is like a Donut (secret key)

Spoiler

My contributions to the AutoIt Community

Some messages & Apologizes:

If I hurt you, Please accept my apologies, I never (regardless of the situation) mean to hurt anybody!!!

Also, I am very busy with my project so I will appear in the last row of the online list, if you want to contact me: Email@TheDcoder.xyz

Or you can have a nice chat with me in freenode, I use the same nick on freenode too!

3fHNZJ.gif

PLEASE JOIN ##AutoIt AND HELP THE IRC AUTOIT COMMUNITY!

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

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


AutoIt.4.Life Clubrooms - Life is like a Donut (secret key)

Spoiler

My contributions to the AutoIt Community

Some messages & Apologizes:

If I hurt you, Please accept my apologies, I never (regardless of the situation) mean to hurt anybody!!!

Also, I am very busy with my project so I will appear in the last row of the online list, if you want to contact me: Email@TheDcoder.xyz

Or you can have a nice chat with me in freenode, I use the same nick on freenode too!

3fHNZJ.gif

PLEASE JOIN ##AutoIt AND HELP THE IRC AUTOIT COMMUNITY!

Share this post


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