Results 1 to 2 of 2
  1. #1
    Limit67's Avatar
    Join Date
    Apr 2013
    Gender
    male
    Posts
    139
    Reputation
    10
    Thanks
    9

    Quick help with .ahk script (Should be easy)

    Below is a script that looks for the teal "tell" pixel in the bottom left corner, and when it finds it, takes a screenshot (via printscreen), then waits 22 seconds (so it doesn't take 100 pictures.)

    I can get it to do that, but I'd like to loop it and have that repeat, where it will do it the whole time I'm playing, not just once. Any help? Thanks!




    #NoEnv
    SetWorkingDir %A_ScriptDir%
    CoordMode, Mouse, Window
    SendMode Input
    #SingleInstance Force
    SetTitleMatchMode 2
    DetectHiddenWindows On
    #WinActivateForce
    SetControlDelay 1
    SetWinDelay 0
    SetKeyDelay -1
    SetMouseDelay -1
    SetBatchLines -1


    Loop
    {
    Loop
    {
    Loop
    {
    CoordMode, Pixel, Window
    PixelSearch, FoundX, FoundY, 0, 1000, 150, 1200, 0x00E1EF, 2, Fast RGB
    }
    Until ErrorLevel = 0
    If ErrorLevel = 0
    {
    Send, {PrintScreen}
    Sleep, 22000000
    }
    }
    }
    Last edited by Limit67; 08-03-2014 at 12:49 PM. Reason: edit

  2. #2
    Lovroman's Avatar
    Join Date
    Sep 2012
    Gender
    male
    Posts
    9,417
    Reputation
    611
    Thanks
    11,989
    My Mood
    Cheerful
    Try to add a Goto jump at the end of the loop and a label at the beginning of it(gotohere: Goto, gotohere)

Similar Threads

  1. [Help Request] Help with spawn scripts
    By TrackLegend in forum DayZ Help & Requests
    Replies: 1
    Last Post: 12-21-2013, 02:53 PM
  2. [Help Request] Help with install script to menu
    By dudeks in forum DayZ Help & Requests
    Replies: 2
    Last Post: 12-18-2013, 03:45 AM
  3. [Help Request] Need help with some script ^_^
    By FIRExFACTION in forum Realm of the Mad God Help & Requests
    Replies: 3
    Last Post: 06-28-2013, 04:45 PM
  4. [Help Request] Need Some Quick Help With IPB Board API
    By pilotberry in forum C++/C Programming
    Replies: 0
    Last Post: 06-28-2012, 10:52 PM
  5. [Help Request] Need help with my Script
    By hannemannen in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 8
    Last Post: 11-08-2011, 02:08 PM