Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 10/20/2017 in all areas

  1. For a long time they ate mine too. And then... I discovered this concept on rexegg.com : StringRegExpReplace($string, "(KeepThis)(*SKIP)(*FAIL)|(FireThat)", "") "Sometimes, we want a bit more sophistication to express what we don't want. (...) For this kind of situation, the (*SKIP)(*FAIL) construct is wonderful. With it, instead of cooking up some convoluted negative logic, you express exactly what you want to avoid; if you find it, you skip it; if you don't find it, you match what you want." Pretty cool
    2 points
  2. Here it is ALL credits to iamtheky for the astounding work. This is nothing but a small contribution #include <Array.au3> Local $aBans[5][5] = [[0, 1, 2, 1, 0], _ [4, 5, 5, 4, "1x"], _ ["1x" , 4, 3, 1, 3], _ [0, 3, 2, 1, 0], _ [1, 5, "1x", 4, 1]] _ArrayDisplay(_DeleteRowsNotContaining($aBans , "1x")) Func _DeleteRowsNotContaining($aArray , $sDelete) local $aOut[0][ubound($aArray , 2)] _ArrayAdd($aOut , stringstripws(stringregexpreplace(_ArrayToString($aArray) , "(?m)((?:^|.*?\|)" & $sDelete & "(?:\|.*?|$)\R?)(*SKIP)(*FAIL)|^.*\R?" , "") , 6) , 0 , "|" , @CR) return $aOut EndFunc ; _DeleteRowsNotContaining
    1 point
  3. Let me google that for you.... https://www.tecmint.com/ssh-passwordless-login-with-putty/ http://www.thegeekstuff.com/2017/05/putty-plink-examples/ https://the.earth.li/~sgtatham/putty/0.58/htmldoc/Chapter7.html
    1 point
  4. Agree that plink is probably your best bet. I do a lot in putty sessions for customers, and use the following as a framework: Local $sEXE = @MyDocumentsDir & "\PuTTY\PLINK.EXE" Local $sUser = " -l root" Local $sPass = " -pw Password1" Local $sCommand = " esxcli storage vmfs unmap -l " For ... ShellExecute($sEXE, " -ssh " & $aRange1[$a][1] & $sUser & $sPass & $sCommand & $aRange1[$a][0]) ; - Pulls datastores from excel range and runs vmfs unmap Next
    1 point
  5. You might want to check out plink.exe (command line putty) which works better for non-interactive telnet operations and can be run from a batch file.
    1 point
  6. For me too... What if you try with tabs ? #include <IE.au3> Global Const $navOpenInNewTab = 0x0800 $url = "http://www.jobhero.ph/resume-search/all/" $oIE = _IECreate($url & "1") _IELoadWait($oIE) Sleep(2000) _Next(5) Func _Next($a) For $i = 2 to $a $oIE.Navigate2($url & $i, $navOpenInNewTab, "_top") _IELoadWait($oIE) Sleep(2000) Next EndFunc
    1 point
  7. You need to keep the script running. The easiest way is to add: While(1) Sleep(1000) WEnd Treat everything outside of "Func"s as the program that gets run.
    1 point
  8. Any way to start Google Chrome in headless mode? chrome --headless --remote-debugging-port=9222 http://example.com
    1 point
  9. Your code ran fine for me. Are you using the latest version of AutoIt?
    1 point
  10. Put one IELoadWait after the navigate. If this doesnt help , put IEAttach after that.
    1 point
×
×
  • Create New...