Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 07/27/2012 in all areas

  1. Windows 8 is still in development so best to report issues once it's released in October, if they still exist.
    1 point
  2. BrewManNH

    newbie autoit...

    I'll admit it, I lol'ed.
    1 point
  3. JohnOne

    newbie autoit...

    Are you new?
    1 point
  4. You can grill and season it... #include <Array.au3> Local $asInput[2], $asOutput[2][2] $asInput[0] = "192.168.0.1" & @TAB & "hostname 1" & @TAB & "#some comment about hostname 1" $asInput[1] = "192.168.0.2 hostname 2 #some comment about hostname 2" For $string in $asInput _Output($asOutput, $string) If @error Then msgbox(64 + 262144, @ScriptName, "Failed to parse '" & $string & "'. Was not TAB or SPACE delimited.") _ArrayDisplay($asOutput) ; Check Output Next Func _Output(ByRef $asOutput, $sString) Static $x = 0 ; hehe... static-x $asSplit = StringSplit($sString, "#") If Not @error Then $sString = $asSplit[1] If StringInStr($sString, @TAB) Then $asSplit = 0 $asSplit = StringSplit($sString, @TAB) $asOutput[$x][0] = $asSplit[2] $asOutput[$x][1] = $asSplit[1] $x+=1 Return SetError(0,0,True) Else $iSpace = StringInStr($sString, " ") If Not @error Then $asOutput[$x][0] = StringRight($sString, StringLen($sString) - $iSpace) $asOutput[$x][1] = StringLeft($sString, $iSpace - 1) Return SetError(0,0,False) Else Return SetError(1,0,False) EndIf EndIf Return SetError(1,0,False) EndFunc
    1 point
  5. You can use GDI+ using the function DllCall($ghGDIPDll, "uint", "GdipBitmapGetPixel", "handle", $hBitmap, "int", $iX, "int", $iY, "uint*", 0) Br, UEZ
    1 point
×
×
  • Create New...