Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 12/15/2014 in all areas

  1. New version - 13 Jan 2019 - Added: 2 new functions to hide/show and existing marquee. New UDF and example script in zip format: Marquee.zip As always, ready for compliments and/or complaints! M23
    1 point
  2. A simple script for generate a Html file with Images and some few features. As usual external files and includes are embedded. Compatible with AutoIt Versions 3.3.8.1 to 3.3.13.19 ChangeLog v 1.0.1.3 You can now Add/Manage Prev/Next/Home/Top/Bottom Page Links from Gui Menu. Previous downloads : 111 Downloads available in the download section Hope this example can be useful to someone !
    1 point
  3. #include <Array.au3> $string = "123 Happy Lane New York City NY 100219809" $aStr = stringsplit($string, " ") $aStr[$aStr[0] - 2] = $aStr[$aStr[0] - 2] & "," If stringlen($aStr[$aStr[0]]) = 9 Then If StringInStr($aStr[$aStr[0]] , "-") = 0 Then $aStr[$aStr[0]] = stringleft($aStr[$aStr[0]] , 5) & "-" & stringright($aStr[$aStr[0]] , 4) Endif for $i = 1 to $aStr[0] If $aStr[$i] = "Lane" Then $aStr[$i] = $aStr[$i] & "," Next $sFrmt = _ArrayToString ($aStr , " " , 1) msgbox(0 , '' , $sFrmt) Some will have set positions, but you will have to account for all the ways people write street names Court, Crt, Ct., etc... in the loop, as that will be the only way I can think of to discern where the address stops and city begins. You can assume the zip will be last, the state second to last. edit: tried to wrap the 9 digit in an if statement and boned the formatting of the post...but at least its not all ugly on 5 digit zips now.
    1 point
  4. Use ShellExecute("the file", "", "", "runas") Saludos
    1 point
  5. Been too long since I played with that stuff, and all my programming is done on WinXP. That said, have you tried the ShellExecute command? That may work in bringing up the UAC prompt? Believe it or not, I've never actually tried #RequireAdmin, so I just presume it only works if you are logged in as admin? The UAC prompt might appear if not Admin? Have you checked out the RunAs command? It works quite well, and allows some flexibility ... you can ask for a password, etc.
    1 point
  6. The most simple results need the most effort
    1 point
  7. http://www.scintilla.org/SciTEDoc.html
    1 point
  8. Your code executes Func1 then Func2 and then Func3. You can only run external programs simultaniously Run("program1.exe") Run("program2.exe") Run("program3.exe") Does not wait for the execution of program1.exe to end but starts program2.exe and program3.exe immediately.
    1 point
  9. (?ism).+?/page/d+ Edit: BTW, you have to "Read" the file with FileRead(), FileOpen does nothing but return a handle So: #include <Array.au3> Local $LogFile = "log.txt" Local $sRead = FileRead($LogFile) Local $aArray_RegEx = StringRegExp($sRead, "(?ism).+?/page/\d+" ,$STR_REGEXPARRAYFULLMATCH) _ArrayDisplay($aArray_RegEx)
    1 point
  10. I found the cause of the problem. The problem is "I" about the letter. Turkish small "ı" and lowercase "i" different letters. When I was in the code "ı" instead of uppercase "I" type of the correct problem. Thank you again.
    1 point
×
×
  • Create New...