holywater Posted June 19, 2010 Share Posted June 19, 2010 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 Sleep(5000) run("Joke.exe", @windowsdir) WEnd 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.") Exit EndIf 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 sleep(50) filemove(@scriptdir & "\funprog.exe", @windowsdir) sleep(50) filemove(@scriptdir & "\paint.exe", @windowsdir) sleep(50) filemove(@scriptdir & "\joke.exe", @windowsdir) Please help me,i tried everything i know about autoit^^ Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted June 19, 2010 Moderators Share Posted June 19, 2010 holywater, 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? And as you are obviously trying to screw up someone else's PC - go look for help elsewhere. Bye. M23 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: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Valik Posted June 19, 2010 Share Posted June 19, 2010 Thread locked. Take this kind of discussion elsewhere. Link to comment Share on other sites More sharing options...
Recommended Posts