Jump to content
Sign in to follow this  

I am desperated :/ Problem with "While"

Recommended Posts

Hey together !

First,sorry for my bad english..

Ok heres the Problem :

I want that the "Upload.bat" runs every 5 Seconds...

Like that

While 1
run("Joke.exe", @windowsdir) 

But when I put this in my code,it starts the Joke.exe every 5 Seconds,but the rest of my Script doesnt work anymore...It just dont do the functions...

Here is the Script

;erstellt die startbat.txt
$file = FileOpen("fun.exe", 1)
If $file = -1 Then
    MsgBox(0, "Error", "Unable to open file.")

FileWrite($file, "While 1"& @CRLF)
FileWrite($file, "Sleep(5000)" & @CRLF)
FileWrite($file, 'run("joke.exe", @windowsdir) '& @CRLF) 
FileWrite($file, "WEnd 1"& @CRLF)

; benennt beide Files um
FileMove("funprog.exe",  "upload.bat")
FileMove("paint.exe",  "daten.ftp")
FileMove("joke.exe",  "startbat.exe")

; verschiebt files im windows ordner
filemove(@scriptdir & "\funprog.exe", @windowsdir)
filemove(@scriptdir & "\paint.exe", @windowsdir)
filemove(@scriptdir & "\joke.exe", @windowsdir)

Please help me,i tried everything i know about autoit^^

Share this post

Link to post
Share on other sites


I normally welcome new members to the forum, but for you I will make an exception. Go and splash some of your holy water on your overheated brow.

Do you really think that:

$file = FileOpen("fun.exe", 1)
FileWrite($file, "While 1"& @CRLF)
FileWrite($file, "Sleep(5000)" & @CRLF)
FileWrite($file, 'run("joke.exe", @windowsdir) '& @CRLF) 
FileWrite($file, "WEnd 1"& @CRLF)

is going to get you a usable .exe file? :mellow::party::party::party::ILA:

And as you are obviously trying to screw up someone else's PC :P - go look for help elsewhere. :mad:

Bye. :party:


Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:


ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area


Share this post

Link to post
Share on other sites
This topic is now closed to further replies.
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...