Jump to content
Macro Express Forums

ikodan

Members
  • Posts

    74
  • Joined

  • Last visited

Everything posted by ikodan

  1. Yes, I asked to the support, and Stan Jones aswered me very fast the same thing.... A fail ! It happened to me sometimes, but this time I not saw it !! Crazy... I spent few hours to debug it... Thank you to you two. And ok for the copy paste. Everytimes I use delays, I check it, but everytime I use "not egal" on repeat, I have this kind of problem, so this time I not checked delays. Strange coincidence, because I done a really big macro, 3000 line codes, 15 parts, config ini file, calibrage system, very stable, dynamic, optimised, I'm not a noob .
  2. Just before the bug (with the TEXT BOX DISPLAY debuger) : %pos_accepter_invitation[1]% = 1218 %pos_accepter_invitation[2]% = 651 %pos_inte_invitation[1]% = 1002 %pos_inte_invitation[2]% = 603 %N[1]% = 16754480 %bleu_invitation% = 16754480 I know it bug exactly at <GET PIXEL COLOR Option="\x01" Rel_To_Screen="TRUE" X="%pos_inte_invitation[1]%" Y="%pos_inte_invitation[2]%" Destination="%N[1]%"/> because the text box just after not displays.
  3. the moment of the bug : <GET PIXEL COLOR Option="\x01" Rel_To_Screen="TRUE" X="%pos_inte_invitation[1]%" Y="%pos_inte_invitation[2]%" Destination="%N[1]%"/> is the moment where %N[1]% become different of %bleu_invitation% (the condition of the repeat). And it bugs.
  4. Interesting idea ! But no, I use T and N for temporary variables, but it's interesting, I try with other name to see... I edit. And I use ME pro. Edit : same problem with other variable name %N[1]% > %temp_int%.
  5. successfully* Hello, For exemple this code is my only problem : <COMMENT Value="Accepte l'invitation."/> <VARIABLE SET INTEGER Option="\x00" Destination="%N[1]%" Value="%bleu_invitation%"/> <REPEAT UNTIL Variable="%N[1]%" Condition="\x01" Value="%bleu_invitation%"/> <MOUSE MOVE Option="\x01" X="%pos_accepter_invitation[1]%" Y="%pos_accepter_invitation[2]%" _PROMPT="0x000A"/> <MOUSE LEFT CLICK/> <COMMENT/> <TEXT BOX DISPLAY Title="débug :" Content="{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang1036{\\fonttbl{\\f0\\fnil\\fcharset0 Tahoma;}}\r\n\\viewkind4\\uc1\\pard\\f0\\fs36 %pos_accepter_invitation[1]%,%pos_accepter_invitation[2]%,%pos_inte_invitation[1]%,%pos_inte_invitation[2]%,%N[1]%,%bleu_invitation%\r\n\\par }\r\n" Left="Left" Top="Bottom" Width="278" Height="300" Monitor="0" OnTop="TRUE" Keep_Focus="TRUE" Mode="\x00" Delay="0"/> <COMMENT/> <DELAY Flags="\x01" Time="500"/> <MOUSE MOVE Option="\x01" X="0" Y="0" _PROMPT="0x000A"/> <DELAY Flags="\x02" Time="500"/> <GET PIXEL COLOR Option="\x01" Rel_To_Screen="TRUE" X="%pos_inte_invitation[1]%" Y="%pos_inte_invitation[2]%" Destination="%N[1]%"/> <COMMENT/> <TEXT BOX DISPLAY Title="débug :" Content="{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang1036{\\fonttbl{\\f0\\fnil\\fcharset0 Tahoma;}}\r\n\\viewkind4\\uc1\\pard\\f0\\fs36 bip.\r\n\\par }\r\n" Left="Left" Top="Bottom" Width="278" Height="300" Monitor="0" OnTop="TRUE" Keep_Focus="TRUE" Mode="\x00" Delay="0"/> <TEXT BOX DISPLAY Title="débug :" Content="{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang1036{\\fonttbl{\\f0\\fnil\\fcharset0 Tahoma;}}\r\n\\viewkind4\\uc1\\pard\\f0\\fs36 %pos_accepter_invitation[1]%,%pos_accepter_invitation[2]%,%pos_inte_invitation[1]%,%pos_inte_invitation[2]%,%N[1]%,%bleu_invitation%\r\n\\par }\r\n" Left="Left" Top="Bottom" Width="278" Height="300" Monitor="0" OnTop="TRUE" Keep_Focus="TRUE" Mode="\x00" Delay="0" _ENABLED="FALSE"/> <COMMENT/> <COMMENT Value="Calibrage debug."/> <VARIABLE SET DECIMAL Option="\x00" Destination="%bug_zone%" Value="1.7"/> <MACRO RUN Use_ID="FALSE" Name="- CALIBRAGE # - auto-debug." ID="-1" Wait="TRUE"/> <END REPEAT/> <VARIABLE SET DECIMAL Option="\x00" Destination="%bug_counter%" Value="0"/> I created 2 debugs to know where is the problem, it's just here : <GET PIXEL COLOR Option="\x01" Rel_To_Screen="TRUE" X="%pos_inte_invitation[1]%" Y="%pos_inte_invitation[2]%" Destination="%N[1]%"/> The macro just gets stuck at this exact moment, all after is not done, and the loops stops, and I don't know what is the problem. I have this only with "not egal" condition.
  6. Curiously now it works. Why you said "But you might want to start a new topic".
  7. Hi, Yeah me too, I have no confiance on "wait %windows% to load", so I done it manualy for each macro and it works perfectly : <REPEAT UNTIL Variable="%fenetre_active%" Condition="\x00" Value="Notepad"/> <WINDOW ACTIVATE Title="Notepad" Exact_Match="TRUE" Wildcards="FALSE" _IGNORE="0x0006"/> <VARIABLE SET STRING Option="\x05" Destination="%fenetre_active%"/> <DELAY Flags="\x02" Time="500"/> <END REPEAT/>
  8. Hello, Several time I needed to do this kind of syntax to dynamize : %variable_a[%variable_b%]%. The [%variable_b%] not seem to work ? I'm on ME pro.
  9. Thank you it's working, but now I have an other problem : Why I can't put a variable on a variable name, like this : %variable%loop%[%n%]% ? It makes my code very more complicated....
  10. Hello, In the multiple choice menu, I have this : A = 1 B = 2 [...] T = 20 saved to variable %nb_ingr% If I save the text, I have "1, 2, 3... 20" but in text format variable (so I can't use it for a "repeat") If I save the "item value", it saves "A, B, C... T" . Anyone have a way, except doing 20 times this : if %nb_ingr% = A :: %nb_ingr_nb% = 1 ? Thank you.
  11. Hello, I can have the current year to text variable, but I don't find the way to have it to decimal...
  12. Hello, I search a way to send packets with a macro-type software. I have the pro licence of ME, and I like very much to dev with it. So, is there a way to send packets (socket) with ME pro ?
  13. Omg it's true, I don't saw it ! Yes for the delay, I done it for the same raisons. For the infinite loop, it's wanted because the macro must do it. No problem, sorry for the variable, I re-read 15 times without seeing it.
  14. Hello, I have this script : <IF WINDOW Option="\x00" Title="%persos[1]%" Partial="FALSE" Wildcards="FALSE"/> <REPEAT UNTIL Variable="%active_window%" Condition="\x00" Value="%perso[2]%"/> <VARIABLE SET STRING Option="\x05" Destination="%active_window%"/> <WINDOW ACTIVATE Title="%persos[2]%" Exact_Match="TRUE" Wildcards="FALSE" _IGNORE="0x0006"/> <END REPEAT/> <ELSE/> If I debug, the first loop, %active_window% <> %perso[2]% the second loop, %active_window% == %perso[2]% But the "repeat until" don't stop ! I do not see where I could make a mistake. (for information, if I use this method, it is because the "<WAIT FOR WINDOW TITLE Title="%persos[2]%" Partial="FALSE" Wildcards="FALSE" Indefinite="TRUE" Hours="0" Minutes="0" Seconds="0"/>" bugs with a succession of 8 windows and small delays between, like 100ms).
  15. When you use your mouse, you always move to a fraction of pixels... Recognizing the elements is already difficult with Macro Express, this becomes impossible if we can not divide by a fraction ... Because of this, over the grid, cell by cell, my cursor leaves the center of the cells ...
  16. Hello, I wan't to detect some elements in a grid of a zone, so I use the pixel color detection, for that I use arrays to generate coordinates where to detect. It works well but I do dynamics macros, then the coordinates are obtained by dividing the width and height of the concerned window. It needs a high precision, because it's a grid so I multiply the first number to obtain all the other cordinates. But I saw that this function can't use decimals : <VARIABLE MODIFY INTEGER Option="\x03" Destination="%cell_decalage[1]%" Value1="%map_x%" Value2="29"/> "29.54" for exemple... Oh wait, I think this is this function that can't use it : <MOUSE MOVE Option="\x03" X="%cells_x_type1[%x_array%]%" Y="%cells_y_type1[%y_array%]%" _PROMPT="0x000A"/> Because the mouse move on "29" if I put "29.54" The two variables underlined are decimals numbers, like 29.54. I use this function above to debug, but in the end, I will use this variable ("29.54") in a : <GET PIXEL COLOR Option="\x01" Rel_To_Screen="TRUE" X="%cells_x_type1[%x_array%]%" Y="%cells_x_type1[%x_array%]%" Destination="%color_type1[%x_array%]%"/> Someone knows how to get this precision ?
  17. I found ! I eliminate the names that I wan't to keep, and put the others into variables, and I start again but this time I remove the new variables on the full name list, it works so I put them in variables that I export for my other macro.
  18. Hi again, Your script is not dynamic. I want it to saves the name list in the order of the clipboard, and not with a previously defined order. And the lines to remove "Tata Titi Toto" can be other ; I want the script deletes all the names that are not in the first list. I search because it's funny, but I think I will not find alone. I learnt <SPLIT STRING Source="%full_uncut_content_clipboard%" SplitChar="%new_line%" Dest="%T%" Index="1"/> It's very good. Now I just need a function to keep only the names in bold, before putting them in T variables (because I need them to be in T1 T2 T3 etc. and not T1 T4 T5 T7 for exemple) : Rufus Maggie Yubie Tata Ned Toto Titi {other random lines} Lily
  19. Hello, I'm not a begginer, I done a lot of very stable macros, but for this problem, I just don't know how to do. :/ rberq I tried pixels etc... Wrong way. Look_Up Wow, interesting way ! I try to understand, thank you ! Cory What is CRLF ? I don't understand.
  20. Hello, I just bought your pro version (N.B from France), excellent tool. I have two problems : 1st : I have a list in clipboard : Maggie Yubie Ned Rufus Lily I wan't to put each line in a variable (Maggie to T1, Yubie to T2...) but I don't find how to do it... 2nd : I have a second list : Rufus Maggie Yubie Tata Ned Toto Titi Lily I wan't to save in variables, only the names of the first list, but in the order of the second list ? Can someone help me please ?
  21. ikodan

    OR

    Hello... I need to do : <TEXTTYPE:x<ENTER>> OR <TEXTTYPE:y<ENTER>> OR <TEXTTYPE:z<ENTER>> Anyone can tell me how please ?
  22. Hello, In Macro Express, I take a randoms values in a file <IVAR2:09:01:5><REP3:05:000001:000001:0009:0:01:> <BTFBEG:001:N00001:000001:R:\@@@Project\Name.txt><BTFEND> <ACTIVATE2:Notepad><TEXTTYPE:%T1%<ENTER>> <ENDREP> But I wan't that the values are never the sames, in order to put each on different variables... how to do? Thx.
×
×
  • Create New...