Autoit pixelsearch hp and mp

12/07/2019 04:37 johnmicel#1
Hi all, i am seeking for help with autoit. I want a script that will pixelsearch my character ingame hp and mp then convert to a separate autoit gui progress bar. I been searching autoit forum but cannot find any clue how to do it.
12/07/2019 18:17 elmarcia#2
Quote:
Originally Posted by johnmicel View Post
Hi all, i am seeking for help with autoit. I want a script that will pixelsearch my character ingame hp and mp then convert to a separate autoit gui progress bar. I been searching autoit forum but cannot find any clue how to do it.
Hi, in fact is really simple to do, u need some math, here is a full example for u to DIY.

Compile this script to use the pixelSearch example below
Game HP bar Example:
(This code is for the example code to work (DON'T READ IT LOOKS BAD), the code used for the search is the one below, but you can use some of it for your separated gui HP/MP bar)

PixelSearch HP tracker example:
Execute the game.exe (compiled script from above), and run this script

Image of code comments to know what all that means
[Only registered and activated users can see links. Click Here To Register...]

A tip, use autoitwindow info with these options to help you find the correct
search area position
[Only registered and activated users can see links. Click Here To Register...]
12/08/2019 22:49 johnmicel#3
Quote:
Originally Posted by elmarcia View Post
Hi, in fact is really simple to do, u need some math, here is a full example for u to DIY.

Compile this script to use the pixelSearch example below
Game HP bar Example:
(This code is for the example code to work (DON'T READ IT LOOKS BAD), the code used for the search is the one below, but you can use some of it for your separated gui HP/MP bar)

PixelSearch HP tracker example:
Execute the game.exe (compiled script from above), and run this script

Image of code comments to know what all that means
[Only registered and activated users can see links. Click Here To Register...]

A tip, use autoitwindow info with these options to help you find the correct
search area position
[Only registered and activated users can see links. Click Here To Register...]

Tyvm for the generous reply, i will test this later. I am just new to autoit and it is fun. By the way i will going to use this script to cabal online. Another problem i am facing so far now is imagesearch it seems not to worked in the game. Imagesearch script is working in my desktop but when i use winactivate command it activate cabal window but not searching any image.

P.S. thanks button pressed :handsdown::handsdown: