Jump to content

bald1

Active Members
  • Posts

    32
  • Joined

  • Last visited

bald1's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. No luck. For chance sake, i tried adding the imaagesearchdll.dll to the system32 folder, which just causes autoit to crash with the windows error: autoit3.exe has encountered a problem and needs to close. We are sorry for the inconvenience. What can i do from here?
  2. Ok thanks, it might fix it, even tho my issue is not 64x related as im running it on a 32x xp machine. Will have a look when i get near my stationary
  3. Yea, i couldnt find any threads explaining this issue i have concerning the imagesearch UDF. Could be that im the only retarded guy in here I DL'd it, moved the imagesearch.au3 into the included folder, have the .dll in the same script folder along with a pic file. The demo gives me this: C:\Program Files\AutoIt3\Include\ImageSearch.au3 (44) : ==> Subscript used with non-Array variable.: if $result[0]="0" then return 0 if $result^ ERROR Can anyone compile an example for me to use as guideline? I aim to use the imagesearcharea thingy. Thanks in advance
  4. Thanks for updating the links
  5. You should look at iniread and its like ooo I helped!
  6. Hey fellow nerds! Im really just looking for a workaround, since what i wanted doenst seem possible This is what i thought was possible and wanted: local $vEvent01 = 3000 local $vEvent02 = 5000 Local $vTimer01 = TimerInit() Local $vTimer02 = TimerInit() while 1 = 1 Select Case $vTimer01 > $vEvent01 ;.. something something darkside action Case $vTimer02 > $vEvent02 ;.. something something darkside action EndSelect sleep(1000) WEnd I bet you all see what i wanted with this. Is there something obvious I dont see, or how come i cant use this function in this manner? What could be a workaround?
  7. wtfh o0 I used this plenty of times without it erroring out and it working perfectly and now this all of a sudden hahah. Thanks, and sorry for the bother
  8. while $continue = True $Coords1 = PixelSearch($vFullSearchCoords1, $vFullSearchCoords2, $vFullSearchCoords3, $vFullSearchCoords4, $aFullSearch[$i], 5, 1); search for den store pixel If Not @error Then $coordbox1 = $coords1[0] - 50; Create coord box $cooodbox2 = $coords1[1] - 50 $coordbox3 = $coords1[0] + 75 $coordbox4 = $coords1[1] + 100 For $z = 0 to 1 step + 1 $closeCoord1 = PixelSearch($coordbox1, $coordbox2, $coordbox3, $coordbox4, $aCloseUpSearch[$i][$z], 8, 1); box search pixels If not @error Then $var = $var + 1 Else $var = 0 EndIf Next If $var = 2 Then and tons more that should irrelevant All the variables are declared in the local scope earlier..
  9. Sorry about this repost, i don't seem to be able to delete my own posts..
  10. Heh, i accidently reposted it anyway, and thinking it over didnt work
  11. \Fix18-10-09.au3(74,56) : WARNING: $coordbox2: possibly used before declaration. $closeCoord1 = PixelSearch($coordbox1, $coordbox2, Fix18-10-09.au3(74,56) : ERROR: $coordbox2: undeclared global variable. $closeCoord1 = PixelSearch($coordbox1, $coordbox2, I get this error all of a sudden, and i dont even remember changing anything in the script. The variables, all of them, are declared in beginning of the script. Tried making them both local and global with no change. I havent used this bit in a while, and the error didnt show itself before last night for some strange reason. What could i have changed in this script to generate this, through my noob-perspektive, unjustified error?
  12. Edit: Wait! Lemme just rethink this again ><
  13. I am, but i need help to incorporate it into the entire picture. Could u perhaps make a little example that i could use in the scenario i described? edit: Also, how do i build up this .ini file? Same way as i do with vars and arrays in autoit format?
  14. Hey guys I bet this is a question often brought up, tho i failed to find my answer via the search function, and help file wasn't much help either. I have chunks of script that I wish to make into functions. The arrays and variables belonging to the functions i would very much like to put into outside .ini files, to make it all easier to read, develop and trim. How do i go about this? How do I pull data from an outside (of script) .ini file into the functions called in the script that i want to run?
×
×
  • Create New...