Sign in to follow this  
Followers 0
El-Trucha

Byte adder...:P

4 posts in this topic

Byte adder...:idiot:

#cs
Name: AddBytes 1.0
Author: El-Trucha
Dev tool: AutoIt v3.0.103
#ce

Func AddBytes($file, $bytes)                        ; Beginning function

    $message = StringFormat("Adding bytes to %s...", $file)     ; Making the string to put on the splash screen
    SplashTextOn("Adding...", $message, 500 , 100)      ; Putting it in the splash screen

    For $x = 1 To $bytes                    ; Beginning of the loop
        FileWrite($file, " ")               ; Adding the bytes
    Next                            ; Ending the loop

    SplashOff()                     ; Turning off the splash screen

EndFunc                             ; Ending function

Did I put too much comments?? :D

Hope u like it...:lol:


El-Truchahttp://www.truchasoft.tk[url="ftp://tsfc.homeftp.net"]ftp://tsfc.homeftp.net[/url]hotline://tsfc.ath.cx

Share this post


Link to post
Share on other sites



Byte adder...:idiot:

#cs
Name: AddBytes 1.0
Author: El-Trucha
Dev tool: AutoIt v3.0.103
#ce

Func AddBytes($file, $bytes)                       ; Beginning function

    $message = StringFormat("Adding bytes to %s...", $file)       ; Making the string to put on the splash screen
    SplashTextOn("Adding...", $message, 500 , 100)       ; Putting it in the splash screen

    For $x = 1 To $bytes                   ; Beginning of the loop
        FileWrite($file, " ")               ; Adding the bytes
    Next                           ; Ending the loop

    SplashOff()                       ; Turning off the splash screen

EndFunc                               ; Ending function

Did I put too much comments?? :D

Hope u like it...:lol:

<{POST_SNAPBACK}>

why would you put a splash screen?

Share this post


Link to post
Share on other sites

Splash screen?? ohh, no, I meant SplashText...:idiot:


El-Truchahttp://www.truchasoft.tk[url="ftp://tsfc.homeftp.net"]ftp://tsfc.homeftp.net[/url]hotline://tsfc.ath.cx

Share this post


Link to post
Share on other sites

@El-Trucha

Not sure about your purpose for this script but why not use a ProgressBar instead of SplashText ?

Share this post


Link to post
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
Sign in to follow this  
Followers 0