Jump to content

nanodroid

Members
  • Posts

    10
  • Joined

  • Last visited

nanodroid's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Unsigned, you are the man thanks you just helped me with my first successful script....I hope you get signed one day so that we can call you SIGNED!!!!!!
  2. Unsigned, thanks for the tips on this script, I took your advice and and fixed the mistakes that where in it: See script below....it works. But how do I make the script work for all users instead of the actual user at that time. See line 14 #include <File.au3> FileChangeDir(@DesktopDir) $search = FileFindFirstFile("Test Todd") ; Check if the search was successful If $search = -1 Then MsgBox(0, "Error", "No files/directories matched the search pattern") Exit EndIf While 1 $file = FileFindNextFile($search) If @error Then ExitLoop MsgBox(4096, "File:", $file) WEnd FileDelete("C:\Documents and Settings\twilson\Desktop\Test Todd")
  3. Unsigned, thanks for the great information on the "FileFind" documentation: As a reminder I'm a novice but I took your advice on just going through some of the tutorials that Autoit has. I attempted to try one on my own, this script is suppose to Go to my desktop and open a test folder I created, and delete a .txt file inside. I used your technique of useing the "File" commands in autoit but it is not working. Can you take a look at the script just to make sure that I'm writing it correctly....don't give me the answer just point me in the right direction. Here it is..... #include <file.au3> FileChangeDir(@DesktopDir) $search = FileFindFirstFile("Test Todd") If $search = -1 Then MsgBox(0, "Error", "No files/directories matched the search pattern") Exit EndIf While 1 $file = FileFindNextFile($search) If @error Then ExitLoop MsgBox(4096, "File:", $file) WEnd ; Close the search handle FileClose($search) FileDelete($search)
  4. Brew thanks for the help I understand the concept of yous answer. But being that I'm a novice at Autoit and scripting as altogether. I wonder if you can point me to a site that might help me with the understanding of how the (_RecFileListToArray.au3 UDF) works. And also the "loop through "Arrays" this would be very helpful to me...thanks.
  5. Ok unsigned so how would you write this script......in regards to bypassing the" ~DF77AB.tmp" that the script is stopping on.
  6. My question is how do I get the script to skip or bypass the "error message" that I'm getting. An then proceed with the clean up of the temp file.
  7. I'm trying to creat a script that will remove "temp" files form PC. Here is the script so far: Send("#r") Send("%Temp%") WinWaitActive("Run","Type the name of a program") send("{TAB}") send("{Enter}") WinWaitActive("Temp","\LOCALS~1\Temp") Send("{CTRLDOWN}a{CTRLUP}{DEL}") WinWaitActive("Confirm Multiple File Delete","Are you sure you want to send") Send("{Enter}") WinWaitActive("Error Deleting File or Folder","Cannot delete") This is not the exact error but very close, in the middle of the msgbox its says: ~DF77AB.tmp
  8. I'm a newbie so take it easy on me I will get better...my question is I have created a simple script. Now when I run the "Debug to Console" or Alt-D it shows me the issue but I really don't understand what it is saying the the issue is. can anyone assist. #region --- Au3Recorder generated code Start --- _WinWaitActivate("Program Manager","")@crlf ' ConsoleWrite('@@ Debug(' & @ScriptLineNumber & ') : _WinWaitActivate("Program Manager","") = ' & _WinWaitActivate("Program Manager","") & @crlf & '>Error code: ' & @error & @crlf) ;### Debug Console ConsoleWrite('@@ Debug(' & @ScriptLineNumber & ') : '' = ' & ' & @crlf & '>Error code: ' & @error & @crlf) ;### Debug Console MouseClick("left",1700,161,2) _WinWaitActivate("Todd","") MouseClick("left",243,142,2) ConsoleWrite('@@ Debug(' & @ScriptLineNumber & ') : MouseClick("left",243,142,2) = ' & MouseClick("left",243,142,2) & @crlf & '>Error code: ' & @error & @crlf) ;### Debug Console ConsoleWrite('@@ Debug(' & @ScriptLineNumber & ') : MouseClick("left",243,142,2) = ' & MouseClick("left",243,142,2) & @crlf & '>Error code: ' & @error & @crlf) ;### Debug Console ConsoleWrite('@@ Debug(' & @ScriptLineNumber & ') : ") = ' & ") & @crlf & '>Error code: ' & @error & @crlf) ;### Debug Console ConsoleWrite('@@ Debug(' & @ScriptLineNumber & ') : MouseClick("left",243,142,2)") = ' & MouseClick("left",243,142,2)") & @crlf & '>Error code: ' & @error & @crlf) ;### Debug Console #region --- Internal functions Au3Recorder Start --- Func _WinWaitActivate($title,$text,$timeout=0) WinWait($title,$text,$timeout) If Not WinActive($title,$text) Then WinActivate($title,$text) WinWaitActive($title,$text,$timeout) EndFunc #endregion --- Internal functions Au3Recorder End --- #endregion --- Au3Recorder generated code End --- #endregion --- Au3Recorder generated code End ---
  9. Hi, I have been working with autoit for about a week now and I have been going through some of the examples that it provides with the download just to get familar with the program. I would like to try my hand at creating a script that will allow me to delete %temp% files and prefetch files, and also any KB* bug fixes in the windows folder....I'm a novice at this and would like to become and expert at this great program , so any assistance would be greatly appreciated....Thanks...Also if you guys have any great books on scripting for beginngers that you can point me to that would be great as well. I want to learn as much as possible....with Autoit.
×
×
  • Create New...