Jump to content

SuperFlyChetGuy

Active Members
  • Posts

    28
  • Joined

  • Last visited

Everything posted by SuperFlyChetGuy

  1. This is what I've been looking for but I still don't know enough about it to use it in a program. I don't know where to put my variables to make the progress change or how to use it in my programs.
  2. #1 Ok what about just being able to use AutoItScript to search a computer from a list of files? From there I can do what I want with those files. #2 Is there a way to output a log file of what files were deleted if I run a If FileExists() Then FileDelete() for each?
  3. Yes I agree with part of that but no "one" product seems to be the right one. I have one we use that gives me the exact location of the files and trojans et al but it at times only gives me about 20-30 names and no location for some of them. I need to seek these out and delete them and was wondering if search/delete was doable in AutoItScript.
  4. Is it possible to search for a known file then if found delete it? I'm constantly writing custom programs to clean computers infected with viruses and trojans at work and it seems the custom approach is the best as none of the free cleaners (or paid ones for that matter) can do it all by themselves. I've run across a virus that I have locations on about 75% of all the files but the other 25% need to be located then if exist, deleted. I know how to script, what I want to know is this, is there a syntax for searching for the file name and if found, regardless of location, delete it? Thanks for any help you may be able to give me.
  5. Ouch! Okay I don't know what's up but this is what I get when I try to run it in the script editor: D:\Usrbk\AutoItScripts\RunAs Project\RunAs_Admin.au3(250,120) : WARNING: $WS_OVERLAPPEDWINDOW: possibly used before declaration. $mainWindow = GUICreate("RunAs Admin - " & @LogonDomain & "\" & @UserName, 400, 325, -1, -1, BitOR($WS_OVERLAPPEDWINDOW, ~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~^ D:\Usrbk\AutoItScripts\RunAs Project\RunAs_Admin.au3(250,138) : WARNING: $WS_CLIPSIBLINGS: possibly used before declaration. $mainWindow = GUICreate("RunAs Admin - " & @LogonDomain & "\" & @UserName, 400, 325, -1, -1, BitOR($WS_OVERLAPPEDWINDOW, $WS_CLIPSIBLINGS) ~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ D:\Usrbk\AutoItScripts\RunAs Project\RunAs_Admin.au3(304,94) : WARNING: $SS_SIMPLE: possibly used before declaration. $mainFormStatusBar = GUICtrlCreateLabel ($mainFormStatusDefault,0,290,420,16,BitOr($SS_SIMPLE, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ D:\Usrbk\AutoItScripts\RunAs Project\RunAs_Admin.au3(304,105) : WARNING: $SS_SUNKEN: possibly used before declaration. $mainFormStatusBar = GUICtrlCreateLabel ($mainFormStatusDefault,0,290,420,16,BitOr($SS_SIMPLE,$SS_SUNKEN) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~^ D:\Usrbk\AutoItScripts\RunAs Project\RunAs_Admin.au3(525,29) : WARNING: $CAFullPath: possibly used before declaration. GUICtrlSetData($CAFullPath, ~~~~~~~~~~~~~~~~~~~~~~~~~~^ D:\Usrbk\AutoItScripts\RunAs Project\RunAs_Admin.au3(533,39) : WARNING: $CANickname: possibly used before declaration. Local $nick = GUICtrlRead($CANickname) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ D:\Usrbk\AutoItScripts\RunAs Project\RunAs_Admin.au3(535,40) : WARNING: $CAArguments: possibly used before declaration. Local $args = GUICtrlRead($CAArguments) ~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~^ D:\Usrbk\AutoItScripts\RunAs Project\RunAs_Admin.au3(552,31) : WARNING: $progConfCustom: possibly used before declaration. If FileExists($progConfCustom) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ D:\Usrbk\AutoItScripts\RunAs Project\RunAs_Admin.au3(555,8) : ERROR: syntax error ElseIf ~~~~~~^ D:\Usrbk\AutoItScripts\RunAs Project\RunAs_Admin.au3(556,108) : ERROR: syntax error errHandler(100,"Error Locating File", "An error occurred while trying to locate " & $progConfCustom & ".") ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~^ D:\Usrbk\AutoItScripts\RunAs Project\RunAs_Admin.au3(559,68) : ERROR: syntax error $t = FileWriteLine($null, $nick & "," & $fp & "," & $args & @CRLF) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ D:\Usrbk\AutoItScripts\RunAs Project\RunAs_Admin.au3(560,18) : ERROR: syntax error If $t <> 1 Then errHandler ~~~~~~~~~~~~~~~~^ D:\Usrbk\AutoItScripts\RunAs Project\RunAs_Admin.au3(560,124) : ERROR: syntax error If $t <> 1 Then errHandler(101,"Error Writing File", "An error occurred while trying to write to " & $progConfCustom & ".") ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~^ D:\Usrbk\AutoItScripts\RunAs Project\RunAs_Admin.au3(581,28) : ERROR: syntax error $ub = Ubound($arrDelete)-1 ~~~~~~~~~~~~~~~~~~~~~~~~~~^ D:\Usrbk\AutoItScripts\RunAs Project\RunAs_Admin.au3(583,32) : ERROR: syntax error If $arrDelete[$i] <> "" Then GUICtrlDelete ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ D:\Usrbk\AutoItScripts\RunAs Project\RunAs_Admin.au3(643,72) : WARNING: $WS_CAPTION: possibly used before declaration. $about = GuiCreate("Help > About", 215, 150, -1, -1, BitOR($WS_CAPTION, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ D:\Usrbk\AutoItScripts\RunAs Project\RunAs_Admin.au3(643,84) : WARNING: $WS_SYSMENU: possibly used before declaration. $about = GuiCreate("Help > About", 215, 150, -1, -1, BitOR($WS_CAPTION,$WS_SYSMENU) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ D:\Usrbk\AutoItScripts\RunAs Project\RunAs_Admin.au3(665,69) : WARNING: $GUI_SS_DEFAULT_BUTTON: possibly used before declaration. GUICtrlCreateButton ("OK",65,115,75,23,BitOr($GUI_SS_DEFAULT_BUTTON, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ D:\Usrbk\AutoItScripts\RunAs Project\RunAs_Admin.au3(665,88) : WARNING: $BS_DEFPUSHBUTTON: possibly used before declaration. GUICtrlCreateButton ("OK",65,115,75,23,BitOr($GUI_SS_DEFAULT_BUTTON, $BS_DEFPUSHBUTTON) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ D:\Usrbk\AutoItScripts\RunAs Project\RunAs_Admin.au3(684,21) : WARNING: $about: possibly used before declaration. GUIDelete($about) ~~~~~~~~~~~~~~~~~~~~^ D:\Usrbk\AutoItScripts\RunAs Project\RunAs_Admin.au3(773,11) : WARNING: $RSPC: possibly used before declaration. If $RSPC = ~~~~~~~~~^ D:\Usrbk\AutoItScripts\RunAs Project\RunAs_Admin.au3(856,18) : ERROR: $fp already declared as parameter Dim $newMenu,$fp, ~~~~~~~~~~~~~~~~^ D:\Usrbk\AutoItScripts\RunAs Project\RunAs_Admin.au3(856,38) : ERROR: $menu already declared as parameter Dim $newMenu,$fp,$file,$search,$menu, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ D:\Usrbk\AutoItScripts\RunAs Project\RunAs_Admin.au3(250,120) : ERROR: $WS_OVERLAPPEDWINDOW: undeclared global variable. $mainWindow = GUICreate("RunAs Admin - " & @LogonDomain & "\" & @UserName, 400, 325, -1, -1, BitOR($WS_OVERLAPPEDWINDOW, ~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~^ D:\Usrbk\AutoItScripts\RunAs Project\RunAs_Admin.au3(333,43) : ERROR: __menuCustomDelete(): undefined function. GUICtrlSetOnEvent(-1, "__menuCustomDelete") ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ D:\Usrbk\AutoItScripts\RunAs Project\RunAs_Admin.au3(597,41) : ERROR: __menuCustomLinkDelete(): undefined function. __menuCustomLinkDelete($sSelectedIndex) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ D:\Usrbk\AutoItScripts\RunAs Project\RunAs_Admin.au3 - 12 error(s), 14 warning(s)
  6. I would like to use this but I get errors when trying to run and or compile it. Any thoughts? Line 13: Opt("RunErrorsFatal",0) Error: Unknown option or bad parameter specified
  7. Awesome! Thanks a bunch. @ssubirias3 - I looked but maybe I was looking at the wrong help files as I do not recall seeing that clarified. I thank you for you input.
  8. I have created a button to either press OK to continue or CANCEL to quit but pressing CANCEL doesn't quit. Yes I am a n00b to all this so did I miss some code that tells it "if cancel is pressed then end" ? If Not IsDeclared("iMsgBoxAnswer") Then Local $iMsgBoxAnswer $iMsgBoxAnswer = MsgBox(1,"","This is my message!" & @CRLF & "If you do not wish to proceed with removing these files please" & @CRLF & "press the CANCEL button now.") Select Case $iMsgBoxAnswer = 1;OK Case $iMsgBoxAnswer = 2;Cancel EndSelect
  9. I need to check if a program is running at the start of a script, if it is close it before proceeding, if not then proceed. What do you call this and how is it accomplished? Thanks!
  10. I see something in your 3rd line that got translated as a wink.gif. What is that supposed to be? And thank you for the code!
  11. Very interesting, I will see what I can come up with on this and get back to you. Thanks for the information! EDIT: Hmm unfortunately I do not know how to use that GuiCtrlSet part.
  12. Or should I go about it this way? Search the files to be removed, count them, then change the progress bar according to how many have been removed vs how many are left? If that is the correct manner then how would I go about that?
  13. I see numerous posts regarding a progress bar/status bar and I see the ProgressOn.au3 in the help folder but what I see is a timed progress bar. What I need is a progress bar that will progress depending on the status of the job it is doing, the percent type. I need someone to show me one and to tell me where to put my code for this to work. I have written a simple cleaning utility that I want to put up but I need a progress bar that will work for me. Can someone help me with this? Thank you!
  14. Excuse my ignorance but, how do you use this?
  15. Thank you for the help! I believe that is going to work for me. Thanks again!
  16. This is what I have put together to remove cache from the MMORPG game EvE Online. If FileExists(@UserProfileDir & "\Local Settings\Application Data\CCP\EVE\cache\Browser\Img\*.jpg") Then FileDelete(@UserProfileDir & "\Local Settings\Application Data\CCP\EVE\cache\Browser\Img\*.jpg") MsgBox(4096, "EvE Cache Cleaner", "Files Removed", 1) Else MsgBox(4096, "EvE Cache Cleaner", "Browser Images" & @CRLF & "No file exists, moving on", 1) EndIf If FileExists(@UserProfileDir & "\Local Settings\Application Data\CCP\EVE\cache\Pictures\Blueprints\*.dds") Then FileDelete(@UserProfileDir & "\Local Settings\Application Data\CCP\EVE\cache\Pictures\Blueprints\*.dds") MsgBox(4096, "EvE Cache Cleaner", "Files Removed", 1) Else MsgBox(4096, "EvE Cache Cleaner", "Blueprint Images" & @CRLF & "No file exists, moving on", 1) EndIf If FileExists(@UserProfileDir & "\Local Settings\Application Data\CCP\EVE\cache\Pictures\Gids\*.dds") Then FileDelete(@UserProfileDir & "\Local Settings\Application Data\CCP\EVE\cache\Pictures\Gids\*.dds") MsgBox(4096, "EvE Cache Cleaner", "Files Removed", 1) Else MsgBox(4096, "EvE Cache Cleaner", "Gid Images" & @CRLF & "No file exists, moving on", 1) EndIf If FileExists(@UserProfileDir & "\Local Settings\Application Data\CCP\EVE\cache\Pictures\Portraits\*.jpg") Then FileDelete(@UserProfileDir & "\Local Settings\Application Data\CCP\EVE\cache\Pictures\Portraits\*.jpg") MsgBox(4096, "EvE Cache Cleaner", "Files Removed", 1) Else MsgBox(4096, "EvE Cache Cleaner", "Portraits" & @CRLF & "No file exists, moving on", 1) EndIf If FileExists(@UserProfileDir & "\Local Settings\Application Data\CCP\EVE\cache\Pictures\Temp\Mapbrowser\*.png") Then FileDelete(@UserProfileDir & "\Local Settings\Application Data\CCP\EVE\cache\Pictures\Temp\Mapbrowser\*.png") MsgBox(4096, "EvE Cache Cleaner", "Files Removed", 1) Else MsgBox(4096, "EvE Cache Cleaner", "Mapbrowser Images" & @CRLF & "No file exists, moving on", 1) EndIf If FileExists(@UserProfileDir & "\Local Settings\Application Data\CCP\EVE\cache\Pictures\Temp\Mapbrowser\*.blue") Then FileDelete(@UserProfileDir & "\Local Settings\Application Data\CCP\EVE\cache\Pictures\Temp\Mapbrowser\*.blue") MsgBox(4096, "EvE Cache Cleaner", "Files Removed", 1) Else MsgBox(4096, "EvE Cache Cleaner", "Mapbroswer Blue Files" & @CRLF & "No file exists, moving on", 1) EndIf The problem is, it doesn't delete any of the files. I'm suspicious the asterisk is the problem but I'm not sure. Can someone point me in the right direction?
  17. No way that can work this is a .exe that came from a store bought game. What I thought I could do is rename the game .exe to game.exe and then name my .exe to the original name, so when the player runs mine it will check game.exe and compare it with the one hosted on the website, if there is one new then update if not proceed to run the game. This would be a situation where the first .exe runs the second .exe for both instances, update or not.
  18. What I have is a game mod that we release new versions of throughout the year. It already has a game .exe file which we update the version number using reshacker, and then we supply all the newly updated .ini and .dll files to make the changes work for the new mod release. What I need is an updater that will check the version on my website against the installed version, and then if there is a newer one online it will update automatically all the files necessary and/or prompt you to go to the website to get the latest mod. I'd like to be able to do both depending on how this works out.
  19. Hi. Can you explain to a n00b how to use this? I'm having a difficult time getting "any" updater I found here to work. I need someone to dumb it down for me and explain what I do with what. Thanks.
  20. Can this be changed to use on any forum? Not just this one? I'd like to be able to use this on many different forums that I frequent and without having to be logged into the forum. For instance this runs in the tray or something then notifies me of a new PM or post and at that time I go look at it as I was busy doing other things and did not want IE open.
  21. Ah thanks I think I got it now. What about logout? When i try to reconnect it says user is currently connected so I have to manually adjust the server ini file back to "0" before I can get back on. Any changes there?
  22. I tried that one, it's all messed up. The server version won't work unless the IP is set to 0.0.0.0 and the client version doesn't work at all it tells me wrong username and password when its the first time I have entered it. Are there some missing configuration instructions or something?
  23. I get this error message when I try to log in as administrator. Everything works fine. I am using the original version, the first download link posted on page 1. Like I said, everything works just fine except for this.
  24. I'm getting this:
  25. I figured it out. I wish there was better help around here than this. Thanks anyway.
×
×
  • Create New...