World of Warcraft pixelsearch - Slow script help Topic is solved

Ask gaming related questions
Detrim2
Posts: 8
Joined: 22 Jun 2017, 10:58

World of Warcraft pixelsearch - Slow script help

02 Dec 2017, 12:59

I'm a complete beginner when it comes to this stuff. The script works but it takes about 300 ms to run in World of Warcraft when I hit E. It's supposed to run down the list of pixelsearches (from most important to least important) until it finds one without error, sends that Numpad, and then returns waiting for me to press E again. That way one keystroke results in one action in-game.

Are there just too many pixelsearches happening, maybe pixelsearch is the wrong thing for this, or did I write this so badly that it's really inefficient? Any help is appreciated. :)

Computer specs:
WoW home and world latency at 25
Windows 10 Home 64 bit
i5 4690k
8 gig ddr4 memory
R9 280x video card

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus

User avatar
Xtra
Posts: 946
Joined: 02 Oct 2015, 12:15

Re: World of Warcraft pixelsearch - Slow script help

02 Dec 2017, 19:32

Fast scans the screen horizontally it may work faster without the Fast option to scan vertically.Reference: PixelSearch
If you can use PixelGetColor it would be faster.
Detrim2
Posts: 8
Joined: 22 Jun 2017, 10:58

Re: World of Warcraft pixelsearch - Slow script help

02 Dec 2017, 20:39

Thank you for the reply. :) I first tried it without fast and it stayed the same. I then rewrote it to use PixelGetColor and it got a good amount faster. Went from 300ms delay to about 150ms delay. Unfortunately not as fast as just pressing the actual key for a skill in WoW which is instant.

This is what the script looks like now. Any other way to improve it? Really appreciate the help regardless. :)

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus

User avatar
Xtra
Posts: 946
Joined: 02 Oct 2015, 12:15

Re: World of Warcraft pixelsearch - Slow script help  Topic is solved

03 Dec 2017, 04:51

Try adding: to the top of the script. That should help some.


To shorten the code you could use arrays for the values and then use one loop.
Example:

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus

Detrim2
Posts: 8
Joined: 22 Jun 2017, 10:58

Re: World of Warcraft pixelsearch - Slow script help

03 Dec 2017, 11:57

Arrays! I think I'm in love. It's so much faster and cleaner looking now, practically instant. Thank you so much.
Rastahammer
Posts: 16
Joined: 17 Dec 2017, 13:09

Re: World of Warcraft pixelsearch - Slow script help

17 Dec 2017, 15:30

Detrim2 wrote:Arrays! I think I'm in love. It's so much faster and cleaner looking now, practically instant. Thank you so much.


Hello! You didn't get banned using this script???

Thank you!

Return to “Gaming”

Who is online

Users browsing this forum: No registered users and 15 guests