Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 07/03/2018 in all areas

  1. and a recent Windows update is reported to have fixed the issue. i updated the details in the post linked above by @mLipok.
    2 points
  2. Hello good evening to everyone. I tried to create my first code in autoit but I received this error during execution. It executed successfully (it opened program that I wanted to open, it clicked on button) but after it this error appears: Here is code: Example() Func Example() While 1 Sleep(10000) Run("C:\Program Files (x86)\TrafficHive\TrafficHive\TrafficHive") Sleep(10000) WinWait ("Traffic Hive", "", 20 ) Sleep(10000) ControlClick("Traffic Hive", "", "START") Sleep(10000) ControlClick("Traffic Hive", "", "STOP") Sleep(10000 WinClose("Traffic Hive") WEnd EndFunc ;==>ExampleCan you help me? Thank you!
    1 point
  3. To get an idea of how fast you can insert the rows in a listview, try displaying the array with _ArrayDisplay(). The code in _ArrayDisplay() is optimized code and It can probably not be done faster. If it's not fast enough, then there is an ultimate solution. This solution consists of using a virtual listview. In a virtual listview, data is not inserted in the listview. Instead, the virtual listview reads data directly from the source. In this case either the array or the SQLite database. Virtual listviews are fully and completely supported by AutoIt code. To get an idea of how fast you can show the array in a virtual listview, try displaying the array with _ArrayDisplayEx(). There is also a function _SQLite_Display() that can display data from a SQLite database directly in a virtual listview. This function is very very fast. The total time spent reading the 29,000 rows from the database and displaying the first page in the listview will probably be less than one second. Use this example to create your own virtual listview.
    1 point
  4. The example _GUICtrlListView_AddArray.au3 show this too, using TimerInit and TimerDiff for this.
    1 point
  5. can't you use _GUICtrlListView_AddArray($arrResult) to add all items?
    1 point
  6. Good evening @Exequiel You didn't insert the "/" in your path when you save the image... Take a look here: _ScreenCapture_SaveImage(@ScriptDir & $i & ".PNG", $hBmp) ; <-- it's not saving to my directoy :/ Becomes: _ScreenCapture_SaveImage(@ScriptDir & "\" & $i & ".PNG", $hBmp) ; It should saves the file now :) AND, you don't need to increase the $i, so you can remove the part: $i = $i + 1 'cause the Next does the job for you Let us know Best Regards.
    1 point
  7. Did you forget to return the value? _WD_ExecuteScript($sSession, "return $('#ElementId').height()")
    1 point
  8. Replace your _ArrayPush loop with this: For $i = 1 To UBound($retArray) - 1 $korobIdArray[$i] = $retArray[$i][1] Next
    1 point
  9. this discussion at the MSDN forum suggests that you enable SMB v3 at the server side hosting the shared folder, which may be hell of a hassle if you need to reconfigure dozens of servers or Linux-based NAS/SAN devices. this, however, was suggested before MS released another update: KB4284848, which (among other fixes included) states that it Addresses an issue where some users may receive an error when accessing files or running programs from a shared folder using the SMBv1 protocol. The error is "An invalid argument was supplied". and it is confirmed (by users in said discussion) that this update fixes the issue. since personally i try to keep away from the infestation named "Windows 10" (and if i must, i keep it as outdated as possible), i cannot confirm this myself. help yourselves gentlemen, its an open buffet.
    1 point
  10. zero code.. but still i had this laying around, maybe you'll learn something in the process, There's no way that i know of, that enables you to open without extracting, you always have to extract, even if only temporarily. Adapt the code to open and clear temp files. $RarPath = 'C:\Program Files\WinRAR\unrar.exe' $Path = @ScriptDir&'\Desktop.rar' $Files = '*.*' $ExPath = @ScriptDir&'\Ext' DirCreate($ExPath) ShellExecute($RarPath, 'x '& $Path&' '& $Files&' '& $ExPath)
    1 point
  11. So it is always a good idea to run Au3check for syntax errors.
    1 point
  12. Got it Sleep(10000 ;there was missing ) in last sleep
    1 point
×
×
  • Create New...