dimanche 10 mars 2024

autoIt - exemple

 #cs ----------------------------------------------------------------------------


 AutoIt Version: 3.3.14.5



#ce ----------------------------------------------------------------------------


; Script Start - Add your code below here


#cs -----------------

Local $aPos = MouseGetPos()

MsgBox(0, "Mouse x, y:", $aPos[0] & ", " & $aPos[1])


Local $Mouse1_x =  $aPos[0]

Local $Mouse1_y =  $aPos[1]


#ce -----------

#include <GUIConstantsEx.au3>

#include <WindowsConstants.au3>

#Include <Misc.au3>

;#include <ImageSearchEasy.au3>



HotKeySet("{ESC}", "MyExit")

CreateWindows()


; Vi tri ban hang tren ban do nho : 1879 , 1000

;Vi tri mo ban hang: 1122, 740


Func CreateWindows()

    ; Crée une interface graphique avec un contrôle bouton

    Global $main = GUICreate("rage_mage",280, 250)

    WinSetOnTop($main, "", 1)

    Local $idOK = GUICtrlCreateButton("Close", 90, 120, 50, 25)

    Local $idMousePos = GUICtrlCreateButton("Mouse Pos", 5, 120, 80, 25)


   Local $idRune = GUICtrlCreateButton("auto", 5, 90, 85, 25)

   ;Local $idRune2 = GUICtrlCreateButton("auto elite", 95, 90, 85, 25)




    ; Affiche l'interface graphique.

    GUISetState(@SW_SHOW, $main)

    ; Boucle jusqu'à ce que l'utilisateur quitte.

       While 1

        Switch GUIGetMsg()

            Case $GUI_EVENT_CLOSE, $idOK

                ExitLoop


            Case $idRune

               Sleep(1000)

   Local $arr[25]

   $arr[0] = "https://ydepdeploihayhay.blogspot.com/2023/12/autoit-auto-click.html"

   $arr[1] ="https://ydepdeploihayhay.blogspot.com/2024/03/faire-un-detox-la-maison.html"

   $arr[2] ="https://ydepdeploihayhay.blogspot.com/2024/03/cac-buoc-e-tu-detox-tai-nha.html"

   $arr[3] ="https://ydepdeploihayhay.blogspot.com/2024/03/mot-so-loi-khuyen-e-giam-can-hieu-qua.html"

   $arr[4] ="https://ydepdeploihayhay.blogspot.com/2024/03/5-loi-khuyen-cho-nam-gioi-e-giam-mo-bung.html"

   $arr[5] ="https://ydepdeploihayhay.blogspot.com/2024/03/6-ly-do-ban-khong-giam-mo-bung-va-cach.html"

   $arr[6] ="https://ydepdeploihayhay.blogspot.com/2024/03/nen-tap-duc-trong-bao-nhieu-lau-e-giam.html"

   $arr[7] ="https://ydepdeploihayhay.blogspot.com/2024/03/bua-sang-nen-gi.html"

   $arr[8] ="https://ydepdeploihayhay.blogspot.com/2024/03/can-biet-e-su-dung-may-chay-bo-toan-khi.html"

   $arr[9] ="https://ydepdeploihayhay.blogspot.com/2024/03/nhung-su-that-van-bi-hieu-lam-ve-nguyen.html"

   

   $arr[10] ="https://ydepdeploihayhay.blogspot.com/2024/03/raisons-pour-lesquelles-quelquun.html"

   $arr[11] ="https://ydepdeploihayhay.blogspot.com/2024/03/criteres-importants-de-prestataire-de.html"

   $arr[12] ="https://ydepdeploihayhay.blogspot.com/2024/03/quelques-conseils-pour-perdre-du-poids.html"

   $arr[13] ="https://ydepdeploihayhay.blogspot.com/2024/03/mot-nua-dan-so-gioi-co-bi-can-thi-neu-o.html"

   $arr[14] ="https://ydepdeploihayhay.blogspot.com/2024/03/hinh-dang-co-quyet-inh-tuoi-tho.html"

   $arr[15] ="https://ydepdeploihayhay.blogspot.com/2024/03/c-static.html"

   $arr[16] ="https://ydepdeploihayhay.blogspot.com/2024/03/aws-amazon-web-services.html"

   $arr[17] ="https://ydepdeploihayhay.blogspot.com/2024/03/jenkins.html"

   $arr[18] ="https://ydepdeploihayhay.blogspot.com/2024/03/docker.html"

   $arr[19] ="https://ydepdeploihayhay.blogspot.com/2024/03/multi-threading.html"

   $arr[20] ="https://ydepdeploihayhay.blogspot.com/2024/03/value-reference-type.html"

   $arr[21] ="https://ydepdeploihayhay.blogspot.com/2021/09/huong-dan-cach-tu-thanh-loc-co-co-ban.html"

   $arr[22] ="https://ydepdeploihayhay.blogspot.com/2023/09/top-9-tac-dung-cua-vo-qua-luu-oi-voi.html"

   $arr[23] ="https://ydepdeploihayhay.blogspot.com/2023/09/sai-lam-thuong-gap-cua-nguoi-benh-tieu.html"

   $arr[24] ="https://ydepdeploihayhay.blogspot.com/2023/09/cach-so-cuu-nguoi-bi-ngat-khoi-khoi-am.html"

   

   $i12 = 0

   While $i12 < 10    

Sleep(2000)

ClearCookies()

   

$il = 0

While $il < 25

GUICtrlCreateLabel("auto: " & $il, 5, 5, 150, 20)

Sleep(1000)

  

MouseClick("left", 238, 18, 1,5)       ; open 2nd windows           

Sleep(1000)

MouseClick("left", 207, 20, 1,5)       ; close first windows           

Sleep(1000)

MouseClick("left", 333, 66, 1,5)       ; go to url position        

Sleep(1000)

Send($arr[$il])

Sleep(3000)

Send("{ENTER}")

Sleep(10000)

MouseMove(608,266)

Sleep(400)

MouseWheel("down",5)

Sleep(400)

MouseWheel("down",5)

  

Sleep(20000)

$il = $il + 1

WEnd

$i12 = $i12+1

WEnd


            Case $idMousePos

                ; Run getMousePosition

                Local $mPos = getMousePosition()

                Local $tmp3 = "Mouse x: " & $mPos[0] & ", Mouse y: " & $mPos[1]

                GUICtrlCreateLabel($tmp3, 5, 5, 300, 20) ;message, column, row, width, heigh

        EndSwitch

     WEnd



    ; Supprime la GUI précédente et tous les contrôles.

    GUIDelete($main)

 EndFunc   ;==>CreateWindows



Func getMousePosition()

    Local $x = 1, $pos

    While $x = 1 ; Loop until the mouse is clicked.

            if _IsPressed("01") then ; If left mouse is pushed.

                $pos = MouseGetPos() ; Record the position.

                $x = 0 ; Change x to end loop.

            EndIf

    WEnd

    Return $pos

 EndFunc;==>getMousePosition


Func ClearCookies()

Sleep(1000)

MouseClick("left", 24, 703, 1,5)       ; open Setting           

Sleep(2000)

MouseClick("left", 207, 20, 1,5)       ; close first windows           

Sleep(1000)

MouseClick("left", 143, 284, 1,5)       ; open privecy           

Sleep(1000)

MouseClick("left", 526, 276, 1,5)       ; clear      

Sleep(1000)

MouseClick("left", 990, 671, 1,5)       ; clear      

Sleep(1000)

EndFunc


Func MyExit()

  Exit

EndFunc


AI Girls, AI Beauties, AI Art 4K 8K



#cs ----------------------------------------------------------------------------


 AutoIt Version: 3.3.14.5



#ce ----------------------------------------------------------------------------


; Script Start - Add your code below here


#cs -----------------

Local $aPos = MouseGetPos()

MsgBox(0, "Mouse x, y:", $aPos[0] & ", " & $aPos[1])


Local $Mouse1_x =  $aPos[0]

Local $Mouse1_y =  $aPos[1]


#ce -----------

#include <GUIConstantsEx.au3>

#include <WindowsConstants.au3>

#Include <Misc.au3>

;#include <ImageSearchEasy.au3>



HotKeySet("{ESC}", "MyExit")

CreateWindows()


; Vi tri ban hang tren ban do nho : 1879 , 1000

;Vi tri mo ban hang: 1122, 740


Func CreateWindows()

    ; Crée une interface graphique avec un contrôle bouton

    Global $main = GUICreate("rage_mage",280, 250)

    WinSetOnTop($main, "", 1)

    Local $idOK = GUICtrlCreateButton("Close", 90, 120, 50, 25)

    Local $idMousePos = GUICtrlCreateButton("Mouse Pos", 5, 120, 80, 25)


   Local $idRune = GUICtrlCreateButton("auto", 5, 90, 85, 25)

   ;Local $idRune2 = GUICtrlCreateButton("auto elite", 95, 90, 85, 25)




    ; Affiche l'interface graphique.

    GUISetState(@SW_SHOW, $main)

    ; Boucle jusqu'à ce que l'utilisateur quitte.

       While 1

        Switch GUIGetMsg()

            Case $GUI_EVENT_CLOSE, $idOK

                ExitLoop


            Case $idRune

               Sleep(1000)

   Local $arr[200]

   $arr[0] = "https://ydepdeploihayhay.blogspot.com/2023/12/autoit-auto-click.html"

   $arr[1] ="https://ydepdeploihayhay.blogspot.com/2024/03/faire-un-detox-la-maison.html"

   $arr[2] ="https://ydepdeploihayhay.blogspot.com/2024/03/cac-buoc-e-tu-detox-tai-nha.html"

   $arr[3] ="https://ydepdeploihayhay.blogspot.com/2024/03/mot-so-loi-khuyen-e-giam-can-hieu-qua.html"

   $arr[4] ="https://ydepdeploihayhay.blogspot.com/2024/03/5-loi-khuyen-cho-nam-gioi-e-giam-mo-bung.html"

   $arr[5] ="https://ydepdeploihayhay.blogspot.com/2024/03/6-ly-do-ban-khong-giam-mo-bung-va-cach.html"

   $arr[6] ="https://ydepdeploihayhay.blogspot.com/2024/03/nen-tap-duc-trong-bao-nhieu-lau-e-giam.html"

   $arr[7] ="https://ydepdeploihayhay.blogspot.com/2024/03/bua-sang-nen-gi.html"

   $arr[8] ="https://ydepdeploihayhay.blogspot.com/2024/03/can-biet-e-su-dung-may-chay-bo-toan-khi.html"

   $arr[9] ="https://ydepdeploihayhay.blogspot.com/2024/03/nhung-su-that-van-bi-hieu-lam-ve-nguyen.html"    

   $arr[10] ="https://ydepdeploihayhay.blogspot.com/2024/03/raisons-pour-lesquelles-quelquun.html"

   $arr[11] ="https://ydepdeploihayhay.blogspot.com/2024/03/criteres-importants-de-prestataire-de.html"

   $arr[12] ="https://ydepdeploihayhay.blogspot.com/2024/03/quelques-conseils-pour-perdre-du-poids.html"

   $arr[13] ="https://ydepdeploihayhay.blogspot.com/2024/03/mot-nua-dan-so-gioi-co-bi-can-thi-neu-o.html"

   $arr[14] ="https://ydepdeploihayhay.blogspot.com/2024/03/hinh-dang-co-quyet-inh-tuoi-tho.html"

   $arr[15] ="https://ydepdeploihayhay.blogspot.com/2024/03/c-static.html"

   $arr[16] ="https://ydepdeploihayhay.blogspot.com/2024/03/aws-amazon-web-services.html"

   $arr[17] ="https://ydepdeploihayhay.blogspot.com/2024/03/jenkins.html"

   $arr[18] ="https://ydepdeploihayhay.blogspot.com/2024/03/docker.html"

   $arr[19] ="https://ydepdeploihayhay.blogspot.com/2024/03/multi-threading.html"

   $arr[20] ="https://ydepdeploihayhay.blogspot.com/2024/03/value-reference-type.html"

   $arr[21] ="https://ydepdeploihayhay.blogspot.com/2021/09/huong-dan-cach-tu-thanh-loc-co-co-ban.html"

   $arr[22] ="https://ydepdeploihayhay.blogspot.com/2023/09/top-9-tac-dung-cua-vo-qua-luu-oi-voi.html"

   $arr[23] ="https://ydepdeploihayhay.blogspot.com/2023/09/sai-lam-thuong-gap-cua-nguoi-benh-tieu.html"

   $arr[24] ="https://ydepdeploihayhay.blogspot.com/2023/09/cach-so-cuu-nguoi-bi-ngat-khoi-khoi-am.html"

   $arr[25]="https://ydepdeploihayhay.blogspot.com/2024/03/tu-vi-12-cung-hoang-ao-thang-32024.html"

   $arr[26]="https://ydepdeploihayhay.blogspot.com/2024/03/tu-vi-tuoi-quy-hoi-2024-nam.html"

   $arr[27]="https://ydepdeploihayhay.blogspot.com/2024/03/autoit-exemple.html"

   $arr[28]="https://ydepdeploihayhay.blogspot.com/2022/03/5-khong-trach-6-khong-mang.html"

   $arr[29]="https://ydepdeploihayhay.blogspot.com/2021/10/nguyen-nhan-moi-nam-cac-nam-chinh-cua.html"

   $arr[30]="https://ydepdeploihayhay.blogspot.com/2021/07/chanh-sa-gung.html"

   $arr[31]="https://ydepdeploihayhay.blogspot.com/2021/04/gao-lut.html"

   $arr[32]="https://ydepdeploihayhay.blogspot.com/2021/03/36-tu-the.html"

   $arr[33]="https://ydepdeploihayhay.blogspot.com/2020/02/nhan-loai-va-nguon-goc-dich-benh.html"

   $arr[34]="https://ydepdeploihayhay.blogspot.com/2022/06/stepn-ban-nang-cap-cua-play-to-earn-hay.html"

   $arr[35]="https://ydepdeploihayhay.blogspot.com/2023/06/loi-ich-bat-ngo-cua-au-bap-nhan-sam.html"

$arr[36]="https://ydepdeploihayhay.blogspot.com/2024/03/tu-tin-la-phao-ai-noi-tam-vung-chac-cho.html"

$arr[37]="https://ydepdeploihayhay.blogspot.com/2024/03/cuoc-song-khong-con-nhiet-huyet-3-cach.html"

$arr[38]="https://ydepdeploihayhay.blogspot.com/2024/03/cuoc-song-la-mot-qua-trinh-song-ngay.html"

$arr[39]="https://ydepdeploihayhay.blogspot.com/2024/03/ai-girls.html"

$arr[40]="https://ydepdeploihayhay.blogspot.com/2024/03/nhung-cay-trong-trong-nha-tot-cho-suc.html"

$arr[41]="https://ydepdeploihayhay.blogspot.com/2024/03/rau-va-nhung-loai-trai-cay-it-uong-tot.html"

$arr[42]="https://ydepdeploihayhay.blogspot.com/2024/03/top-10-loai-qua-it-uong-giup-chi-em.html"

$arr[43]="https://ydepdeploihayhay.blogspot.com/2024/03/loai-qua-co-vi-chua-ngot-tot-ngang.html"

$arr[44]="https://ydepdeploihayhay.blogspot.com/2024/03/ai-girls_12.html"

   

   $i12 = 1

   While $i12 < 100    

Sleep(2000)

ClearCookies()

   

$il = 1

While $il < 21

GUICtrlCreateLabel("loop: " & $i12 & ",  "  & $il, 5, 5, 150, 20)

Sleep(1000)

Local $rand = Random(0,44)

  

MouseClick("left", 238, 18, 1,5)       ; open 2nd windows           

Sleep(1000)

MouseClick("left", 207, 20, 1,5)       ; close first windows           

Sleep(1000)

MouseClick("left", 333, 66, 1,5)       ; go to url position        

Sleep(1000)

Send($arr[$rand])

Sleep(3000)

Send("{ENTER}")

Sleep(10000)

MouseMove(608,266)

Sleep(400)

MouseWheel("down",5)

Sleep(907)

MouseWheel("down",5)

Sleep(1111)

MouseWheel("down",5)

Sleep(580)

MouseWheel("down",5)

Sleep(1102)

MouseWheel("down",5)

Sleep(690)

MouseWheel("down",5)

Sleep(1101)

MouseWheel("down",5)

Sleep(780)

MouseWheel("down",5)

Sleep(780)

MouseWheel("up",5)

Sleep(409)

MouseWheel("down",5)

Sleep(908)

MouseWheel("down",5)

Sleep(1020)

MouseWheel("down",5)

Sleep(808)

MouseWheel("down",5)

Sleep(1100)

MouseWheel("down",5)

Sleep(1100)

MouseWheel("up",5)

Sleep(890)

MouseWheel("down",5)

Sleep(970)

MouseWheel("down",5)

Sleep(890)

MouseWheel("down",5)

Sleep(850)

MouseWheel("down",5)

Sleep(1010)

MouseWheel("down",5)

Sleep(850)

MouseWheel("down",5)

Sleep(853)

MouseWheel("down",5)

Sleep(855)

MouseWheel("down",5)

Sleep(857)

MouseWheel("down",5)

Sleep(951)

MouseWheel("down",5)

Sleep(961)

MouseWheel("down",5)

Sleep(931)

MouseWheel("down",5)

Sleep(451)

MouseWheel("down",5)

Sleep(1120)

MouseWheel("up",5)

Sleep(1130)

MouseWheel("up",5)

Sleep(1135)

MouseWheel("down",5)

Sleep(1127)

MouseWheel("up",5)

Sleep(1171)

MouseWheel("down",5)

Sleep(1117)

MouseWheel("up",5)

Sleep(870)

MouseWheel("down",5)

Sleep(807)

MouseWheel("up",5)

Sleep(1170)

MouseWheel("down",5)

Sleep(907)

MouseWheel("up",5)

Sleep(1172)

MouseWheel("down",5)

Sleep(1007)

MouseWheel("up",5)

Sleep(1070)

MouseWheel("down",5)

Sleep(872)

MouseWheel("down",5)

Sleep(772)

MouseWheel("down",5)

Sleep(672)

MouseWheel("down",5)

Sleep(972)

MouseWheel("down",5)

Sleep(572)

MouseWheel("up",9)

Sleep(372)

MouseWheel("up",9)

Sleep(372)

MouseWheel("up",9)

Sleep(372)

MouseWheel("up",9)

Sleep(372)

MouseWheel("up",9)

Sleep(372)

MouseWheel("up",9)

Sleep(372)

MouseWheel("up",9)

Sleep(372)

MouseWheel("up",9)

Sleep(372)

MouseWheel("up",9)

Sleep(372)

MouseWheel("up",9)

Sleep(372)

MouseWheel("up",9)

Sleep(372)

MouseWheel("up",15)

Sleep(372)

MouseWheel("up",12)

Sleep(372)

MouseWheel("up",9)

Local $rSleep1 = Random (190, 390)

Sleep($rSleep1*10)

MouseClick("left", 355, 198, 1,5)       ; go to home   

Sleep(1372)

MouseWheel("down",11)

Sleep(372)

MouseWheel("down",10)

Local $rSleep = Random (600, 900)

  

Sleep($rSleep * 10)

$il = $il + 1

WEnd

$i12 = $i12+1

WEnd


            Case $idMousePos

                ; Run getMousePosition

                Local $mPos = getMousePosition()

                Local $tmp3 = "Mouse x: " & $mPos[0] & ", Mouse y: " & $mPos[1]

                GUICtrlCreateLabel($tmp3, 5, 5, 300, 20) ;message, column, row, width, heigh

        EndSwitch

     WEnd



    ; Supprime la GUI précédente et tous les contrôles.

    GUIDelete($main)

 EndFunc   ;==>CreateWindows



Func getMousePosition()

    Local $x = 1, $pos

    While $x = 1 ; Loop until the mouse is clicked.

            if _IsPressed("01") then ; If left mouse is pushed.

                $pos = MouseGetPos() ; Record the position.

                $x = 0 ; Change x to end loop.

            EndIf

    WEnd

    Return $pos

 EndFunc;==>getMousePosition


Func ClearCookies()

Sleep(1000)

MouseClick("left", 24, 703, 1,5)       ; open Setting           

Sleep(2000)

MouseClick("left", 207, 20, 1,5)       ; close first windows           

Sleep(1000)

MouseClick("left", 139, 253, 1,5)       ; open privecy           

Sleep(1000)

MouseClick("left", 526, 245, 1,5)       ; clear      

Sleep(1000)

MouseClick("left", 990, 655, 1,5)       ; clear      

Sleep(1000)

EndFunc


Func MyExit()

  Exit

EndFunc

AI Girls, AI Beauties, AI Art 4K 8K

AI Girls, AI Beauties, AI Art 4K 8K

AI Girls, AI Beauties, AI Art 4K 8K

AI Girls, AI Beauties, AI Art 4K 8K

AI Girls, AI Beauties, AI Art 4K 8K

AI Girls, AI Beauties, AI Art 4K 8K

AI Girls, AI Beauties, AI Art 4K 8K

AI Girls, AI Beauties, AI Art 4K 8K

AI Girls, AI Beauties, AI Art 4K 8K

Aucun commentaire:

Enregistrer un commentaire