Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 04/30/2019 in all areas

  1. @jmp Another reason to not sell your script.
    2 points
  2. @Nine I believe the OP is unsure how to locate the element using the "for" attribute.
    2 points
  3. Something like this : Local $nRows = _GUICtrlListView_GetItemCount($idListview) Local $aCol [$nRows], $iColToGet = 1 For $i = 0 to $nRows-1 $aCol[$i] = _GUICtrlListView_GetItemText ($idListview,$i,$iColToGet) Next _ArrayDisplay ($aCol)
    1 point
  4. @all, we all understand the issues this particular user is causing, and will be dealing with it from a Moderation standpoint. If you are (rightly) frustrated, please just pass the post by rather than arguing, per the forum rules. Lack of responses is going to be more of an incentive to provide more information than the insults.
    1 point
  5. Why do you even bother to try programming when you have no idea what you are doing ? I am curious as why, but I must admit this is kind of pathetic.
    1 point
  6. what code? you've posted NONE of yours! no excuses either--that is rather pathetic, we were all new at some point. difference is we read help files and do research. And when you are given help in other threads but don't implement it, who could possibly know but you why it doesn't work?!? I'm out, you are now on Ignore. bye.
    1 point
  7. you sure don't like answering questions do you? A Moderator asked you a very important question. Why should anyone help you if you refuse to take help advice? It makes some people angry to see code-begging.
    1 point
  8. mikell

    process XML file

    For ?| the helpfile says : "Non-capturing group with reset. Resets capturing group numbers in each top-level alternative it contains" Practically, this means that you won't get an unwanted blank line in the resulting array in case of matching failure of the first part of the alternation. You can check this by replacing ?| by ?: For the 2nd alternative : (?m) allows ^ and $ to "match beginning and end of line (not full string)". This feature is used in the 2nd alternative only, reason why I put it there - but it could be placed at the beginning of the expression as well In usual language, (?m)^\h*([^<]*?)$ means : Between beginning and end of line (anchors are important to force check of the whole line), match 0 or more horizontal WS (don't capture) and 0 or more "non-< " chars (capture). So if there is a < char in the line, it causes the whole match to fail
    1 point
  9. Nine

    Windows variables - (Moved)

    What do you mean, windows variable ? Is it an environment variable ? @Exit code is correct, based on your code.
    1 point
  10. You could also just compile your scripts as .a3x "it's a radio option in the compiler" and then launch them via a shortcut created that points to the autoit3.exe and the .a3x file as a command line option. I have been slowly moving all my automations over to that as they never seem to get flagged.
    1 point
  11. jchd

    UTF-8 Strings in AutoIt

    Windows inaugurated Unicode support with an upgrade to Win 9x and was one of the very first large software company to do so. With Win NT system calls used UCS-2 and with Win 2000 and up the encoding settled on UTF16-LE. What's new with Win 10 is indeed that you can select the local codepage to be 65001 (UTF-8) system-wide, not only for the DOS console (CHCP) and for use in conversion functions (in code I posted above). That only changes the behavior of system calls explicitely ANSI, ending in *A, which then consider the byte string as UTF8 data. The encoding used in all other primitives is UTF16-LE and will remain such, until UTF32 will be a good incentive to sell more memory and storage (just guessing here). In short: apps designed to run on 99.5% of today's PCs should use the conversion functions above for converting codepage input and output when required, but everything else (main code) remains UCS2 (BMP of Unicode). You'll find a number of Base-64 related post when searching here. If you find a use for that, note that the regexp support functions (PCRE1) accept the (*UCP) switch (see StringRegExp help). Local $String = "Sample simple english text 한국어 텍스트의 예 טקסט עברית ירושלים русский образец អត្ថបទថៃ" Local $aLang = StringRegExp($String, "(*UCP)(\p{Hangul}+(?:\s+\p{Hangul}+)*)", 1) If not @error Then MsgBox(64, "Korean text found", $aLang[0]) $aLang = StringRegExp($String, "(*UCP)(\p{Khmer}+(?:\s+\p{Khmer}+)*)", 1) If not @error Then MsgBox(64, "Thaï text found", $aLang[0]) $aLang = StringRegExp($String, "(*UCP)(\p{Latin}+(?:\s+\p{Latin}+)*)", 1) If not @error Then MsgBox(64, "Latin text found", $aLang[0]) $aLang = StringRegExp($String, "(*UCP)(\p{Hebrew}+(?:\s+\p{Hebrew}+)*)", 1) If not @error Then MsgBox(64, "Hebrew text found", $aLang[0]) $aLang = StringRegExp($String, "(*UCP)(\p{Cyrillic}+(?:\s+\p{Cyrillic}+)*)", 1) If not @error Then MsgBox(64, "Cyrillic text found", $aLang[0])
    1 point
  12. caramen

    AutoIt Snippets

    To know if a control is checked or not. Func _IsChecked($idControlID)     Return BitAND(GUICtrlRead($idControlID), $GUI_CHECKED) = $GUI_CHECKED EndFunc
    1 point
  13. AutoIt is very useful and easy to use even for non-programmers (like me). Most of the examples in the Example section of the forum are somewhat advanced and not suitable for non-programmers who want to learn how to do simple things with AutoIt. I've attached a few simple scripts with lots of comments to help beginners. For more help on any function, press F1 when your curser is on the desired function name. Example01_MouseSwitchButtons.au3 Example02_HelloWorld.au3 Example03_CopyPasteNotepadToWord.au3 Example04_CopyPasteNotepadToWord_2.au3 Example05_OpenLinkInIE.au3 Additional simple AutoIt examples can be downloaded from here: '?do=embed' frameborder='0' data-embedContent>> P.S. Can somebody pin this topic?
    1 point
  14. it was not asking for key after reaching 3 days and Script continues work without key.
    0 points
×
×
  • Create New...