Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 04/15/2012 in all areas

  1. Sorry I did not read your first post carefully enough. This version should check all the lines where the first part matches and then write the lines to new file if anything else on the lines from file1 and file2 are different. #include <file.au3> Global $aArray1 = 0 Global $aArray2 = 0 Global $hDiff = -1 _FileReadToArray("C:File1.txt",$aArray1) _FileReadToArray("C:File2.txt",$aArray2) $hDiff = Fileopen("C:Diff.txt",10) For $i = 1 To UBound($aArray1) - 1 $sID1 = StringLeft($aArray1[$i],StringInStr($aArray1[$i],"ý",1,1)-1) For $j = 1 To UBound($aArray2) - 1 $sID2 = StringLeft($aArray2[$j],StringInStr($aArray2[$j],"ý",1,1)-1) if $sID1 == $sID2 Then ;Check if the first part is the same ;then check if anything else on the lines is different if $aArray1[$i] <> $aArray2[$j] Then FileWriteLine($hDiff, "File1: Line" & $i & ":" & $aArray1[$i] & @CRLF & "File2: Line" & $j & ":" & $aArray2[$j]) endif EndIf next Next FileClose($hDiff)
    1 point
  2. This is a basic script to do what you want. I have made the assumption that the 2 files contain the same number of lines and that the lines are in the same order. If this is not the case then something a little more complex will be required. #include <file.au3> Global $aArray1 = 0 Global $aArray2 = 0 Global $hDiff = -1 _FileReadToArray("C:File1.txt",$aArray1) _FileReadToArray("C:File2.txt",$aArray2) $hDiff = Fileopen("C:Diff.txt",10) For $i = 1 To UBound($aArray1) - 1 if $aArray1[$i] <> $aArray2[$i] Then FileWriteLine($hDiff, "File1:" & $aArray1[$i] & @CRLF & "File2:" & $aArray2[$i]) endif Next FileClose($hDiff) Edit: Fixed typo
    1 point
  3. Change the run line to: Run ("C:USB-relæUSBRelayUSBRelay.exe -c:8 -r:1#1", "", @SW_HIDE) This will hide the window when it's run.
    1 point
  4. buzz44

    A3 Mouse Odometre!

    Thats right! It has been a long time coming... but now it is finally here. Introducing the A3 Mouse Odometre. Ever wondering how far your mouse actually travels? Well now you can. (Active) > Neat GUI. > High-tech Advanced Transparency and window sliding. > Comes with 6 Landmarks to conquer. > Selectable Measurement formats. > Custom window placing and transparency settings. > Comes to life if the window is active! (See above and below) (In-Active) ------- NOTE: ------- This is meant as a "long-term" program to monitor your mouse' progress over a period of time, hence it being set to boot on start-up. This was originally created for Windows XP and I am unsure of what will happen to the appearance of the A3 Mouse Odometre on other OS's. The EXE of A3 Mouse Odometre will copy itself to @ProgramFilesDir & "\A3 Mouse Odometre\A3 Mouse Odometre.exe" and is set to boot on start-up. The AU3 file does not copy itself anywhere and is not set to boot on start-up. The files "Xfiles.mid" and "close.bmp" are copied to @SystemDir... eg "C:\Windows\System32\" All values are stored in "HKEY_CURRENT_USER\Software\Burrup\MouseOdometre" And no cheating! Edit: Due to the vast range of OS's and people's custom Start-Bar sizes etc, now included is a "Settings Window" which will turn on or off the landmark notifications and set the transparency... To access this feature hold "Ctrl+Alt+Z" and a window will appear where you can enter your settings. Default vales are Transparency: 80 and Landmark Notification: Off To hide A3 Mouse Odometre hold "Ctrl+Alt+H" To show A3 Mouse Odometre hold "Ctrl+Alt+S" To show A3 Mouse Odometre Settings hold "Ctrl+Alt+Z" Don't enter your co-ordinates in manually any more! Now with a new feature, simply click and drag to your desired location, as shown below. (Go Paint!) When your mouse nears the corner of the screen...it flips! Funky! --------------------------------------------------------------------------------------- Also if you have any *special* land mark request's give me a buzz... eg. If you want to see how how many times your mouse can walk the perimetre of your apartment block, I dont know! Anything like that, just tell me. If you want to know anything in particular about the soure code, or if you cant find something (as its over 1700 lines long!) just speak and I will point you in the right direction. Enjoy! Open to criticism/suggestions/bugs... Yes... this is the ORIGINAL Mouse Odometre =) NEW VERSION: SEE BELOW Be sure to keep re-visting to be up to date with the latest version Last Update: Saturday, 16th April, 2005 A3_Mouse_Odometre.zip
    1 point
×
×
  • Create New...