Jump to content

dcer

Active Members
  • Posts

    20
  • Joined

  • Last visited

Everything posted by dcer

  1. I did... and btw i'm running on XP SP3, but it just doesn't work. When i run it, it pops up with the file and folder dialog, which i would like it not to do. But anyway, when i choose the folder and file, and then go in to the config file it only wrote the line with the folder name like e.g. C:/testfolder/folder, but not the file line. Second of all, the file that i choose to save (C:/testfolder/folder/filelist.txt) are not saved and the file doesn't exist in the folder, and the line "C:/testfolder/folder/filelist.txt" doesn't exist in the config.txt either. And when i click on the icon in the taskbar and choose Select File or Select Folder, nothing happens, exept THEN it writes the previous choosed folder and line to the config.txt, but still no list on files or the file filelist.txt in "C:/testfolder/folder/filelist.txt"
  2. Sad to say it... but it doesn't work
  3. Well... you have only set the value for $coord... you are not using it
  4. In the hotkeyset you wrote HotKeySet('^C', "ExitProgram") which will cause an error when you're using these: ' for the first parameter and these: " for the next. Your script will work fine if you just write: HotKeySet("^C", "ExitProgram") instead of HotKeySet('^C', "ExitProgram") Good Luck
  5. Still no one?
  6. HexEdit? Not recognized with my autoit , are you sure there's a function with that name? EDIT: Doh... ofc you're talking about the program HexEdit... my bad xD
  7. Hmm... if you just want raw code/text out of it, you could try to use FileMove to rename the file to .txt and then read it
  8. Lol when i run a script like that on mine it's using about 0-1 % of the CPU... you have a 5 mHz cpu? But dunno... I didn't experienced any problems with it
  9. Well you could try to put it in the same script... not sure if it works though, if you're saying that the script's getting paused, so i would use another script... Also you could add Run(<2. script>) in the first script so you don't have to open the 2. script every time Good luck EDIT: if you dont compile the scripts to .exe and just run the .au3 file, you can't use "Run"... use ShellExecute or something instead EDIT 2: If there's different windows with different names, you could try to use wildcards... e.g. if the window is called "Error occured - Microsoft Error" you could use *- Microsoft Error for WinExists and WinKill Else, try to use the AutoIt Window info, to see if there's something all the error windows are called.
  10. lol it doesn't take a lot CPU... but yes, a sleep would make it use even less, but we're talking about very small percentages of the CPU being used
  11. While 1 If WinExist(<name of the window>) Then WinKill(<name of the window>) EndIf WEnd This didn't work?
  12. Well... you could use: ClipPut("hi, Whatsup") Send("^v) that way it will be written instantly... Opt("SendKeyDelay") is also an option Good Luck
  13. The most simple thing would proberly be to add: If WinExist(<name of the window>) Then WinKill(<name of the window>) EndIf Place this in a loop Hope it helped
  14. A very simple script that clicks specified coordinates every 30 mins could look like this: CODEWhile 1 MouseClick("left", <x-coordinate>, <y-coordinate>, 2, 10) Sleep(30000) WEnd Also, just search for MouseClick in the help file Install AutoIt, type in the script, save the script and (optional:) convert the script to .exe
  15. should work with the compile script to .exe ... allways worked for me
  16. No one can help me out here?
  17. Hi, i've created a little program that will run in the background and check a specified folder for file changes (if there's more or less files since last check), and it'll write the updated list of files to a text file. It worked fine until i wanted to make it able to be customizeable, so that users can choose the folder themselves, without having to edit the script, so i tried that. But somehow it doesn't work so well. Here's my source... hope some1 can help me #Include <File.au3> #Include <Array.au3> #Include <Constants.au3> #NoTrayIcon Opt("TrayMenuMode",1) TraySetState() TraySetToolTip("File List Auto-Update") TrayTip("File List Auto-Updater Loaded Succesfully!", "This program will check for changes on the folder specified, and will auto-update the list of files in the specified folder into the file: songs.txt * Software Created By SeeR *", 5, 1) $howto = TrayCreateItem("How to configure") $filename = TrayCreateItem("File Name") $selectfolder = TrayCreateItem("Select Folder") $reset = TrayCreateItem("Reset Config_data") $aboutitem = TrayCreateItem("About") $exititem = TrayCreateItem("Exit") $folderselect = FileSelectFolder("Select folder to check for files", "", 1) $fileselect = FileSaveDialog("Select name of the file list file", "", "File_List Text File (*.txt)", 2) $folderinfo = FileReadLine("config.txt", 1) $fileinfo = FileReadLine("config.txt", 2) $listfiles = _FileCountLines($fileinfo) $files = DirGetSize($folderinfo,1) While 1 If FileExists( @ScriptDir & "\config.txt") Then If $listfiles = $files[1] Then Else TraySetState(4) TrayTip("File List Auto-Update", "File list is now auto-updating...", 2, 1) FileDelete($fileinfo) Sleep(500) $FileList=_FileListToArray($folderinfo) $Listed = _ArrayToString($FileList, @CRLF) FileWrite($fileinfo, $Listed) Sleep(1000) TraySetState(8) TrayTip("File List Auto-Update", "File list have been updated succesfully!", 2, 1) EndIf EndIf $msg = TrayGetMsg() Select Case $msg < 1 ContinueLoop Case $msg = $aboutitem MsgBox(0,"About", "This software is created by SeeR * © by SeeR * Feel free to use, but don't take the credits for it.") Case $msg = $exititem ExitLoop Case $msg = $selectfolder FileWriteLine( @ScriptDir & "\config.txt", $folderselect & @CRLF) Case $msg = $filename FileWriteLine( @ScriptDir & "\config.txt", $fileselect & @CRLF) Case $msg = $howto MsgBox(0,"Configuration", "To configure this program correct you need to do the following things: " & @CRLF & "If you already tried to configure, reset the configuration data (click on the programs icon down in right corner)" & @CRLF & "1. Select what folder is going to be checked" & @CRLF & "2. Select the filename for the saved file list (IMPORTANT: you MUST add .txt after the filename when you save" & @CRLF & "3. Don't delete the file 'config.txt'. If you move the .exe file, also move the 'config.txt'" & @CRLF & @CRLF & "Enjoy! © by SeeR") Case $msg = $reset If FileExists( @ScriptDir & "\config.txt") Then FileDelete( @ScriptDir & "\config.txt") TrayTip("File List Auto-Update", "Config succesfully reset!", 2, 1) Else MsgBox(0, "Config file not found!", "The config file needed by File List Auto-Updater could not be found!" & @CRLF & "The file may have been moved, or just not created yet - please follow the instructions and try again") EndIf EndSelect WEnd Exit One of my other problems is that when the script is loaded/started, the folder and file dialog is opened... and cant really understand that, cause in my code i made it ONLY do that if the file "config.txt" already existed. Well... hope you can help me out here - i will post the program in here afterwards ofc.
  18. Thansk... even though don't need the save file, so i've just added a FileDelete line for the savelist
  19. I got this problem that i allways throw all my downloaded files to the desktop, and then some day i just move it all to one folder. What i would like is a program that moves all folders and files(moving the files aint a problem) to D:\Desktop\ What i've tried so far: #Include <File.au3> #Include <Array.au3> FileMove(@DesktopDir & "\*.", "D:\Desktop files",9) $FileList=_FileListToArray(@DesktopDir, "*", 2) DirMove($FileList, 1)
×
×
  • Create New...