Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 10/16/2012 in all areas

  1. You shouldn't think so low of the end user. Another approach would be to search the hard drive for a folder named dropbox. Look at Melba23's RecFileListToArray in the Examples.
    1 point
  2. CptSpike, Posted code is posted code...do yourself a favor and take time to understand the code. Good Luck, kylomas
    1 point
  3. The names on the desktop can be gathered by simply looking at the desktop folder in the user directory and getting a list of the names
    1 point
  4. Using Water's array #include <array.au3> #include <Color.au3> Global $aValues = IniReadSection("C:temppantone.ini", "Section1") _Arraysort($aValues, 0, 1, 0, 0) ;_ArrayDisplay($aValues) $iColor = 16702209 $iGreen = _ColorGetGreen ( $iColor ) $iRed = _ColorGetRed ( $iColor ) $iBlue = _ColorGetBlue ( $iColor ) ConsoleWrite ( $iGreen & " " & $iRed & " " & $iBlue & @CRLF ) Dim $aDiff[1][2] $iCounter = 0 For $i = 1 To UBound ( $aValues ) - 1 $iCurrentDiff = Abs ( _ColorGetGreen ( $aValues[$i][0] ) - $iGreen ) + Abs ( _ColorGetRed ( $aValues[$i][0] ) - $iRed ) + Abs ( _ColorGetBlue ( $aValues[$i][0] ) - $iBlue ) ReDim $aDiff[$iCounter+1][2] $aDiff[$iCounter][0] = $iCurrentDiff $aDiff[$iCounter][1] = $i $iCounter += 1 Next _ArraySort ( $aDiff, 0,0,0,0 ) $iLowestDiff = $aDiff[0][1] ConsoleWrite ( "Value searched: " & $iColor & @CRLF & "Value returned: " & $aValues[$iLowestDiff][0] & @CRLF )
    1 point
  5. Something like this. Should be self explantory: InetGet("http://www.userbase.org/data.ini", @TempDir & "data.ini") $FirstLne = IniRead("C:data.ini", "[UserDb]", "Website=", "") FileDelete($FirstLne) ; make sure the file does not exist While 1 ShellExecuteWait("wget.exe", "-r " & $FirstLne, 1) ; Download the file If FileExists($FirstLne) Then ExitLoop ; If the file does still not exist, wait a minute and retry Sleep(60000) WEnd
    1 point
  6. legend, Not only is that a very stupid question - but what is the connection with AutoIt? M23
    1 point
  7. AZJIO

    _GetFileType

    $ASSOCSTR_FRIENDLYDOCNAME
    1 point
  8. I think it would be wise for both to read the help file.
    1 point
  9. PhoenixXL

    Remote Gmail (UDF)

    24 Downloads yet no Reply Please give me Feedback and Suggestions Regards Phoenix XL
    1 point
  10. PAEz

    Disable Google Incognito Mode

    Dont want to spoil your fun or anything, but theres a more Chrome way of doing this..... http://dev.chromium.org/administrators/policy-list-3#IncognitoEnabled ....so on windows (only tested in xp) you can create a reg entry to disable incognito. Create a text file called noIncognito.reg and enter this as its text..... Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome] "IncognitoEnabled"=dword:00000000 ....save it and then double click the file to launch it and it should enter the right reg key and then you wont be able to open incognito mode. Another useful policy for this sort of thing is the force install policy, this is good if you want to runny nanny software and dont want your kids getting past it...... http://dev.chromium.org/administrators/policy-list-3#ExtensionInstallForcelist ...the extension cant be installed before adding this policy, or just uninstall the extension after adding the policy and it will install the extension and they wont be able to uninstall or disable it. These settings will apply to all instances of chrome regardless of what profile they are using.
    1 point
×
×
  • Create New...