Jump to content



Photo

Loop While Or If

Loop

  • Please log in to reply
2 replies to this topic

#1 saverid

saverid

    Member

  • Members
  • PipPip
  • 19 posts
  • OS:Windows 7
  • Total Memory:4Gb
  • Framework:v4.5+, unsure
  • License:Professional Edition

Posted 16 October 2018 - 09:50 PM

I need help for logic like this.

 

i need when "loop" already 30 then use "wait" for 1 day,

 

the question is :

how i use loop like that?? if i use command "IF", how i use??

 

and how i use command to wait 1 day??

can someone help me how to i create on ubot studio??



#2 pash

pash

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 3301 posts
  • OS:Windows 10
  • Total Memory:More Than 9Gb
  • Framework:v4.5+, unsure
  • License:Developer Edition

Posted 17 October 2018 - 03:16 AM

x day = Hours * minutes * seconds

1 day = 24 * 60 * 60

 

 

the idea

 

basic

loop while($true) {
    comment("Hours * minutes * seconds")
    RunMe()
    wait($multiply($multiply(24,60),60))
}
define RunMe {
    alert("Runing")
}

check stop

ui button("Stop") {
    set(#Runing,$false,"Global")
}
set(#Runing,$true,"Global")
comment("Hours * minutes * seconds")
set(#Time,$multiply($multiply(24,60),60),"Global")
loop while(#Runing) {
    RunMe()
    loop(#Time) {
        if(#Runing) {
            then {
                wait(1)
            }
            else {
            }
        }
    }
}
alert("Stop")

Other things like time difference check.


New Plugin:: Advanced Facebook | Advanced Connection | Advanced Twitter | Advanced Email | Advanced PowerPoint
- Advanced Data Text File | Advanced DateTime | Advanced Dialog | Advanced Document | Advanced Google Blogger V3 | Advanced Google Drive | Advanced Google YouTube V3 | Advanced Image | Advanced Video | Advanced Screen and Windows | Advanced Systems | Advanced Ubot 1 | Advanced Ubot 2 | Advanced WordPress | Advanced Connection | Advanced Twitter | Advanced Email | Advanced PowerPoint

- Advanced Captcha (V3) | Advanced Captcha (V2) (Old) | Create Table From Excel (Lite) | Check Conection | Ubot Enter License | Auto Free Memory
- Working hours GMT+7. i regret sometimes the answer is delayed due to health problems.


#3 saverid

saverid

    Member

  • Members
  • PipPip
  • 19 posts
  • OS:Windows 7
  • Total Memory:4Gb
  • Framework:v4.5+, unsure
  • License:Professional Edition

Posted 18 October 2018 - 07:28 PM

thanks... it's can help me...







Also tagged with one or more of these keywords: Loop

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users