Je n'arrive pas a sortir d'une boucle que j'ai crée avec mon programme
La logique serait :
Étape 1 : mise en place du bureau pour l’exécution du programme
Étape 2 : Boucle pour la création du profil 1
Étape 3 : Mise en place des actions que je veux reproduire dans chaque boucle, je sors ensuite de la page et je me remet sur l'écran d’accueil
Étape 4 : Je crée une boucle profil2, je me positionne correctement et je lance la boucle action
Étape 5 : idem boucle profil 3
Étape 6 : idem boucle profil 4, 5, 6, 7, 8, 9.
Étape 7 : Je décale le curseur pour scroller vers le bas, et je relance les opérations précédentes.
les données que mon programme va récupérer il les colle dans un fichier excel.
Mon problème avec mon code est que je reste bloquer dans la boucle du profil 2, n'arrivant pas a la boucle du profil 3 car je ne comprend pas bien comment définir la fin de la boucle action ainsi que celle de profil1.
Voici mon code :
Code : Tout sélectionner
LangEditor=Pascal.OtherLangEditor
Ms(281,707,Direct,ImgRef27);
clk(Left click);
break(00:00:01);
Ms(124,205,Direct,ImgRef28);
clk(Left click);
Ms(525,697,Direct,ImgRef0);
//Positionne curseur excel
//ATTENTION firefox 100 ouvert
clk(Left click);
break(00:00:02);
//Se positionne sur firefox
label(Debut_profil1);
Ms(422,211,Direct,ImgRef2);
clk(Right click);
break(00:00:01);
Ms(473,219,Direct,ImgRef29);
clk(Left click);
Ms(305,41,Direct,ImgRef4);
break(00:00:01);
clk(Left click);
//Ouvre le profil1 en new tab et clic dessus
label(Debut_DATA);
//Debut de la boucle recuperation de donnee DATA
Ms(505,84,Direct,ImgRef5);
break(00:00:02);
clk(Left Down);
Ms(715,79,Direct,);
clk(Left Up);
break(00:00:01);
KbSpl(Ctrl,C);
Ms(272,703,Direct,ImgRef6);
clk(Left click);
//Copie les donnees
break(00:00:01);
Ms(105,207,Direct,ImgRef7);
KbSpl(Ctrl,V);
break(00:00:01);
//Le colle dans excel
Ms(527,699,Direct,ImgRef8);
clk(Left click);
break(00:00:01);
Ms(476,307,Direct,ImgRef9);
clk(Left Down);
Ms(512,305,Direct,ImgRef10);
clk(Left Up);
break(00:00:01);
//Selectionne puis copie
KbSpl(Ctrl,C);
Ms(275,708,Direct,ImgRef11);
clk(Left click);
break(00:00:01);
KbSpl(Right);
break(00:00:01);
KbSpl(Ctrl,V);
//Les colle dans excel
break(00:00:01);
Ms(526,704,Direct,ImgRef12);
clk(Left click);
break(00:00:01);
Ms(612,307,Direct,ImgRef13);
clk(Left Down);
Ms(674,305,Direct,ImgRef14);
clk(Left Up);
break(00:00:01);
KbSpl(Ctrl,C);
//Selectionne puis copie
Ms(270,702,Direct,ImgRef15);
clk(Left click);
break(00:00:01);
KbSpl(Right);
KbSpl(Ctrl,V);
break(00:00:01);
//Les colle dans excel
Ms(533,694,Direct,ImgRef16);
clk(Left click);
break(00:00:01);
Ms(765,307,Direct,ImgRef17);
clk(Left Down);
Ms(799,312,Direct,ImgRef17);
clk(Left Up);
break(00:00:01);
KbSpl(Ctrl,C);
Ms(277,711,Direct,ImgRef19);
clk(Left click);
break(00:00:01);
KbSpl(Right);
KbSpl(Ctrl,V);
break(00:00:01);
KbSpl(Down);
KbSpl(Left);
KbSpl(Left);
KbSpl(Left);
break(00:00:01);
Ms(534,704,Direct,ImgRef20);
clk(Left click);
break(00:00:01);
Ms(433,43,Direct,ImgRef21);
clk(Left click);
break(00:00:01);
//Fin boucle recuperation donnee DATA
label(Fin_Profil1);
label(Debut_Profil2);
Ms(108,42,Direct,ImgRef22);
clk(Left click);
//Se positionne sur Profil 2
break(00:00:01);
Ms(401,262,Direct,ImgRef23);
clk(Right click);
Ms(466,274,Direct,ImgRef25);
clk(Left click);
Ms(459,275,Direct,ImgRef24);
break(00:00:01);
Ms(310,37,Direct,ImgRef26);
clk(Left click);
//Va sur l'onglet firefox profil_2
break(00:00:03);
goto(Debut_DATA);
goto(Debut_profil3);
label(Fin_Profil2);
Ms(98,40,Direct);
break(00:00:10);
label(Debut_profil3);
Ms(409,313,Direct,ImgRef0);
break(00:00:01);
clk(Right click);
Ms(472,322,Direct,ImgRef1);
clk(Left click);