Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 05/15/2018 in all areas

  1. For some time I was wondering how to execute AutoIt code from a web browser. I made some solutions using IE.au3, but that's only one browser. Is there a way to execute AutoIt from ANY browser? There is one - custom protocols. So, I looked how to add one, and here it is - running AutoIt from any web browser. AutoIt Protocol Example (run install.au3 before!): 2+2 in a MsgBox Edit: you can't use this protocol in posts here, how sad Have fun!
    1 point
  2. A TD element doesn't have a value attribute, so your call to _FFObj is likely failing (you need to check @error to confirm). You could try changing 'value' to 'textContent' or you could try modifying the table contents directly with _FFCmd -- $sObj = _FFXPath("/html/body/form[1]/div[2]/div[3]/div[2]/table[@id='bodyTable']/tbody/tr[3]/td[4]") _FFCmd("FFau3.xpath.textContent='-253.4'")
    1 point
  3. hi guys i have created a udf , i hope will be helpful at the comunity , best thankz at all for help and ofcourse if someone want modify , is welcome ; #FUNCTION# ==================================================================================================================== ; Name ..........: _FindOldestFolder ; Description ...: _FindOldestFolder udf functions find a oldest or newer folder inside a folder ; Syntax ........: _FindOldestFolder($Path, $old_new = 0) ; Parameters ....: $Path - dirctory you wish find ; $old_new - choice if a program must find oldest "0" or yanger "1" folder ,default oldest ; Return values .: if have error return 0 if nt have error return path+name folder ; Author ........: Faustf ; Modified ......: ; Remarks .......: ; Related .......: ; Link ..........: ; Example .......: No ; =============================================================================================================================== Func _FindOldestFolder($Path, $old_new = 0) If $old_new = Default Then $old_new = 0 Local $FileList = _FileListToArray($Path, "*.*", 2) If @error = 1 Then MsgBox(0, "", "No Folders Found.") Exit EndIf If @error = 4 Then MsgBox(0, "", "No Files Found.") Exit EndIf Local $aLDateDiff[($FileList[0] + 1)] For $i = 1 To UBound($FileList) - 1 Local $aDateFolder = FileGetTime($Path & "\" & $FileList[$i], 1, 0) If @error Then ;MsgBox(0, "FileGetTime Error", $Path & "\" & $FileList[$i]) Return 0 Else Local $dLOldDate = ($aDateFolder[0] & "/" & $aDateFolder[1] & "/" & $aDateFolder[2] & " " & $aDateFolder[3] & ":" & $aDateFolder[4] & ":" & $aDateFolder[5]) $aLDateDiff[$i] = _DateDiff("s", $dLOldDate, _NowCalc()) EndIf Next If $old_new = 0 Then Return $FileList[_ArrayMaxIndex($aLDateDiff)] Else Return $FileList[_ArrayMinIndex($aLDateDiff)] EndIf EndFunc ;==>_FindOldestFolder
    1 point
  4. I searched the internet and also used the data in jguinch's link, and I've come up with this include file for all of the device caps. There are some that I could not find any values for. I set them to '?', so if you know these values, please update my list. _DevCaps.au3
    1 point
  5. ok forget iuiautomation ./ zip and just run my shared example from scite and try to understand what its doing. Then use the last part of that example to iterate over the span elements of your own page. In general you should see your mouse moving over all your span controls and try to click at them. And last but not least study first the notepad examples in the help files to understand the general concepts of finding elements and doing actions on them. Its just hard to learn directly IE.UDF (or worse selenium/webbrowser udf) if you do not understand the internal developer tools of a browser or how to work with a (shadow) DOM tree.
    1 point
  6. Agreed. @faustf if the script actually works, it is probably better to add it to the Examples forum (more of an addition to the snippets thread than a full UDF IMO), rather than posting it in a topic where it looks like you did not know what you were doing.
    1 point
  7. If you are going to ask autoit to ask powershell to ask msconfig to ask wmi, why not just ask wmi? wmic CSPRODUCT GET NAME or in computersystem with these two: WMIC COMPUTERSYSTEM GET MODEL WMIC COMPUTERSYSTEM GET MANUFACTURER
    1 point
  8. hi i have created a udf , i hope will be helpful at the comunity , best thankz at all for help and ofcourse if someone want modify , is welcome ; #FUNCTION# ==================================================================================================================== ; Name ..........: _FindOldestFolder ; Description ...: _FindOldestFolder udf functions find a oldest or newer folder inside a folder ; Syntax ........: _FindOldestFolder($Path, $old_new = 0) ; Parameters ....: $Path - dirctory you wish find ; $old_new - choice if a program must find oldest "0" or yanger "1" folder ,default oldest ; Return values .: ; Author ........: Faustf ; Modified ......: ; Remarks .......: ; Related .......: ; Link ..........: ; Example .......: No ; =============================================================================================================================== Func _FindOldestFolder($Path, $old_new = 0) If $old_new = Default Then $old_new = 0 Local $FileList = _FileListToArray($Path, "*.*", 2) If @error = 1 Then MsgBox(0, "", "No Folders Found.") Exit EndIf If @error = 4 Then MsgBox(0, "", "No Files Found.") Exit EndIf Local $aLDateDiff[($FileList[0] + 1)] For $i = 0 To UBound($FileList) - 1 Local $aDateFolder = FileGetTime($Path & "\" & $FileList[$i], 1, 0) If @error Then ;MsgBox(0, "FileGetTime Error", $Path & "\" & $FileList[$i]) Else Local $dLOldDate = ($aDateFolder[0] & "/" & $aDateFolder[1] & "/" & $aDateFolder[2] & " " & $aDateFolder[3] & ":" & $aDateFolder[4] & ":" & $aDateFolder[5]) $aLDateDiff[$i] = _DateDiff("s", $dLOldDate, _NowCalc()) EndIf Next If $old_new = 0 Then Return $FileList[_ArrayMaxIndex($aLDateDiff)] Else Return $FileList[_ArrayMinIndex($aLDateDiff)] EndIf EndFunc ;==>_FindOldestFolder
    1 point
  9. Look at the SciTE4AutoIt3 helpfile (Ctrl+F1) after you have installer to Full version with the separate installer, and look for "User CallTip Manager ". Jos
    1 point
  10. New version released on Github a few days ago -- V0.1.0.10 - Changed: Add support for non-standard error codes in _WD_Alert - Changed: Detect non-present alert in _WD_Alert - Changed: __WD_Error coding - Fixed: Correctly set function error codes - Added: _WD_LastHTTPResult
    1 point
  11. jchd

    Filtering results in arrays

    I warmly support the SQLite approach. After a while it'll reveal much more flexible and powerful than any other pedestrian solution, regardless of the number of entries (hundreds or gazillions). The reason why the SQL way is much easier is that in SQL you explain precisely the result you want (almost in plain english) without ever having to consider how this result will be obtained. Out of the blue example: I want all columns of all entries meeting the following criteria: series = "000330710" and episode contains the letter "d" or seriesname starts with "b" and network = "NBC" displayed in decreasing airdate order. This could translate into: select * from tbl where series = '000330710' and episode like '%d%' union all select * from tbl where name like 'b%' and network = 'NBC' order by airdate desc;
    1 point
  12. If your file with 5100 rows is intended to grow, the best way by far is to use a SQLite database (and the SQLite.au3 UDF). It allows a huge amount of data and is extremely powerful and fast even when using multiple filters Otherwise filter the array as czardas said. Or read the file, filter the lines, and read the new text to an array the same way _FileReadToArray does... all these ways are much slower
    1 point
  13. [New Version] - 18 May 18 Changed: UDF now plays nicely with other controls which use the same Windows messages. New UDFs, examples in first post. M23
    1 point
×
×
  • Create New...