Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 11/09/2016 in all areas

  1. Are you sure? Thought Win10 was available on RPI these days. Jos
    1 point
  2. On second thoughts, to be compatible with your version, FileFlush can be easily replaced with FlushFileBuffers API: Local $hHandle = FileOpen("C:\a.txt"), $tTimer = TimerInit() Do ConsoleWrite(FileGetSize("C:\a.txt") & @CRLF) Sleep(1000) DllCall("Kernel32.dll", "BOOLEAN", "FlushFileBuffers", "HANDLE", $hHandle) Until TimerDiff($tTimer) > 20000 FileClose($hHandle)
    1 point
  3. _IECreate returns an object variable, not an handle, this is because WinMove doesn't work with it. Also, ConsoleWrite doesn't see the content of object variables and has a strange behavior with them (but it can print handles).
    1 point
  4. Yep, Fileflush is supported from the next version of AutoIt, 3.3.2.0. Anyhow, if you don't try other solutions, this script does exatly what you want: Local $hHandle = FileOpen("C:\a.txt"), $tTimer = TimerInit() Do ConsoleWrite(FileGetSize("C:\a.txt") & @CRLF) Sleep(1000) FileFlush($hHandle) Until TimerDiff($tTimer) > 20000 FileClose($hHandle)
    1 point
  5. @Jfish - Thanks for that, will give it a try. I have used forfiles before, but had forgotten about it. Just for those wanting a little Valik nostalgia trip, of him in full flight ... and for those who never had the pleasure, but heard the rumors. Gonna see if I can use the code from there as well.
    1 point
  6. I tested this which I got from Stackoverflow to get the file size: forfiles /p C:\Temp /m file1.txt /c "cmd /c echo @fsize" replace c:\temp with your path and file1,txt with your file and it will echo the filesize.
    1 point
  7. water

    Excel Tutorial

    Welcome to AutoIt and the forum! AutoIt comes with an Excel UDF. Every function is describd in the help file with fully working examples. Further details can be found in the wiki.
    1 point
  8. Welcome to the world of CSS. The Login button is not a button at all, but just a table cell (TD) with a CSS class that makes it appear as a button. There could be more elegant ways to do this, but this should work: $oTDs = _IETagnameGetCollection($oIE, "TD") For $oTD in $oTDs If String(_IEPropertyGet($oTD, "innertext")) = "Login " Then _IEAction($oTD, "click") ExitLoop EndIf Next Dale
    1 point
×
×
  • Create New...