Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with my codes.
#1
So first of all thank you for reading this and very much thank you if you can help me work this out.
So basically I would like to run this macro which is working. BUT i would like to repeat this in a certain time but I don't know how. For example ( or this is what I am really asking ) IE. I run the code and would like this to repeat after 35 minutes. Or it repeats every 35 minutes. How can I do that?

Code:
Select All      Help
opt save; opt slowkeys; spe 100
int w1=act(win("CABAL" "D3D Window"))
    rep 300
    'o; 2.40        ;; O
int w=win("CABAL" "D3D Window")
    scan "image:h0331299E" w 0 1|2|16
    wait 5
    int w2=act(win("CABAL" "D3D Window"))
    lef 418 313 w2 1; 3.34 ;; 'CABAL', "~:D88A01F6"
    int w3=win("CABAL" "D3D Window")
    scan "image:h2058B7E9" w3 0 1|2|16
    wait 5
    int w4=act(win("CABAL" "D3D Window"))
    lef 415 402 w4 1; 3.06 ;; 'CABAL', "~:E114884C"
    int w5=win("CABAL" "D3D Window")
    scan "image:h46EC1868" w5 0 1|2|16
    wait 5
    int w6=act(win("CABAL" "D3D Window"))
    lef 353 588 w6 1; 6.63 ;; 'CABAL', "~:2619D387"
    int w7=win("CABAL" "D3D Window")
    scan "image:h2849C9E0" w7 0 1|2|16
    wait 5
    int w8=act(win("CABAL" "D3D Window"))
    lef 639 578 w8 1; 0.77 ;; 'CABAL', "~:7E9E2180"
    mou ".@aw20a@w5420baw10a@w11caw10caw11baw10faw11hbw10h@w12gbw10faw11g@w10aaw11caw10a@w11c@w10cbw12daw10eaw11ecw10dbw11caw10cbw11caw10bbw12aaw10a@w11aaw20aaw21aaw11a@w10c@w12bbw10cbw11b@w10a@w11bbw11baw10b@w12a@w10b@w11baw10a@w11a@w10a@w11bbw10c@w12b@w10caw11@aw10a@w11bbw30a@w51a@w40a@w50a@w100@aw20a@w10@aw12b@w10@aw21a@w10bbw11a@w10@aw11a@w20aaw523"
    lef 488 525 w8 1; 1.66 ;; 'CABAL', "~:30744188"
    int w9=act(win("CABAL" "D3D Window"))
    'm; 2.11        ;; M
    mou 450 434 w9 1; 0.01
    mou ".@iw11@kw10@hw12@gw10@dw11@ew10@cw11@aw10@bw11@bw10@cw12@dw10@dw11@dw10@fw11Adw11@dw10Afw12@dw10Aew11@dw10Bew11@cw10@bw11@aw139Aaw11A@w10A@w12A@w10A@w11Bbw21Aaw11Aaw22Aaw395A@w11A@w10Aaw21@aw30A@w10A@w11Aaw2317"
    lef 471 314 w9 1; 3.42 ;; 'CABAL', "~:A088D865"
    mou ".AAw60@Aw110BBw10@Aw11CDw10CCw11DFw10DHw13DGFHw12CFw10ADw11BDw10ADw11CEw10EFw11DFw10EGw12FFw10EIw11ACw10BFw11CEw10ACw11ADw10@Cw12AEw10BEw11AFw10CIw11@Hw11@Hw10@Fw12@Ew10@Ew11@Fw10@Ew11@Ew10@Gw11@Fw10@Ew12@Fw10@Cw11@Dw10@Bw11cEw10bDw11dFw10@Cw12bCw10@Aw11bCw819Aaw11CBw10A@w11BBw21@Bw10@Cw32@Aw40@Aw11aAw30a@w41a@w10aAw11@Bw10cBw12@Aw10aAw11bCw10aAw11aBw20aBw228a@w41b@w30aaw179"
    lef 525 592 w9 1; 0.14 ;; 'CABAL', "~:185E71FE"
    mou ".baw21baw10b@w11a@w11baw10aaw12a@w10bbw11aaw10aaw11baw21b@w10b@w12@aw11b@w20a@w11b@w21a@w10a@w12b@w21b@w10a@w21baw10a@w11b@w10baw12cbw10baw11baw10daw11aaw10aaw21a@w71baw20aaw11aaw10@aw12aaw30@aw21@bw20@cw11@aw10@dw11Bbw10Aaw12@aw10@aw11A@w45B@C@w10D@w11B@w10B@w68C@C@w11C@w10DBw11C@w10B@w11@Aw50A@w10B@w12A@w11B@w21A@w50B@w21AAw30AAw10A@w12A@w21AAw41A@w11@Aw20B@w20@Aw119A@w31@Aw198A@w20A@w21AAw198A@w21AAw30AAw21A@w50A@w11A@w10A@w72A@w177A@w60A@w11A@w20AAw12A@w78AAw40A@w100A@w40AAw849"
    lef 539 567 w9 1; 0.46 ;; 'CABAL', "~:255D4C65"
    mou ".a@@Aw226@Aw41aAw90a@w10a@w22a@w11a@w10a@w21b@w21a@w10cAw12aAw10a@w287@Aw414a@w21aAw365"
    lef+ 522 574 w9 1; 0.56 ;; 'CABAL', "~:E1835681"
    lef- 521 575 w9 1; 0.01
    mou ".aAw41a@w12bAw10a@w11b@w10a@w11b@w10baw11caw10c@w12aaw10b@w11a@w50a@w1430a@w10a@w11a@w60@Aw40a@w10a@w11a@w10a@w12b@w41b@w21aAw10@Aw11a@w30aAw109"
    lef 484 578 w9 1; 1.99 ;; 'CABAL', "~:C1D0E2BC"
    mou ".@Aw10CAw11D@w10CAw12F@w10EAw11JAw10PCw11RBw10+27+7w11NBw10JCw12JCw10GCw11IBw10HEw11JDw11JCw10GCw10DAw12BAw11AAw20CAw10BAw11D@w11EBw10A@w12A@w218"
    lef 684 630 w9 1; 1.54 ;; 'CABAL', "~:D91A2A2D"
    mou ".b@w12a@w10d@w11baw10cbw11b@w10daw11gcw10gaw12lew10ncw11new10-28-7w11ygw10-27-4w11rbw10kaw12i@w10gaw11d@w11daw10c@w10dbw11d@w12c@w10b@w11baw10a@w41a@w10b@w21b@w12a@w31a@w10a@w11@Aw10a@w150a@w218a@w10a@w11c@w11c@w10b@w10b@w11b@w35@Aw85a@w22b@w10a@w11a@w30a@w21a@w10a@w21a@w12aAw10aAw71a@w10aAw11b@w10c@w11a@w10c@w12a@w70a@w60a@w90a@w10a@w21a@w21a@w10a@w11a@w10a@w12b@w40a@w21a@w40a@w11a@w10a@w11a@w20c@w938B@w10J@w11M@w10+27+0w11+35+5w12+57+9w10+48+3w10+38+8w11V@w11MAw10IAw11E@w10D@w12H@w10J@w11"
    mou ".I@w10H@w11E@w50A@w11AAw20BBw60@Bw12a@w10dBw11cBw10bBw11dDw20a@w40"
    lef 705 630 w9 1; 0.30 ;; 'CABAL', "~:B07A2BAB"
    mou ".d@w11b@w10i@w11odw10qfw11-28-8w10qew12mbw10mew11kfw10mdw11maw10xcw11-32-5w10-36+0w12-31+0w10o@w11i@w10f@w11c@w10b@w11c@w10fAw12dAw10gBw11eBw10eBw11@Aw11bAw20a@w89CAw11E@w10J@w12G@w11H@w10B@w11C@w31A@w10A@w12Aaw12Aaw176@aw42a@w70b@w208aaw12aaw10a@w11a@w20b@w11a@w31a@w50a@w20a@w52a@w20a@w11a@w139"
    lef+ 385 587 w9 1; 0.38 ;; 'CABAL', "~:8FDC3118"
    lef- 408 588 w9 1; 0.01
    mou ".A@w10B@w11B@w10C@w11C@w10A@w11C@w12C@w10A@w11A@w20A@w21A@w20B@w21B@w22Baw31A@w21A@w10A@w31A@w30A@w22Aaw20@aw21@aw11@bw31@aw110@bw20@aw12@aw10@bw11A@w10Aaw11Aaw10Abw11A@w10Aaw22Aaw41B@w11A@w10B@w21B@w32A@w503A@w10FCw12LAw10QAw11TBw10+32+5w11+30+5w10PBw11KAw10GCw12FCw10HFw11HEw10GEw11GFw10HEw11GEw12ECw10EBw11DBw10CAw10A@w11A@w11A@w60A@w100@aw140"
    lef+ 681 634 w9 1; 0.49 ;; 'CABAL', "~:FC2AC591"
    lef- 678 634 w9 1; 0.02
    mou ".a@w237b@w82a@w20b@w11b@w10c@w11c@w10f@w11kcw10mdw12ncw10rgw11mew10xhw11vfw11ncw10kcw12ibw10gbw11baw10c@w11caw10f@w11eaw10jbw12faw10k@w11jbw10h@w11fbw10daw11eaw10baw12caw10caw11dbw21baw129@aw60@bw31@aw405"
    lef+ 409 566 w9 1; 0.57 ;; 'CABAL', "~:8A9C66AA"
    lef- 431 572 w9 1; 0.01
    mou ".@Aw70A@w41A@w20A@w20A@w32A@w70A@w405Aaw11@aw140@aw10A@w100Aaw296A@w26A@w17A@w11AAw40BAw10A@w11A@w10C@w11B@w12B@w10A@w11B@w20A@w10B@w11B@w11C@w10C@w12EBw10AAw11CAw10A@w11C@w60B@w21A@w12A@w10A@w11A@w10A@w61A@w21A@w42B@w90A@w11A@w10C@w10F@w11IAw11REw10ZHw12SFw10RGw11PHw10KFw11GFw10KHw11FDw10FDw12FDw10FCw11BAw10B@w11B@w10A@w31A@w12A@w10A@w11Abw10Abw11Bdw10A@w11Aaw10@aw50@aw100"
    lef 679 635 w9 1; 0.23 ;; 'CABAL', "~:6088B8A7"
    mou ".abw10cbw11baw10caw12daw11bbw10baw11eaw10a@w11caw10eaw12d@w10faw11c@w10caw11caw10a@w11daw10caw12bbw10b@w11baw10baw11bbw10baw11daw10fcw12hdw10hbw11hdw10gaw11caw10cbw21b@w32baw10aaw11baw10bcw11aaw10@aw11bdw10@bw12@bw10@bw11@aw10@dw21@bw11@aw22@aw180@bw217a@w10@aw21baw237@aw11a@w21baw10a@w11aaw10b@w23b@w10b@w11c@w10a@w11baw10a@w12baw10baw11caw10eaw11fbw10h@w11jbw10gaw12haw10faw11e@w10dbw11c@w10a@w11a@w10b@w22aBw11aBw11@Aw10aAw20@Aw11aBw10@Aw12a@w10bBw11aAw10bAw11cBw10b@w11c@w10d@w12j@w10j@w11"
    mou ".q@w10v@w11k@w11d@w40a@w10@Aw22AAw11A@w10B@w11A@w10C@w11A@w10B@w12A@w10C@w11C@w10C@w11D@w10BAw11BAw22AAw11AAw10AAw10@Aw11A@w130a@w11"
    lef 391 568 w9 1; 0.16 ;; 'CABAL', "~:321843AD"
    mou ".cFw99AAw41A@w89AAw11A@w31A@w22@bw10@aw110@aw11B@w10C@w11D@w10D@w11E@w10G@w12Icw10Kaw11Lew10New11Mcw10Jcw11Jew10Faw12Gaw10Daw11D@w10F@w11G@w10G@w11I@w12LAw10I@w11H@w10H@w11F@w10D@w11G@w10Hcw12Iaw10Kaw11Ldw10Mcw11Lcw10Jbw11Gcw10Caw42A@w11A@w10CAw11BBw10EAw11EAw10F@w12D@w10A@w11BAw21BAw10BGw11DKw10CKw12CJw10@Cw11BCw50A@w10Baw11Bbw11Bcw89A@w11@aw10@cw12bcw10baw11eaw10f@w11gbw10f@w21a@w30aaw12a@w118A@w12CBw10EMw11DQw10CJw11BGw10BEw81b@w10@aw22a@w58@cw12Aaw11A@w30@aw10@a"
    lef 728 605 w9 1; 0.36 ;; 'CABAL', "~:19489BC7"
    mou ".A@w11A@w10C@w12Bbw10B@w11Abw10@aw11Bbw10@aw11@cw10@cw12@cw11@bw10@bw11@cw10@aw11@bw10@bw12@dw10@dw11bew10cfw11bew10bdw11aew10@cw12@cw10@cw21@bw11@aw10@aw11a@w30@aw40b@w12d@w10d@w11d@w10c@w11c@w10c@w11c@w10c@w12a@w10a@w11a@w20a@w11caw10aaw11b@w22a@w80a@w30abw11aaw10bbw21bbw10aaw11caw10dbw12baw10baw11b@w10aaw11a@w10a@w21a@w10c@w12fAw11gCw10fBw10fCw11cAw10fAw11eCw10d@w12cAw10bAw11a@w10a@w249Aaw10Baw168C@w12C@w11BAw10C@w11A@w10B@w11C@w10F@w12J@w10KAw11KDw10JFw11IFw10JJw11GJw10CHw12@Ew10@Cw11"
    mou ".@Cw21@Bw13@B@Cw10@Ew12@Dw10@Dw11@Cw10@Cw11@Bw90@Aw11@Aw10AAw12AAw10A@w11BAw10C@w11A@w10B@w11C@w10C@w12EAw10DAw11HAw10HBw11BAw11B@w79A@w208A@w248AAw11@Aw40A@w90A@w11A@w10A@w257B@w158A@w11A@w10A@w11D@w10B@w12A@w10A@w22A@w20B@w10ABw11BAw10BAw12CBw10CAw11CAw10A@w21A@w51A@w10A@w22A@w247"
    lef 796 633 w9 1; 0.41 ;; 'CABAL', "~:474D1E70"
    mou ".A@w11bbw10dbw11edw10dbw11fcw10ebw12fdw10jcw11fcw11jew10kcw11idw10jew12kfw10iew11hew10eaw11baw10baw11a@w10bbw12abw10ccw11ddw10bbw11ccw10cbw11cbw10baw12aaw10aaw11cbw10aaw11bbw10baw11baw10@aw12aaw20@aw11@aw21@aw10@bw11@aw405@aw32@aw10@aw11bbw10bcw11bdw10cdw11bdw10cbw12bbw10ccw11aaw10aaw11b@w10@aw11aaw10a@w12ccw10daw11ccw10ecw11ddw21bbw10bbw12abw10acw11bbw10acw11bew10a@w11abw30@aw60A@w12DBw10B@w11C@w10C@w11C@w10C@w11E@w10D@w12D@w10D@w11G@w10Daw11D@w10A@w11D@w10E@w12F@w10G@w11C@w10B@w562"
    lef 657 468 w9 1; 0.57 ;; 'CABAL', "~:ECD46C8E"
    key A0xz2567890V-
    wait 0.916
#2
Macro Macro2840
Code:
Select All      Help
rep
,code (all lines tab-indented)
,wait 35*60
Also look in Properties -> macro properties. Should be 'Run simultaneously'. Else other macros cannot run.

Or create and run new function (not macro):
Function Function208
Code:
Select All      Help
rep
,wait 0 H mac("macro name")
,wait 35*60
Then don't need 'Run simultaneously'. Instead you can select 'Run when it ends'. And don't need to tab-indent lines in the macro.
#3
Hello Sir!

Thank you so much! It works very well. Thank you so much!!
#4
Hello sir Gintaras.

This code prevents some of the codes to function. I tried to figure out why since Yesterday but I can't and decided to ask you instead.
This code below are simultaneous active
Code:
Select All      Help
key A0xz2567890V-
And this code seems like ignored and never functioned.
Code:
Select All      Help
'o; 2.40        ;; O
So what I like to do is this code below will run runs 35 minutes
Code:
Select All      Help
key A0xz2567890V-
Then after 35 minutes it will stop/pause so the code
Code:
Select All      Help
]'o; 2.40        ;; O
will be pressed and will continue the cycle.


Forum Jump:


Users browsing this thread: 1 Guest(s)