Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 01/27/2022 in all areas

  1. Jos

    Process does not exists

    Seriously? You sure you read the whole line in the right hand box?
    1 point
  2. There are several issues with the script.... like this one: $cpl = 'MLCFG32.exe' This works for me: $Officepath = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\OUTLOOK.EXE", "Path") $cpl = 'MLCFG32.cpl' Run ('"C:\Windows\System32\control.exe" "' & $Officepath & $cpl & '"') Jos
    1 point
  3. You'll note that the expression I posted is a large alternation: tips before of after number. In case you know tips will always be found before (resp. after) the number, you can simplify the expression by removing the unwanted after (resp. before) branch.
    1 point
  4. Take a look at the ELK stack https://www.elastic.co/what-is/elk-stack https://github.com/joshuar/elk-ping https://github.com/geberit/e2e-tests (which integrates autoit scripts and elastic stack) ELK stack: https://www.google.com/search?q=elk+stack From AutoIt you can ping and email https://www.autoitscript.com/autoit3/docs/functions/Ping.htm https://www.autoitscript.com/autoit3/docs/libfunctions/_INetSmtpMail.htm
    1 point
  5. Would this be a correct behavior? Local $aData = [ _ "This is an example text which may include the correct thing in most cases: tips 123456789.", _ "This is not 42345678.9 correct.", _ "This is not correct either as it contains 10 digits: 1234567890,", _ "this is not accepted either ddw123456789. ", _ "tips 111111111", _ "222222222 tips", _ "333333333", _ "tips.444444444", _ " 555555555 tips.", _ " tips 666666666.", _ " 777777777 ", _ " 888888888." _ ] For $s In $aData Local $a, $b $b = StringRegExp($s, "(?i)(?<= )tips(?= |\.)") $a = StringRegExp($s, "(?<= )(\d{9})(?= |\.)", $STR_REGEXPARRAYGLOBALMATCH) If @error Then ConsoleWrite("NUMBER NOT FOUND" & @CRLF) ElseIf $b Then ConsoleWrite("TIPS AND NUMBER FOUND: " & $a[0] & @CRLF) Else ConsoleWrite("ONLY NUMBER FOUND: " & $a[0] & @CRLF) EndIf Next
    1 point
  6. Would the string "blah fingertips match as well, when 987654321 is also there" match number and tips? Is "tips" always before number ?
    1 point
  7. Only when the third parameter is 0 (or skipped), it will return a boolean, otherwise it returns an array...So testing an array to be true is not the best idea !
    1 point
  8. Probably where the error pops up. #include <SQLite.au3> #include <SQLite.dll.au3> #include <Array.au3> Local $name = "Hacker" Local $con = "xxxxxxxxx" Local $mob = "HTC One X" Local $fult = "Software" Local $est = "400" Local $time = "192812" Local $date = "900902" Local $aRows, $iRows, $iCols _SQLite_Startup() _SQLite_Open('customer_database.db') _SQLite_Exec(-1, "CREATE TABLE if not exists Customer (Name TEXT, Contact TEXT, Mobile TEXT, Fult TEXT, Estimate TEXT, Time TEXT, Date TEXT);") _SQLite_Exec(-1, "INSERT INTO Customer(Name, Contact, Mobile, Fult, Estimate, Time, Date) " & _ "VALUES ("& _SQLite_FastEscape($name) & "," & _ _SQLite_FastEscape($con) & "," & _ _SQLite_FastEscape($mob) & "," & _ _SQLite_FastEscape($fult) & "," & _ $est & "," & _ $time & "," & _ $date & ");") _SQLite_GetTable2d(-1, "SELECT Contact FROM customer;", $aRows, $iRows, $iCols) _ArrayDisplay($aRows) _SQLite_Close() _SQLite_Shutdown() Keep away from _SQLite_Query. Prefer *_GetTable[2d] or *_QuerySingleRow. Declare SQLite types. Escape literal strings.
    1 point
×
×
  • Create New...