Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 04/21/2013 in all areas

  1. Atention! If you put Not in front a pair of parentheses, and inside is a keyword like AND / OR, AND will become OR and vice versa Eg. _NewVersion(False,True) Func _NewVersion($bSame_Thing = True, $bSame_Thing_Again = True) If Not ($bSame_Thing And $bSame_Thing_Again) Then ConsoleWrite("Hello World"&@LF) EndFunc
    1 point
  2. Ilounah

    File Path

    wow it works thank you very much muawh..life saver
    1 point
  3. Are you talking about this UDF?: Hi!
    1 point
  4. Hi flappert87 I like the prog. I wrote something which has the same purpose. There was a udf written by a member called storme. It downloads the latest stable (or beta whichever you set it too) selected program from file hippos site. The reason im menioning this is 2 fold. 1 even though the filename may change the udf still gets the most current and up to date version plus it has a flag to get just the version number so then you can compare to what you have found on the system. File hippo doesnt have every program you got listed in your app but it has the majority of common/popular ones at least. This should reuce the time you spend manually updating. Your app reminds me of a diff app called patch my pc. If you need any help let me know. Ill try to find the udfs link and post it Hope this helps
    1 point
  5. JohnOne

    DirectDraw for AutoIt

    I think you're asking a bit much, just linking to a project page, which itself uses external libraries. Try putting some effort in for a problem you want solving. How about some code you tried for a start?
    1 point
  6. Nevertheless, buy a new mouse! 2$ isn't too expensive.
    1 point
  7. Sven

    Sleep down to 100 Nano seconds

    Thanks. "timeBeginPeriod" is exactly what I needed. It also shows that AutoIt's sleep() function is indeed hardcoded to go as low as 10ms. Here's a new code example: $hDll_ntdll = DllOpen("ntdll.dll") $hDll_winmm = DllOpen("winmm.dll") $rounds = 500 $resolution = 0 $result1 = _test(); tests for and shows the standard timer resolution MsgBox(0, "test 1", "Example for standard timer resolution" & @CRLF & @CRLF & "total: " & $result1 & @CRLF & "average: " & $result1 / $rounds) $result2 = _test(1); sets timer resolution to 1ms and performs test MsgBox(0, "test 1", "Example for 1ms timer resolution" & @CRLF & @CRLF & "total: " & $result2 & @CRLF & "average: " & $result2 / $rounds) $result1 = _test(); to show that the timer resolution was successfully reset MsgBox(0, "test 1", "Example for standard timer resolution" & @CRLF & @CRLF & "total: " & $result1 & @CRLF & "average: " & $result1 / $rounds) Func _Test($highPrecision = 0) Sleep(1000) $begin = TimerInit() For $i = 1 To $rounds _HPSleep(1, 1, $highPrecision) Next $dif = TimerDiff($begin) Return ($dif) EndFunc ;==>_Test Func _HPSleep($iSleep, $fMs = 1, $highPrecision = 0) ; default is milliseconds, otherwise microseconds (1 ms = 1000 µs) If $fMs Then $iSleep *= 1000 ; convert to ms if $highPrecision > 0 Then DllCall($hDll_winmm, "int", "timeBeginPeriod", "int", $highPrecision) DllCall($hDll_ntdll, "dword", "NtDelayExecution", "int", 0, "int64*", -10 * $iSleep) if $highPrecision > 0 Then DllCall($hDll_winmm, "int", "timeEndPeriod", "int", $highPrecision) EndFunc ;==>_HPSleep A word of caution, directly from Microsoft, http://msdn.microsoft.com/en-us/library/windows/desktop/dd757624(v=vs.85).aspx
    1 point
×
×
  • Create New...