UPDATE tablename SET tablefield = replace(tablefield,”findstring”,”replacestring”);
UPDATE wp_posts SET post_content = replace(post_content,"tiêm","replace");
UPDATE wp_posts SET post_content = replace(post_content,"truyền","replace");
UPDATE wp_posts SET post_content = replace(post_content,"chích","replace");
đọc truyện online
Thứ Năm, 7 tháng 9, 2017
Thứ Ba, 15 tháng 8, 2017
PostMessage(m_hVLWin, WM_KEYDOWN, VK_DOWN, 0x00500001)
PostMessage(m_hVLWin, WM_KEYDOWN, VK_DOWN, 0x00500001)
giải thích:
- PostMessage sẽ truyền message
m_hVLWin: handle của window.
WM_KEYDOWN : gửi phím đến window
VK_DOWN: cái này là virtual key code:
giải thích:
- PostMessage sẽ truyền message
m_hVLWin: handle của window.
WM_KEYDOWN : gửi phím đến window
VK_DOWN: cái này là virtual key code:
Constant/value | Description |
---|---|
|
Left mouse button |
|
Right mouse button |
|
Control-break processing |
|
Middle mouse button (three-button mouse) |
|
X1 mouse button |
|
X2 mouse button |
|
Undefined |
|
BACKSPACE key |
|
TAB key |
|
Reserved |
|
CLEAR key |
|
ENTER key |
|
Undefined |
|
SHIFT key |
|
CTRL key |
|
ALT key |
|
PAUSE key |
|
CAPS LOCK key |
|
IME Kana mode |
|
IME Hanguel mode (maintained for compatibility; use VK_HANGUL) |
|
IME Hangul mode |
|
Undefined |
|
IME Junja mode |
|
IME final mode |
|
IME Hanja mode |
|
IME Kanji mode |
|
Undefined |
|
ESC key |
|
IME convert |
|
IME nonconvert |
|
IME accept |
|
IME mode change request |
|
SPACEBAR |
|
PAGE UP key |
|
PAGE DOWN key |
|
END key |
|
HOME key |
|
LEFT ARROW key |
|
UP ARROW key |
|
RIGHT ARROW key |
|
DOWN ARROW key
|
|
SELECT key |
|
PRINT key |
|
EXECUTE key |
|
PRINT SCREEN key |
|
INS key |
|
DEL key |
|
HELP key |
|
0 key |
|
1 key |
|
2 key |
|
3 key |
|
4 key |
|
5 key |
|
6 key |
|
7 key |
|
8 key |
|
9 key |
|
Undefined |
|
A key |
|
B key |
|
C key |
|
D key |
|
E key |
|
F key |
|
G key |
|
H key |
|
I key |
|
J key |
|
K key |
|
L key |
|
M key |
|
N key |
|
O key |
|
P key |
|
Q key |
|
R key |
|
S key |
|
T key |
|
U key |
|
V key |
|
W key |
|
X key |
|
Y key |
|
Z key |
|
Left Windows key (Natural keyboard) |
|
Right Windows key (Natural keyboard) |
|
Applications key (Natural keyboard) |
|
Reserved |
|
Computer Sleep key |
|
Numeric keypad 0 key |
|
Numeric keypad 1 key |
|
Numeric keypad 2 key |
|
Numeric keypad 3 key |
|
Numeric keypad 4 key |
|
Numeric keypad 5 key |
|
Numeric keypad 6 key |
|
Numeric keypad 7 key |
|
Numeric keypad 8 key |
|
Numeric keypad 9 key |
|
Multiply key |
|
Add key |
|
Separator key |
|
Subtract key |
|
Decimal key |
|
Divide key |
|
F1 key |
|
F2 key |
|
F3 key |
|
F4 key |
|
F5 key |
|
F6 key |
|
F7 key |
|
F8 key |
|
F9 key |
|
F10 key |
|
F11 key |
|
F12 key |
|
F13 key |
|
F14 key |
|
F15 key |
|
F16 key |
|
F17 key |
|
F18 key |
|
F19 key |
|
F20 key |
|
F21 key |
|
F22 key |
|
F23 key |
|
F24 key |
|
Unassigned |
|
NUM LOCK key |
|
SCROLL LOCK key |
|
OEM specific |
|
Unassigned |
|
Left SHIFT key |
|
Right SHIFT key |
|
Left CONTROL key |
|
Right CONTROL key |
|
Left MENU key |
|
Right MENU key |
|
Browser Back key |
|
Browser Forward key |
|
Browser Refresh key |
|
Browser Stop key |
|
Browser Search key |
|
Browser Favorites key |
|
Browser Start and Home key |
|
Volume Mute key |
|
Volume Down key |
|
Volume Up key |
|
Next Track key |
|
Previous Track key |
|
Stop Media key |
|
Play/Pause Media key |
|
Start Mail key |
|
Select Media key |
|
Start Application 1 key |
|
Start Application 2 key |
|
Reserved |
|
Used for miscellaneous characters; it can vary by keyboard. For the US standard keyboard, the ';:' key |
|
For any country/region, the '+' key |
|
For any country/region, the ',' key |
|
For any country/region, the '-' key |
|
For any country/region, the '.' key |
|
Used for miscellaneous characters; it can vary by keyboard. For the US standard keyboard, the '/?' key |
|
Used for miscellaneous characters; it can vary by keyboard. For the US standard keyboard, the '`~' key |
|
Reserved |
|
Unassigned |
|
Used for miscellaneous characters; it can vary by keyboard.
For the US standard keyboard, the '[{' key |
|
Used for miscellaneous characters; it can vary by keyboard.
For the US standard keyboard, the '\|' key |
|
Used for miscellaneous characters; it can vary by keyboard.
For the US standard keyboard, the ']}' key |
|
Used for miscellaneous characters; it can vary by keyboard.
For the US standard keyboard, the 'single-quote/double-quote' key |
|
Used for miscellaneous characters; it can vary by keyboard. |
|
Reserved |
|
OEM specific |
|
Either the angle bracket key or the backslash key on the RT 102-key keyboard |
|
OEM specific |
|
IME PROCESS key |
|
OEM specific |
|
Used to pass Unicode characters as if they were keystrokes. The
VK_PACKET key is the low word of a 32-bit Virtual Key value used for
non-keyboard input methods. For more information, see Remark in KEYBDINPUT, SendInput, WM_KEYDOWN, and WM_KEYUP
|
|
Unassigned |
|
OEM specific |
|
Attn key |
|
CrSel key |
|
ExSel key |
|
Erase EOF key |
|
Play key |
|
Zoom key |
|
Reserved |
|
PA1 key |
| Clear key |
Thứ Bảy, 12 tháng 8, 2017
Liên minh huyền thoại hà tuấn đạt
đây là source code của hiển thị tầm LOL
https://autoitvn.com/threads/lien-minh-huyen-thoai-tool-hien-tam-ban-xa-thu-co-source.1033/
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <WinAPI.au3>
#include <Array.au3>
#include <Math.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Lien minh huyen thoai - Tam ban", 350, 42, 192, 124)
GUISetFont(10, 400, 0, "MS Sans Serif")
$Button1 = GUICtrlCreateButton("Hien thi", 232, 0, 97, 33)
$Input1 = GUICtrlCreateInput("", 112, 8, 113, 24, BitOR($GUI_SS_DEFAULT_INPUT,$ES_CENTER,$ES_NOHIDESEL,$ES_NUMBER,$WS_CLIPSIBLINGS), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Label1 = GUICtrlCreateLabel("Tam ban xa thu: ", 8, 8, 101, 20)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
GUICtrlSetState($Button1,$GUI_DISABLE)
$AttackRange = GUICtrlRead($Input1)
GUICtrlSetState($Button1,$GUI_ENABLE)
ExitLoop(1)
EndSwitch
WEnd
Global $Cat = 1
Global Const $pi = 3.14
Global $last_x,$last_y,$x,$y
Global $MRadius = _Max(@DesktopWidth,@DesktopHeight) *(40/1024)
Global $O1[3] = [@DesktopWidth*(456/1024),@DesktopHeight*399/1024,$AttackRange] ; Có 3 phần tử:
; 2 phần tử đầu là tọa độ ở giữa màn hình (tâm của hình elip)
; phần tử cuối là tầm đánh của xạ thủ
Global $O2[3] = [@DesktopWidth*(456/1024),@DesktopHeight*399/1024,$AttackRange-(5*$MRadius)]
Global $hGui = GUICreate("My Draw",@DesktopWidth,@DesktopHeight,0,0,$WS_POPUP, BitOR($WS_EX_LAYERED, $WS_EX_TOPMOST, $WS_EX_TOOLWINDOW))
GUISetBkColor(345)
$hChild=GUICtrlCreateGraphic(0,0,@DesktopWidth,@DesktopHeight)
$x = MouseGetPos(0)
$y = MouseGetPos(1)
GUICtrlSetGraphic($hChild,$GUI_GR_COLOR,345,345)
ElipByRadius($hChild,$x,$y,$MRadius)
$last_x = $x
$last_y = $y
GUICtrlSetGraphic($hChild, $GUI_GR_COLOR, 0x00ff00, 345)
GUICtrlSetGraphic($hChild, $GUI_GR_PENSIZE,3)
ElipByRadius($hChild,$O1[0],$O1[1],$O1[2])
GUICtrlSetBkColor($hChild, 345)
_WinAPI_SetLayeredWindowAttributes($hChild, 345, 255) ; making the GUI transparent
_WinAPI_SetParent($hChild, 0)
_WinAPI_SetLayeredWindowAttributes($hGui, 345, 255) ; making the GUI transparent
_WinAPI_SetParent($hGui, 0)
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
GUICtrlSetState($Button1,$GUI_DISABLE)
$AttackRange = GUICtrlRead($Input1)
GUICtrlSetState($Button1,$GUI_ENABLE)
$Cat = 1
$O1[2] = $AttackRange; Chỉnh sửa lại tầm bắn của xạ thủ
EndSwitch
$x = MouseGetPos(0)
$y = MouseGetPos(1)
If (Abs($last_x-$x) <= 10 And Abs($last_y-$y) <= 10) Then
ContinueLoop(1)
EndIf
If $Cat = 1 Then
$Cat = 0
GUICtrlDelete($hChild)
$hChild=GUICtrlCreateGraphic(0,0,@DesktopWidth,@DesktopHeight)
GUICtrlSetGraphic($hChild, $GUI_GR_COLOR, 0x00ff00, 345)
GUICtrlSetGraphic($hChild, $GUI_GR_PENSIZE,3)
ElipByRadius($hChild,$O1[0],$O1[1],$O1[2])
GUICtrlSetBkColor($hChild, 345)
_WinAPI_SetLayeredWindowAttributes($hChild, 345, 255) ; making the GUI transparent
_WinAPI_SetParent($hChild, 0)
EndIf
If (Cat($O1,$x,$y)=1 And Cat($O2,$x,$y)=0) Then
$Cat = 1
GUICtrlSetGraphic($hChild,$GUI_GR_COLOR,345,345)
ElipByRadius($hChild,MouseGetPos(0),MouseGetPos(1),$MRadius)
GUICtrlSetBkColor($hChild, 345)
EndIf
GUISetState(@SW_SHOW)
$last_x = MouseGetPos(0)
$last_y = MouseGetPos(1)
Wend
Func Cat($O,$x1,$y1) ; Kiểm tra xem nếu chuột có tọa độ ($x1,$y1) thì có cắt elip O hay không?
$rx = ($O[2] * (@DesktopWidth/960)/2)
$ry = ($O[2] * (@DesktopHeight/960)/2)
$MinX = _Max(0,$O[0]-$rx)
$MaxX = _Min($O[0]+$rx,@DesktopWidth)
$MinY = _Max(0,$O[1]-$ry)
$MaxY = _Min($O[1]+$ry,@DesktopHeight)
For $i = _Max(0,$x1-$MRadius) To _Min($x1+$MRadius,@DesktopWidth) Step 1
For $j = _Max(0,$y1-$MRadius) To _Min($y1+$MRadius,@DesktopHeight) Step 1
;~ If ($MinX<=$i And $i <=$MaxX And $MinY<=$j And $j<=$MaxY) Then
If (Sqr($i-$O[0])/Sqr($rx)+Sqr($j-$O[1])/Sqr($ry)-1<=0) Then
;~ MsgBox(0,0,$MinX&' '&$MaxX&' '&$MinY&' '&$MaxY&' '&$x1&' '&$y1)
return 1
EndIf
Next
Next
return 0
EndFunc
Func ElipByRadius($hGui,$x,$y,$r) ; x, y là tâm của đường tròn
$rx = $r * (@DesktopWidth/960)
$ry = $r * (@DesktopHeight/960)
$x -= ($rx/2)
$y -= ($ry/2)
GUICtrlSetGraphic($hGui, $GUI_GR_ELLIPSE, $x,$y,$rx,$ry)
EndFunc
Func Sqr($a)
return $a*$a
EndFunc
Func Bang ($a,$b)
return Abs($a-$b)>=0.00001
EndFunc
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <WinAPI.au3>
#include <Array.au3>
#include <Math.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Lien minh huyen thoai - Tam ban", 350, 42, 192, 124)
GUISetFont(10, 400, 0, "MS Sans Serif")
$Button1 = GUICtrlCreateButton("Hien thi", 232, 0, 97, 33)
$Input1 = GUICtrlCreateInput("", 112, 8, 113, 24, BitOR($GUI_SS_DEFAULT_INPUT,$ES_CENTER,$ES_NOHIDESEL,$ES_NUMBER,$WS_CLIPSIBLINGS), BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
$Label1 = GUICtrlCreateLabel("Tam ban xa thu: ", 8, 8, 101, 20)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
GUICtrlSetState($Button1,$GUI_DISABLE)
$AttackRange = GUICtrlRead($Input1)
GUICtrlSetState($Button1,$GUI_ENABLE)
ExitLoop(1)
EndSwitch
WEnd
Global $Cat = 1
Global Const $pi = 3.14
Global $last_x,$last_y,$x,$y
Global $MRadius = _Max(@DesktopWidth,@DesktopHeight) *(40/1024)
Global $O1[3] = [@DesktopWidth*(456/1024),@DesktopHeight*399/1024,$AttackRange] ; Có 3 phần tử:
; 2 phần tử đầu là tọa độ ở giữa màn hình (tâm của hình elip)
; phần tử cuối là tầm đánh của xạ thủ
Global $O2[3] = [@DesktopWidth*(456/1024),@DesktopHeight*399/1024,$AttackRange-(5*$MRadius)]
Global $hGui = GUICreate("My Draw",@DesktopWidth,@DesktopHeight,0,0,$WS_POPUP, BitOR($WS_EX_LAYERED, $WS_EX_TOPMOST, $WS_EX_TOOLWINDOW))
GUISetBkColor(345)
$hChild=GUICtrlCreateGraphic(0,0,@DesktopWidth,@DesktopHeight)
$x = MouseGetPos(0)
$y = MouseGetPos(1)
GUICtrlSetGraphic($hChild,$GUI_GR_COLOR,345,345)
ElipByRadius($hChild,$x,$y,$MRadius)
$last_x = $x
$last_y = $y
GUICtrlSetGraphic($hChild, $GUI_GR_COLOR, 0x00ff00, 345)
GUICtrlSetGraphic($hChild, $GUI_GR_PENSIZE,3)
ElipByRadius($hChild,$O1[0],$O1[1],$O1[2])
GUICtrlSetBkColor($hChild, 345)
_WinAPI_SetLayeredWindowAttributes($hChild, 345, 255) ; making the GUI transparent
_WinAPI_SetParent($hChild, 0)
_WinAPI_SetLayeredWindowAttributes($hGui, 345, 255) ; making the GUI transparent
_WinAPI_SetParent($hGui, 0)
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
GUICtrlSetState($Button1,$GUI_DISABLE)
$AttackRange = GUICtrlRead($Input1)
GUICtrlSetState($Button1,$GUI_ENABLE)
$Cat = 1
$O1[2] = $AttackRange; Chỉnh sửa lại tầm bắn của xạ thủ
EndSwitch
$x = MouseGetPos(0)
$y = MouseGetPos(1)
If (Abs($last_x-$x) <= 10 And Abs($last_y-$y) <= 10) Then
ContinueLoop(1)
EndIf
If $Cat = 1 Then
$Cat = 0
GUICtrlDelete($hChild)
$hChild=GUICtrlCreateGraphic(0,0,@DesktopWidth,@DesktopHeight)
GUICtrlSetGraphic($hChild, $GUI_GR_COLOR, 0x00ff00, 345)
GUICtrlSetGraphic($hChild, $GUI_GR_PENSIZE,3)
ElipByRadius($hChild,$O1[0],$O1[1],$O1[2])
GUICtrlSetBkColor($hChild, 345)
_WinAPI_SetLayeredWindowAttributes($hChild, 345, 255) ; making the GUI transparent
_WinAPI_SetParent($hChild, 0)
EndIf
If (Cat($O1,$x,$y)=1 And Cat($O2,$x,$y)=0) Then
$Cat = 1
GUICtrlSetGraphic($hChild,$GUI_GR_COLOR,345,345)
ElipByRadius($hChild,MouseGetPos(0),MouseGetPos(1),$MRadius)
GUICtrlSetBkColor($hChild, 345)
EndIf
GUISetState(@SW_SHOW)
$last_x = MouseGetPos(0)
$last_y = MouseGetPos(1)
Wend
Func Cat($O,$x1,$y1) ; Kiểm tra xem nếu chuột có tọa độ ($x1,$y1) thì có cắt elip O hay không?
$rx = ($O[2] * (@DesktopWidth/960)/2)
$ry = ($O[2] * (@DesktopHeight/960)/2)
$MinX = _Max(0,$O[0]-$rx)
$MaxX = _Min($O[0]+$rx,@DesktopWidth)
$MinY = _Max(0,$O[1]-$ry)
$MaxY = _Min($O[1]+$ry,@DesktopHeight)
For $i = _Max(0,$x1-$MRadius) To _Min($x1+$MRadius,@DesktopWidth) Step 1
For $j = _Max(0,$y1-$MRadius) To _Min($y1+$MRadius,@DesktopHeight) Step 1
;~ If ($MinX<=$i And $i <=$MaxX And $MinY<=$j And $j<=$MaxY) Then
If (Sqr($i-$O[0])/Sqr($rx)+Sqr($j-$O[1])/Sqr($ry)-1<=0) Then
;~ MsgBox(0,0,$MinX&' '&$MaxX&' '&$MinY&' '&$MaxY&' '&$x1&' '&$y1)
return 1
EndIf
Next
Next
return 0
EndFunc
Func ElipByRadius($hGui,$x,$y,$r) ; x, y là tâm của đường tròn
$rx = $r * (@DesktopWidth/960)
$ry = $r * (@DesktopHeight/960)
$x -= ($rx/2)
$y -= ($ry/2)
GUICtrlSetGraphic($hGui, $GUI_GR_ELLIPSE, $x,$y,$rx,$ry)
EndFunc
Func Sqr($a)
return $a*$a
EndFunc
Func Bang ($a,$b)
return Abs($a-$b)>=0.00001
EndFunc
Đăng ký:
Bài đăng (Atom)