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

Seeker (1/7)
0
Reputation
-
thanks genius257 yes it works thanks also to @junkew
-
Majedz reacted to a post in a topic: count if color
-
thanks genius257 it works, results: Red: 19 Blue: 8; but some adjustment is needed since 19 is the totall of red+blue ; 8 is blue
-
Majedz reacted to a post in a topic: count if color
-
Majedz reacted to a post in a topic: count if color
-
thanks junkew for your help, I usually like using for next loop; results are :24225blue24225blue24225blue24225blue24225blue24225blue24225blue14170419red24225blue14170419red24225blue24225blue24225blue24225blue24225blue24225blue24225blue14170419red24225blue so how to count blue and red??
-
Sorry Jos; may be I have comuncation problm english is not my first laguge, so if you look at the attached file it may be easir, I have one topic is it possble to count in each line of the coulmn thee red color, Thancks in advance
-
dear Autoit forum; I have only two colors in column 1; $color1=14170419 ;"red"; and $color1=24225 ;"blue" For $L=1 to 19 $yLine=280+($L*20); the Y coordination of the first line is 300; so 300-20 is 280 MouseMove(28,$yLine); local $color1=PixelGetColor(28,$yLine) $color1=14170419 ;"red" $color1=24225 ;"blue" next I need to count red and blue Lines in this column using the loop; I couldn't do that; Any advice, help is highly appreciated
-
The maine part of problm was solved, I will present the part that I couldnt solve in a new post in a clear way
-
hi to all; I have 2 loops; loop(1) go through a table line by line (max number of lines is 23; using for $i=1 to 23); distance between each line is 20; I am concerned in 3 columns of my table; Loop2 repeat loop (1) 100 time (using For $r=1 to 100) I use the following to go through lines of table (Loop1) depending on column 3 for $L=1 to 23; $L=Line number A)) Column 3 contain 3 color possibilities 1=red; 2=black; 3=white; X coordinate=871 $yLine=280+($L*20); the Y coordination of the first line is 300; so 300-20 is 280 MouseMove(871,$yLine) ; X coordinate of coulmn3=871 local $color3=PixelGetColor(871,$yLine); if $color3=6684730 or $color3=6160437 then ; if color is black do function1 function1() endif if $color3=16777215 or $color3=13143889 then ; the $color3=white; no data in line MsgBox("","You reach the last line","Exit For $i Loop start from $i=1",2); must exit Loop1 and start new round ContinueLoop(2);????? EndIf if $color3=16711738 or $color=16252981 then ;$color3 is red; go to coulmn2 MsgBox("","Color 3 is","Red",1);must skip line to the next without exiting loop1(lines) ContinueLoop(1); ??? not sure is it this code necessary EndIf B)) Column 2 contain 3 color possibilities 1=black; 2=white; 3=grey; X coordinate=660 Action1: is taken (function 1() ) only if color in column 3 is black and in column 2 is also black Action2: is taken (function 2() ) only if color in column 3 is black and in column 2 is white or grey MouseMove(660,$yLine); local $color2=PixelGetColor(660,$yLine); if $color2=6684730 or $color2=6160437 then MsgBox("","Color 2 s","Black",1); ((if $color3=" Black " And $color2=" Black" then function1() )) ((if $color3="Black" And ($color2="White" or $color2="grey") then function2() )) I am not sure that the last 2 lines are O.K!! C)) Column 1 have 2 possibilities 1=red; 2=blue; X coordinate=28; I need to count how many lines are red, and how many are , this column using the loop MouseMove(28,$yLine); local $color1=PixelGetColor(28,$yLine) if $color1=14170419 then $Type="Sell" ;color1="red" if $color1=24225 then $Type="buy" ;$coler1="green" I need to count red and blue Lines in this column using the loop; I couldn't do that; Any advice, help is highly appreciated
-
Majedz reacted to a post in a topic: For Next Loop
-
Thanks again Melba23, for your kind reply, for sure its very helpful for me, since English is not my mother language I will summarize what I am doing and return back, looking for your help.
-
Majedz reacted to a post in a topic: min/max - (Moved)
-
Majedz reacted to a post in a topic: For Next Loop
-
Thanks Melba23, for your reply, I have to try it and practice more, can I retrieve result values of iteration number 48, 45, 43…… for example
-
For $i=1 to 50 $result Sleep(200) Next Is their a way to compare the $result in iteration number 50 with the $result in iteration number 49 and 48,47 ; I mean if the $result in iteration number 50> or < than previous values Thanks, in advance
-
Thanks Musashi solved
-
my problem Melba23 is I don’t know how to put my variables (values) into an array ; it works without using array, but very long (bad code), First step in my work (is done, no problems) I am reading 11 low and high values, from specified location of screen, by moving the mouse on a graph and reading High/Low data (using PixelChecksum function OCR /Copied and modified from an old post in this forum, and working well) the result is reading Low/ high values : $L0,$L1,$L2, ,$L3……,$L10 and SH0,$H1, $H2, ,$H3,…… ,$H10 Second step: is manipulating low/high data to get for example the min of the 11 Lows or max of highs….etc I go through help files regarding arrays but I am missing something, how to contract the 11 lows, 11 highs and Low variables array, any help is highly appreciated
-
Sorry Melba23 it was my mistake
-
hi, any short version for to chثck if $L0 or $L1 is min: If $L0=$L0 and $L0<$L1 and $L0<$L2 and $L0<$L3 and $L0<$L4 and $L0<$L5 and $L0<$L6 and $L0<$L7 and $L0<$L8 and $L0<$L9 and $L0<$L10 Then MsgBox("", "L0 is min",$L0,5) If $L1<$L0 and $L1=$L1 and $L1<$L2 and $L1<$L3 and $L1<$L4 and $L1<$L5 and $L1<$L6 and $L1<$L7 and $L1<$L8 and $L1<$L9 and $L1<$L10 Then MsgBox("", "L1 is min",$L1,5)