Jump to content

Leaderboard

Popular Content

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

  1. i found a workaround, that works for me: #include <IE.au3> Global $oIE = _IECreate("about:blank") Global $eval = 0 $oIE.Document.parentWindow.execScript("document.body.oAutoIt = eval;") $eval = Execute("$oIE.Document.body.oAutoIt") If IsObj($eval) Then MsgBox(0, "eval", $eval('typeof "str"'));execute js and get return $eval("alert('test');") EndIf hope it's useful to someone
    1 point
  2. Hi czardas, Absolutely great!!! It is working!! This is what i wanted.Issue SOLVED Changed assignment of $getStr FROM $getStr=getStr() TO $getSr= StringStripWS(gtSrNo(), 8) Thanks a whole lot olmar
    1 point
  3. Had some time to play, try this: #include <Array.au3> Global $aFileListVers[0] Local $aFileList = _FileListToArray("C:\WB Resources\FAINT_DONT_LINK_THESE\", "*.exe", $FLTA_FILES, True) For $i = 0 To UBound($aFileList) - 1 $aFileVersion = FileGetVersion($aFileList[$i], $FV_PRODUCTVERSION) _ArrayAdd($aFileListVers, $aFileVersion) Next _ArrayDisplay($aFileListVers) _ArraySort($aFileListVers, 1) _ArrayDisplay($aFileListVers) MsgBox(0, "Version", "Highest Version: " & $aFileListVers[0]) I did notice that not all exe's have a version as such that autoit can find it this way. So check yours first using Context Menu (Right Click) Properties/Details and look at Product Version. If its empty this will not produce anything. This one for instance has a File Version but no Product Version so you would have to change the FileGetVersion Parameter
    1 point
×
×
  • Create New...