Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 08/25/2017 in all areas

  1. water

    AD - Active Directory UDF

    Version 1.6.3.0

    17,292 downloads

    Extensive library to control and manipulate Microsoft Active Directory. Threads: Development - General Help & Support - Example Scripts - Wiki Previous downloads: 30467 Known Bugs: (last changed: 2020-10-05) None Things to come: (last changed: 2020-07-21) None BTW: If you like this UDF please click the "I like this" button. This tells me where to next put my development effort
    1 point
  2. Maybe i misunderstood something but if you use an offset in StringRegExp and want to match from the beginning of the current position then you have to use \G instead of ^: StringRegExp("abc", "\G[a-z]", 1, 1) ConsoleWrite(@error&@CRLF) StringRegExp("abc", "\G[a-z]", 1, 2) ConsoleWrite(@error&@CRLF)
    1 point
  3. Yes You can allow trailing spaces in the regex by adding \h* just before the $ and then remove them later if a clean address is needed in the script, or remove them before the check .... both ways are correct, choose your flavour
    1 point
  4. mikell

    Help Parsing XML

    @chaoticyeshua As an alternative you might simply extract the wanted data from the response using a regular expression $txt = $oXML.responseText $sEndDate = StringRegExpReplace($txt, '(?s).*?<EndDate>([^<]+).*', "$1")
    1 point
  5. ;remove spaces from end of each line $newString = StringRegExpReplace($newString, "\h+(?=\R)","") ;insert at begin of non empty lines $newString = StringRegExpReplace($newString, "(?:^|\R)\K(?!\R)","{\\pard \\fs24 \\ql \\f0 \\li0 \\fi0 \\0") ;insert at end of non empty lines $newString = StringRegExpReplace($newString, "\N+\K"," \\par}\\0") ;insert at empty lines $newString = StringRegExpReplace($newString, "(?:^|\R)\K(?=\R)","{\\pard \\fs24 \\ql \\f0 \\li0 \\fi0 \\par}\\0") ConsoleWrite($newString)
    1 point
  6. Tex is a list of numbers you want to program a number of his load and rebound for them to send a message. Of course I do I set the time to send a message.
    1 point
  7. It would be nice to have possibility to set default compile icon by some option/registry setup to mimic previous versions behaviour.
    1 point
  8. This is not a bug and I don't know where it says in the help file of v3.3.8.1 that the compiled script would use the default A icon. If you can point me to that topic then I can fix it, otherwise it doesn't need to be added as it was never documented in the first place. You can use the pragma directive #pragma compile(Icon, ICONPATH) to specify the path. Note, there are many icons located in the C:\Program Files\AutoIt3\Aut2Exe\Icons folder.
    1 point
  9. You can use the font 'Marlett' to have the original characters. $hGUI = GUICreate("Test", 200, 150) $hCheck1 = GUICtrlCreateLabel("", 10, 10, 20, 20, 0x1201) GUICtrlSetFont(-1, 19, 400, 0, "Marlett") GUICtrlSetBkColor(-1, 0xFFFFFF) $hLbl1 = GUICtrlCreateLabel("A user-drawn checkbox", 35, 15, 200, 20) $hCheck2 = GUICtrlCreateLabel("", 10, 50, 25, 25, 0x1201) GUICtrlSetFont(-1, 24, 400, 0, "Marlett") GUICtrlSetBkColor(-1, 0xFFFFFF) $hLbl2 = GUICtrlCreateLabel("Another user-drawn checkbox", 40, 57, 200, 20) GUICtrlCreateCheckbox("An API-created checkbox", 10, 100, 200, 20) GUISetState() While 1 Switch GUIGetMsg() Case -3 Exit Case $hCheck1, $hLbl1 Switch GUICtrlRead($hCheck1) Case "" GUICtrlSetData($hCheck1, "a") Case Else GUICtrlSetData($hCheck1, "") EndSwitch Case $hCheck2, $hLbl2 Switch GUICtrlRead($hCheck2) Case "" GUICtrlSetData($hCheck2, "r") Case Else GUICtrlSetData($hCheck2, "") EndSwitch EndSwitch WEnd
    1 point
  10. electrico, Would Sir like fries with that? #include <GuiconstantsEx.au3> #include <WindowsConstants.au3> #include <SendMessage.au3> Global Const $SC_DRAGMOVE = 0xF012 HotKeySet("{ESC}", "On_Exit") Func On_Exit() Exit EndFunc $hGUI = GUICreate("X", 50, 50, -1, -1, BitOR($WS_POPUP,$WS_BORDER), $WS_EX_TOPMOST) GUISetBkColor(0xFF0000, $hGUI) GUISetState() While 1 Switch GUIGetMsg() Case $GUI_EVENT_PRIMARYDOWN _SendMessage($hGUI, $WM_SYSCOMMAND, $SC_DRAGMOVE, 0) EndSwitch WEnd M23
    1 point
  11. This? #include <GuiConstantsEx.au3> #include <WindowsConstants.au3> $hGUI = GUICreate("My GUI", 300, 200, -1, -1, $WS_POPUP) GUISetState() Do Until GUIGetMsg() = $GUI_EVENT_CLOSE
    1 point
×
×
  • Create New...