
chacoya121
Active Members-
Posts
31 -
Joined
-
Last visited
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
chacoya121's Achievements

Seeker (1/7)
0
Reputation
-
Please help calculate the secs variable i can't get it right after 60s, it go into -1 and on.... Func CountDown() Local $count = 5 Local $newcount = $count * 60 ; 300 sec Local $time = TimerInit() While 1 Sleep(1000) Local $timediff = TimerDiff($time)/1000 ; turn into sec Local $mins= Floor(($newcount - $timediff)/60) Local $secs = Floor($newcount/$count - $timediff); Need help this line can't calculate after 60s ToolTip("Mins = " & $mins & " Secs = " & $secs) WEnd EndFunc
-
can someone plz explain how WinAPI work and some example script plz
-
thank you guys
-
i was curious about this too, how does pixelsearch hwnd work? can someone have some sample script plz. i google but no sample
-
plz help store color in array!
chacoya121 replied to chacoya121's topic in AutoIt General Help and Support
Global $x1 = 82 Global $y1 = 217 Global $x2 = 115 Global $y2 = 255 _Start() ShellExecute("Color Code.ini") ; View Color Code.ini file. Func _Start() If FileExists("Color Code.ini") Then FileDelete("Color Code.ini") For $i = $x1 To $x2 Step 1 For $j = $y1 To $y2 Step 1 $color = PixelGetColor($i, $j) $getini = IniReadSection("Color Code.ini", "Color") If @error Then IniWrite("Color Code.ini", "Color", "0x" & Hex($color, 6),"") If Not @error Then IniWrite ("Color Code.ini", "Color", "0x" & Hex($color, 6), "") For $k = 0 To $getini[0][0] Step 1 If $getini[$k][0] = Hex($color,6) Then $getini[1][1] += 1 EndIf Next Next Next EndFunc ;==>Start plz help me add duplicate color -
plz help store color in array!
chacoya121 replied to chacoya121's topic in AutoIt General Help and Support
Global $x1 = 82 Global $y1 = 217 Global $x2 = 115 Global $y2 = 255 Func _Start() For $i = $x1 To $x2 Step 1 For $j = $y1 To $y2 Step 1 $color = PixelGetColor($i, $j) $getini = IniReadSection("Color Code.ini", "Color") If Not @error Then IniWrite("Color Code.ini", "Color",Hex($color, 6), $getini[1][1]+1) ElseIf @error Then IniWrite("Color Code.ini", "Color",Hex($color, 6), "1") EndIf Next Next EndFunc ;==>Start thank you , you are the best ,i understand it now can you put that into ini file i try similar way but some how doesn't work sorry for my english and low lvl programming -
plz help store color in array!
chacoya121 replied to chacoya121's topic in AutoIt General Help and Support
can you add up all the duplicate color and test with some different coordinate it wont work Local $x1 = 77, $y1 = 214, $x2 = 118, $y2 = 254 is there limit to array it could stored? -
plz help store color in array!
chacoya121 replied to chacoya121's topic in AutoIt General Help and Support
get color and store in array -
Local $count = 1 Local $x1= 100,$y1 = 100,$x2 = 110,$y2 = 110 $area = ($x2+$x1)*($y2+$y1) Local $array[$area][2] For $i = $x1 to $x2 Step 1 For $j = $y1 to $y2 Step 1 $color = PixelGetColor($i,$j) $scolor = Hex($color,6) $array[$count][2] = [$scolor,1] $position = _ArraySearch($array,$scolor,0,0,0,0,1) If $array[$position][0] = $scolor Then $array[$position][1] +=1 Else $count += 1 EndIf Next Next _ArrayDisplay($array) plz help adjust and shrink it down soo confusing playing with array
-
plz help how to organize from notepad or Ini file
chacoya121 replied to chacoya121's topic in AutoIt General Help and Support
HotKeySet("{Home}", "Start") HotKeySet("{Esc}", "MyExit") Global $colorcount = 0 While 1 Sleep(100) WEnd Func MyExit() Exit EndFunc Func Start() For $i = 0 to 9 Step +1 For $j = 0 to 9 Step +1 $color = PixelGetColor($i,$j) IniWrite("Color Code.ini","Color",$colorcount,Hex($color,6)) $colorcount += 1 Next Next EndFunc can someone help me organize this color count, i m just curious how it work, cuz i try to figure out how it work but soo confusing me, im low lvl programing and sorry for my english -
plz help how to organize from notepad or Ini file
chacoya121 replied to chacoya121's topic in AutoIt General Help and Support
what if u have a scramble of files need to organize cuz this just only 2 files what if u have large number of files -
plz help how to organize from notepad or Ini file
chacoya121 replied to chacoya121's topic in AutoIt General Help and Support
read data and organize and count total of each result 0=000308 1=000308 2=000308 3=000308 4=000408 5=000408 6=000408 7=000408 8=000408 9=000408 10=000308 11=000308 12=000308 13=000408 14=000408 15=000408 16=000408 17=000408 18=000408 19=000408 20=000308 21=000308 22=000308 23=000408 24=000408 25=000408 26=000408 27=000408 28=000408 29=000408 30=000308 total = 11x 000308 total = 20x 000408 -
plz help how to organize information from notepad or INIfile Example: 0=000308 1=000308 2=000308 3=000308 4=000408 5=000408 6=000408 7=000408 8=000408 9=000408 10=000308 11=000308 12=000308 13=000408 14=000408 15=000408 16=000408 17=000408 18=000408 19=000408 20=000308 21=000308 22=000308 23=000408 24=000408 25=000408 26=000408 27=000408 28=000408 29=000408 30=000308 0=000308 x 11 total 1=000408 x 20 total 2 lines summary all Thank you
-
Mouseclick in if statement
chacoya121 replied to chacoya121's topic in AutoIt General Help and Support
thank you- 3 replies
-
- mouseclick
- in
-
(and 2 more)
Tagged with:
-
can anyone help me plz how can you put mouseclick in if statement or is it possible example: if Mouseclick = "left" then Tooltip(" you click left mouse") thank you
- 3 replies
-
- mouseclick
- in
-
(and 2 more)
Tagged with: