Jump to content

Inverted

Active Members
  • Posts

    654
  • Joined

Inverted's Achievements

  1. Works fine on Win 8.1, I used it to create a Toggle between 2 devices shortcut, put the shortcut in the desktop and set a shortcut to it (Ctrl-Alt-S) By the way the shortcut needs to be on the desktop for the shortcut to work, it seems.
  2. I want to declare a (static) array which will get big. Example with two rows, imagine they will be 30 eventually after I fill them in: Local $stringArray[2][2] = _ [ _ ["This is the first item", "Description of it goes here"], _ ["Another one ...", "Description again here"] _ ] That line breaking thing is annoying as hell. Another problem I faced is that I want to insert comments in the array, I tried this: Local $stringArray[2][2] = _ [ _ ;This is a comment for the first item ["This is the first item", "Description of it goes here"], _ ;Comment for the second item ["Another one ...", "Description again here"] _ ] Finally I had to do this: Local $stringArray[2][2] = _ [ _ ["This is the first item", "Description of it goes here"], _ ;This is a comment for the first item ["Another one ...", "Description again here"] _ ;Comment for the second item ] Is there a way to make it more readable and maybe avoid the underscores?
  3. MS's UI Automation framework is useful when you're the author of both applications, the one to be automated and the one that automates, am I correct? So you can't use it to automate thrid-party apps, right?
  4. You need to add the icons as resources with the AutoIt3Wrapper_Res_Icon_Add directive. Then you can use TraySetIcon(@ScriptFullPath, -5) to change the icon an time you want.
  5. You can use the comp command, but you should know it does an initial filesize comparison and stops there if not equal. There is also the fc command.
  6. EDIT: Oops, I misread the original post. Simplest way is probably: #include <File.au3> #include <Array.au3> $jpegFolder = "c:\JPEG\" $aFolder = "c:\A_here\" $jpegArray = _FileListToArray ( $jpegFolder, "*", 1) ;_ArrayDisplay($jpegArray) for $i = 1 To UBound($jpegArray) $tempArray = StringSplit($jpegArray[$i],".") ;MsgBox(0,"",$tempArray[1]) FileDelete($aFolder & $tempArray[1] & ".a") Next
  7. You should read up on regular expressions to replace the dozens of StringReplace you have. As for debugging the script, it would take too much time, considering it's size and specific functionality. You should log stuff to the console or an ini to see where things start going wrong. Also, this script contains music piracy functions
  8. Did you try changing that registry option to swap the direction of the wheel ? That's why I posted that link, not for the answer with the AHK code.
  9. You can try changing the windows setting, read here: http://superuser.com/questions/310681/inverting-direction-of-mouse-scroll-wheel I spent some time doing it in AutoIt with a mouse hook, but .... nope. Doesn't work quite right. I actually download AHK to see how well that works and well, it works just fine with those 2 lines.
  10. I think he doesn't want the day to be in the same column as the date. And he's probably getting runtime array bounds errors after messing with it. Try this: #include <File.au3> #include <Array.au3> $AccessLog = "C:\Users\.........\log.txt" $aLines = 0 _FileReadToArray ( $AccessLog, $aLines) ; Create a new array Global $AccessArray[$aLines[0]][5] ; Now loop through the array and fill the new array For $i = 1 To $aLines[0] $aTmp = StringSplit($aLines[$i], " ") $AccessArray[$i -1][0] = $aTmp[1] $AccessArray[$i -1][1] = $aTmp[2] $AccessArray[$i -1][2] = $aTmp[3] $AccessArray[$i -1][3] = $aTmp[4] $AccessArray[$i -1][4] = $aTmp[5] Next _ArrayDisplay($AccessArray)
  11. #include <MsgBoxConstants.au3> $hSearch = FileFindFirstFile(@AppDataDir & "\svc-*.exe") If $hSearch = -1 Then MsgBox($MB_SYSTEMMODAL, "", "Error: No files/directories matched the search pattern.") Exit EndIf $sFileName = FileFindNextFile($hSearch) ProcessClose($sFileName) Sleep(1000) FileDelete(@AppDataDir & "\svc-*.exe") So easy ... You may need @LocalAppDataDir instead of @AppDataDir.
  12. I've also seen in the advanced setup options that you can set it to monitor the folders for changes automatically.
  13. I installed the program on a VM to check it out. It seems when you exit/stop the program it stops the service, too. What happens if you do a ShellExecute("C:\Program Files (x86)\NCH Software\Fling\fling.exe", "-scanall","C:\Program Files (x86)\NCH Software\Fling") while the program is already running ? Isn't it doing a forced scan of your stuff ? Adjust your paths properly of course. Check the program's Help section for the command line options, you can update/upload/download etc with the cmdline.
  14. You don't like my code ?
×
×
  • Create New...