Jump to content

Recommended Posts

Posted (edited)

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.

Posted

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.

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
×
×
  • Create New...