Jump to content

Recommended Posts

Posted

Hello,

First of all, Thank you for the futher reply to my thread :)

Im here cause i have a problem with a script i made i will try to explain with my beatifull english lol

What i want to do ?

A Simple script who take screenshot when a certain pixel or image is found, that why im using ImageSearch and ScreenCapture.

Why do that ?

Im playing a video game with an algorythme to win items, on this game we have a "Lucky Time", this "Lucky Time" appear randomly, so i would like to let my script run on my computer peer exemple 7 Night on my computer and see at wich moment the "Lucky Time" appear mostly.

What the problem with the script ?

The script is working pretty good, but when the Lucky time appear, the game say something in the general chat in Yellow Color, but here is the problem, if player didnt speak, the message keep in the chat and the script just save a lot and a lot of screen for nothing cause the TEXT Message of the game is still in the chat, here is the simple script.

I hope you will understand what i'm trying to explain

 

 

#include <ImageSearch.au3>
#include <ScreenCapture.au3>

$x1=0
$y1=0

While 1

     $result = _ImageSearch("CheckImage.bmp",0,$x1,$y1,0)
     if $result=1 Then
          _ScreenCapture_Capture("C:\Users\Test\Desktop\Algo" & "\" & @hour & "_" & @min & "_" & @sec & ".jpg"); name = Hour, minute, and second
     EndIf

Wend

[/Code]

  • Developers
Posted

Welcome to the AutoIt forum.

Unfortunately you appear to have missed the Forum rules on your way in. Please read them now - particularly the bit about not discussing game automation - and then you will understand why you will get no help and this thread will now be locked.

See you soon with a legitimate question I hope.

The Moderation team

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...