找回密码
 加入
搜索
楼主: tubaba

[原创] 网站登录管家

 火.. [复制链接]
发表于 2013-12-5 20:58:30 | 显示全部楼层
看起来  挺不错啊
发表于 2013-12-7 09:32:34 | 显示全部楼层
支持楼主。。。
 楼主| 发表于 2013-12-7 19:51:39 | 显示全部楼层
回复 14# snailyyy
;===============================================================================
;
; Function Name:   _GUIEnhanceCtrlDrift
; Description::    Moves a control to ($iX, $iY) in a smooth manner
; Parameter(s):           $hWnd - Window Handle
;                                   $Ctrl - control id
;                                   $iX - x pos to move to
;                                   $iY - y pos to move to
;                                   $iStep - number of pixels to move each step
; Requirement(s):  None
; Return Value(s): 0, @error = 1 - Window doesn't exist
;                                   1 - Success
; Author(s):           RazerM
; Note(s):                   Based on Bresenham's line drawing algorithm
;                                   [url]http://www.falloutsoftware.com/tutorials/dd/dd4.htm[/url]
;
;===============================================================================
    Func _GUIEnhanceCtrlDrift($hWnd, $Ctrl, $iX, $iY, $iStep = 1)
        If Not WinExists($hWnd) Then Return SetError(1, 0, 0)
        Local $aOldPos = ControlGetPos($hWnd, "", $Ctrl)
        Local $iXOld = $aOldPos[0]
        Local $iYOld = $aOldPos[1]
        Local $fSteep = Abs($iY - $iYOld) > Abs($iX - $iXOld)
        Local $aPoints[1][2]
        Local $iOldX = $iX, $iOldY = $iY, $iYVal, $iYStep
        Local $iDeltaX, $iDeltaY, $iError, $iDeltaError
        If $fSteep Then
                __Swap($iXOld, $iYOld)
                __Swap($iX, $iY)
        EndIf
        If $iXOld > $iX Then
                __Swap($iXOld, $iX)
                __Swap($iYOld, $iY)
        EndIf
        $iDeltaX = $iX - $iXOld
        $iDeltaY = Abs($iY - $iYOld)
        $iError = 0
        $iDeltaError = $iDeltaY / $iDeltaX
        $iYVal = $iYOld
        If $iYOld < $iY Then
                $iYStep = 1
        Else
                $iYStep = -1
        EndIf
        For $iXVal = $iXOld To $iX
                If $fSteep Then
                        ReDim $aPoints[UBound($aPoints) + 1][2]
                        $aPoints[UBound($aPoints) - 1][0] = $iYVal
                        $aPoints[UBound($aPoints) - 1][1] = $iXVal
                Else
                        ReDim $aPoints[UBound($aPoints) + 1][2]
                        $aPoints[UBound($aPoints) - 1][0] = $iXVal
                        $aPoints[UBound($aPoints) - 1][1] = $iYVal
                EndIf
                $iError = $iError + $iDeltaError
                If $iError >= 0.5 Then
                        $iYVal = $iYVal + $iYStep
                        $iError = $iError - 1
                EndIf
        Next
        If $aPoints[1][0] = $iOldX And $aPoints[1][1] = $iOldY Then
                For $iPoint = UBound($aPoints) - 1 To 1 Step $iStep * - 1
                        ControlMove($hWnd, "", $Ctrl, $aPoints[$iPoint][0], $aPoints[$iPoint][1])
                        Sleep(1)
                Next
                ControlMove($hWnd, "", $Ctrl, $aPoints[1][0], $aPoints[1][1])
        Else
                For $iPoint = 1 To UBound($aPoints) - 1 Step $iStep
                        ControlMove($hWnd, "", $Ctrl, $aPoints[$iPoint][0], $aPoints[$iPoint][1])
                        Sleep(1)
                Next
                ControlMove($hWnd, "", $Ctrl, $aPoints[UBound($aPoints) - 1][0], $aPoints[UBound($aPoints) - 1][1])
        EndIf
        Return 1
EndFunc   ;==>_GUIEnhanceCtrlDrift

Func __Swap(ByRef $va, ByRef $vb)
        Local $vTemp
        $vTemp = $va
        $va = $vb
        $vb = $vTemp
EndFunc   ;==>__Swap
 楼主| 发表于 2013-12-7 19:53:46 | 显示全部楼层
回复 13# xms77


   用6个不同的私钥层层加密字符串
发表于 2013-12-8 08:58:43 | 显示全部楼层
回复 18# tubaba


    3ks~
发表于 2013-12-8 10:41:21 | 显示全部楼层
这个挺有意思的哦呵呵
发表于 2013-12-17 09:20:21 | 显示全部楼层
非常好,非常强大。感谢,学习了
发表于 2014-1-2 14:43:14 | 显示全部楼层
回复 1# tubaba


    有密码
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-5-20 10:13 , Processed in 0.070436 second(s), 16 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表