Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 05/28/2015 in all areas

  1. mikell

    stringregexp match

    You might want something like this #Include <Array.au3> $string = "" $string &= "IMG00136-20100524-0109" & @crlf $string &= "IMG00136_20100524_0109" & @crlf $string &= "IMG_20000526_100019_402" & @crlf $string &= "IMG-20120615-00028" & @crlf $string &= "IMG_20120615_00028" & @crlf $string &= "Texas-20111117-00060" & @crlf $string &= "Texas_20111117_00060" & @crlf $string &= "Southwest San Marcos Valley-20111110-00046" & @crlf $string &= "Southwest San Marcos Valley_20111110_00046" & @crlf $string &= "Long Island-Laketown-20110526-00023" & @crlf $string &= "Long Island-Laketown_20110526_00023" & @crlf $string &= "20141119_193702" & @crlf $string &= "20141119-193702" $aDate = StringRegExp($string, "(?i)(\V*)(\d{8})\V(\d{4})", 4) ; $STR_REGEXPARRAYGLOBALFULLMATCH Local $res[UBound($aDate)][3] For $i = 0 to UBound($aDate)-1 $res[$i][0] = ($aDate[$i])[1] $res[$i][1] = ($aDate[$i])[2] $res[$i][2] = ($aDate[$i])[3] Next _ArrayDisplay($res)
    2 points
  2. Valuater

    EzSkin_1-2-3

    23,622 downloads

    EzSkin_1-2-3 (exe) 1,000+ Skin & Button Choices 3 Clicks to Auto Complete Your Skin... it's Just EASY!! Enjoy!! Valuater 8)
    1 point
  3. Jon

    Forum Upgrade Status

    The forum is currently being upgraded - this post details the status. Content may look badly formatted at the moment. This is normal until the background rebuild tasks have finished. There is no need to re-edit your old posts or signatures to fix them, this should happen automatically. Please resist the urge to do so The post rebuild is estimated at 9 hours - it's not a quick task. Current Status: Forum upgraded - 100%AutoIt code boxes rebuilt - 100%Double-spaced paragraphs fixed up (as best I can) - 100%Forum to Wiki Access - 100%Signatures rebuilt - 100%Posts rebuilt (emoticons, bbcode, attachments, images, quotes) - 100%Legacy BBCode fixed in signatures​color - 100%color=rgb() - 100%url - 100%img - 100%size - 100%Search engine online - 100%
    1 point
  4. Hi Here is a UDF which allows you to have more than 1 item in the Clipboard and handle binaries not just text!. Can handle ALL data types text or images or binaries HTML yada yada. Gives autoIT functionality that potentially AHK can do , multiple paste buffers ClipboardEx.UDF - ; Clipboard 'Extended' creates a memory copy of current clipboard, and adds meta data like size and type sense. Credits to J Rowes for some of this code. ClipboardHistory.UDF: Simple LIFO History. ClipBoardHistoryGUI.UDF : Clipboard History viewer for history - can view items in history (mouse over) use mouse click to select an ltem and put on clipboard. Any files with the word 'example' in the name will run. Enjoy Ok version 2 - works on autoIT v 3.12. w7 added another example file. ClipboardHistoryV2.zip
    1 point
  5. Bert

    app is crashing

    ....putting on my hat that lets me remotely read your code.....nope, still doesn't work. How about you post your code? That would be more helpful than us guessing on what your problem is.
    1 point
  6. Starstar

    Problem calling DLL

    $struc = "struct;DWORD lpdwProcessId;endstruct" $struccrt = DllStructCreate($struc) $hCurrentWindow = WinGetHandle("[Active]") $dllTest = DllCall("user32.dll", "DWORD", "GetWindowThreadProcessId", "HWND*", $hCurrentWindow,"ptr",DllStructGetPtr($struccrt)) MsgBox(0,"",$dllTest[0])[Edit::] Your problem is that you are trying to get Window Thread Process Id. But you are not giving a space to where to store retrieved Data(ID). Try this one...
    1 point
  7. You are correct SadBunny, read it too fast and was comparing it in my head with another function instead of what this one was doing.
    1 point
  8. I may misunderstand Brewman's words here, because he strikes me as a man who knows more about this, but this operation doesn't "strip off high bytes and returns low bytes"... First, it's a "high bit " (not the high byte) we're talking about, or better worded IMHO the most significant bit of the SHORT that GetAsyncKeyState returns. (See here for the msdn doc, and let's stay big-endian for the moment ) Second, this method "strips off" (though I disagree with that terminology, which may be the misunderstanding?) low bits, not high bits. What BitAND does is comparing two numbers by writing them out in binary and returning the number you get when you "and" all the bits, i.e. each binary digit in the result is only 1 when that digit was also 1 in both input numbers. When you write hexadecimal number 0x8000 in binary, you get: 1000 0000 0000 0000. Note that there is only one 1 in that number, which meaning that if you BitAND() that number with any other number, the result ends up being either 0x8000 or 0x0 (which is just 0). Because for every digit except the leftmost one, at least one of the two digits of the compared numbers is 0, so the and-value is also 0. The leftmost one is either 0 or 1: it is certainly 1 in our second comparison number (0x8000), and will be 1 in the result number if and only if it was also 1 in the first comparison number. In this case, the return value of the function has its most significant bit set to 1 if the keycode you gave the function as a parameter is down, and to 0 if it is up. (Or if there was a problem in the method, in which case the entire result value is 0 in total.) /edit: See the keycodes, and again, the MSDN doc of the GetAsyncKeyState function.
    1 point
  9. I hope you both got a raise from your boss
    1 point
  10. blademonkey

    Finally Zip support

    Noobish question: Where is the documentation for objcreate() ? I cannot find anything on it in the help file. Thanks in advance. -Monkey.
    1 point
  11. blitzkrg

    Finally Zip support

    This is great.. thanks for the work.would it be possible to do something like this with the internal windows xp zip funciton?
    1 point
×
×
  • Create New...