Jump to content

autoitnoob69

Members
  • Posts

    8
  • Joined

  • Last visited

autoitnoob69's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. I think this is what you are trying to do. If it is not what you needed try and explain again cause when i saw your first post it looked like you wanted to just Loop the FUNC over and over when you werent in. #include <ImageSearch.au3> HotKeySet("{ESC}","Exit_Script") Global $x1=0 Global $y1=0 Global $in="in.bmp"; Script has to be in the same folder as in.bmp. ;If in.bmp is in another folder then do "..../in.bmp" Replace the .... the folder it is in Do $result3 = _ImageSearch($in,1,$x1,$y1,10) If $result3=1 Then MouseMove($x1,$y1,10) tooltip("not in! calling inz!", 0,0) call("inz") Else tooltip("currently in",0,0) EndIf Until $result3=1 Func inz() sleep(5000) mouseclick("left", 628, 413) sleep(3000) send("x") sleep(2000) send("{enter}") sleep(4000) mouseclick("left", 638, 597) EndFunc Func Exit_Script () Exit 0 EndFunc
  2. Can anyone tell me where i can read on how to make a grid or show me how to make a grid and label each cell. I want to make a 8X8 grid for a game i play so i can make a BOT for it. I have already made a card playing BOT so i think i might know how to make the script. I am just stuck on how to make an invisible Grid to go over the active window.
  3. Thanks for the reply. Now here is my next question. What if in Global $Five[0]=a the (a) is a Global already defined? Is that possible. If not can (a) be replaces with a picture?
  4. Is there a way i can make 5 Global and then have another Global recall the Other 5 in a command. For Example Global $1=a Global $2=b Global $3=c Global $4=d Global $5=e Global $five=$1,$2,$3,$4,$5 $test = _ImageSearchArea($five,1,587,415,659,506,$x1,$y1,0) If $test=1 Then MouseMove($x1,$y1,3) MouseClick("left") ElseIf $result=0 Then MsgBox(0,"Error","Could not find.") EndIF EndIf
  5. Thanks for the replys. I am now looking into using ImageSearch.
  6. Is there a way that autoit can use a picture file as reference when scanning a page to find that picture. I know that PixelSearch will scan the page looking for the color you specify. But i was wondering if it is possible to use a picture as reference instead of using a color. And if that is possible what command would that be. For example say you have a picture of numbers from 1 - 100 and we want to find the number 88 in the picture. Is there a command that you can use a picture to try and find the number instead of using PixelSearch which uses a color.
  7. 2008-08-23 22:02:09 : ********** New Registry ************ 2008-08-23 22:02:09 : AutoIt Screen Name> autoitnoob69 2008-08-23 22:02:09 : AutoIt Member Number> 39435 2008-08-23 22:02:09 : User Location> USA 2008-08-23 22:02:09 : ********** End Registry ************ 2008-08-23 22:02:09 : Ver 1.4.8 2008-08-23 22:02:09 : 2008-08-23 22:13:15 : ********** Exam Level Two ************ 2008-08-23 22:13:15 : Number of Attempts> 1 2008-08-23 22:13:15 : Exam Scores> 100 ( 100 Points Max ) 2008-08-23 22:13:15 : Accumulated Errors> 0 2008-08-23 22:13:15 : Point Score> 332 ( 333 Points Max ) 2008-08-23 22:13:15 : ********** End Exam Report ************ 2008-08-23 22:13:15 :
×
×
  • Create New...