Jump to content

Progress Question


AlmarM
 Share

Recommended Posts

I want to create a progress, but I want to $i = Random

MsgBox(0, "Anti Virus Scan", "Press OK if u want to start the scan")
ProgressOn("Anti Virus Scan", "Scanning", "0%")
For $i = 0 To 100 Step 1
    Sleep(700)
    ProgressSet($i, $i & "%")
Next
ProgressSet(100 , "Done", "Complete Scannig")
Sleep(1000)
ProgressOff()
MsgBox(0, "Complete", "Scanning Complete" & @CRLF & "There are >> 0 << viruses found")

Im trying to fake my brother so... :)

But the Step 1 need to be random EACH time...

Edited by AlmarM

Minesweeper

A minesweeper game created in autoit, source available.

_Mouse_UDF

An UDF for registering functions to mouse events, made in pure autoit.

2D Hitbox Editor

A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.

Link to comment
Share on other sites

This working but then it is high chance that youre Procent gets like 28,35262734%

but it will work.

CODE
MsgBox(0, "Anti Virus Scan", "Press OK if u want to start the scan")

ProgressOn("Anti Virus Scan", "Scanning", "0%")

$random = Random(1, 5)

For $i = 0 To 100 Step $random

Sleep(700)

ProgressSet($i, $i & "%")

Next

ProgressSet(100 , "Done", "Complete Scannig")

Sleep(1000)

ProgressOff()

MsgBox(0, "Complete", "Scanning Complete" & @CRLF & "There are >> 0 << viruses found")

The first error is one step closer to the perfect program.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...