Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;Written By: Hellbent aka CivReborn
- ;Date:November 30th, 2017
- ;Diep.io TDM AFK Script
- #SingleInstance,Force
- CoordMode,Mouse,Screen
- CoordMode,Pixel,Screen
- Ls1:=["x0 y0 w250 h25 Border gMove_Windows","x255 y0 w22 h25 Border gMinimize_Windows","x277 y0 w22 h25 Border gGuiClose"
- ,"x15 y30 w100 h30 Border vWB gActions","x100 y65 w100 h30 Border vUB gActions","x45 y100 w100 h30 Border vLB gActions"
- ,"x155 y100 w100 h30 Border vRB gActions","x100 y135 w100 h30 Border vDB gActions","x10 y175 w90 h30 Border vSTRB gActions"
- ,"x105 y175 w90 h30 Border vSTOB gActions","x200 y175 w90 h30 Border gReload","x0 y210 w300 h20 Border vCPB gActions"]
- onehunlist:= ["x0 y0 w300 h230 BackgroundTeal cBlack","x5 y25 w290 h185 BackgroundTeal c111111","x125 y33 w160 h24 BackgroundTeal c111111"]
- Global 1D:={},Civ:="https://www.youtube.com/user/CivReborn",2D:={},3D:={},4D:={},Stop:=0
- ls2:=["x15 y30 w100 h30 BackgroundBlack","x15 y30 w98 h28 BackgroundTeal","x17 y32 w96 h26 Background111111","x100 y65 w100 h30 BackgroundBlack"
- ,"x100 y65 w98 h28 BackgroundTeal","x102 y67 w96 h26 Background111111","x45 y100 w100 h30 BackgroundBlack","x45 y100 w98 h28 BackgroundTeal"
- ,"x47 y102 w96 h26 Background111111","x155 y100 w100 h30 BackgroundBlack","x155 y100 w98 h28 BackgroundTeal","x157 y102 w96 h26 Background111111"
- ,"x100 y135 w100 h30 BackgroundBlack","x100 y135 w98 h28 BackgroundTeal","x102 y137 w96 h26 Background111111","x10 y175 w90 h30 BackgroundBlack"
- ,"x10 y175 w88 h28 BackgroundTeal","x12 y177 w86 h26 Background111111","x105 y175 w90 h30 BackgroundBlack","x105 y175 w88 h28 BackgroundTeal"
- ,"x107 y177 w86 h26 Background111111","x200 y175 w90 h30 BackgroundBlack","x200 y175 w88 h28 BackgroundTeal","x202 y177 w86 h26 Background111111"
- ,"x20 y70 w65 h2 BackgroundTeal","x85 y70 w2 h22 BackgroundTeal","x35 y90 w50 h2 BackgroundTeal","x35 y90 w2 h50 BackgroundTeal"
- ,"x20 y70 w2 h90 BackgroundTeal","x35 y140 w50 h2 BackgroundTeal","x85 y140 w2 h22 BackgroundTeal","x20 y160 w65 h2 BackgroundTeal"
- ,"x215 y70 w65 h2 BackgroundTeal","x215 y70 w2 h22 BackgroundTeal","x215 y90 w50 h2 BackgroundTeal","x280 y70 w2 h92 BackgroundTeal"
- ,"x265 y90 w2 h52 BackgroundTeal","x215 y140 w50 h2 BackgroundTeal","x215 y140 w2 h22 BackgroundTeal","x215 y160 w65 h2 BackgroundTeal"]
- TxT:= ["_","Diep.io Team Death Match AFK Script","X","Set Window","Set Top","Set Left","Set Right","Set Bottom","Start","Stop","Reload","By Hellbent aka CivReborn"]
- TxO:= ["x260 y-28 BackgroundTrans","x0 y3 w260 r1 Backgroundtrans Center","x280 y2 BackgroundTrans","x17 y35 w96 BackgroundTrans Center"
- ,"x102 y70 w96 BackgroundTrans Center","x47 y105 w96 BackgroundTrans Center","x157 y105 w96 BackgroundTrans Center","x102 y140 w96 BackgroundTrans Center"
- ,"x12 y180 w86 BackgroundTrans Center","x107 y180 w86 BackgroundTrans Center","x202 y180 w86 BackgroundTrans Center","x0 y210 w300 BackgroundTrans Center"]
- Gui,1:+AlwaysOnTop -Caption
- Gui,1:Margin,0,0
- Gui,1:Color,111111,111111
- for,k,v in onehunlist
- Gui,1:Add,Progress,% v ,100
- for,k,v in ls2
- Gui,1:Add,Progress,% v
- Gui,1:Font,cGray s24 Q5,Segoe UI Black
- for,k,v in TxO
- {
- if(A_Index=2)
- Gui,1:Font,cSilver s10 Q5,Segoe UI Black
- else if(A_Index=3)
- Gui,1:Font,cGray s12 Q5,Segoe UI Black
- else if(A_Index=4)
- Gui,1:Font,cSilver s10 Q5,Segoe UI Black
- Gui,1:Add,Text,% v ,% Txt[A_Index]
- }
- Gui,1:Add,Edit,x127 y35 w156 h20 -E0x200 Disabled vTW,
- Gui,2:+AlwaysOnTop -Caption +LastFound +Owner1
- Gui,2:Color,White
- Winset,Transparent,1
- For, k,v in Ls1
- Gui,2:Add,Text,% v
- Gui,1:Show,x900 y50 w300 h230,Diep.io Afk Script
- Gui,2:Show,x900 y50 w300 h230,Diep.io Afk Script TL
- return
- GuiClose:
- ExitApp
- Reload:
- Reload
- Move_Windows:
- PostMessage,0xA1,2
- While(GetKeyState("LButton"))
- Sleep,10
- WinGetPos,wx,wy,,,Diep.io Afk Script TL
- Gui,1:Show,x%wx% y%wy%
- return
- Minimize_Windows:
- Gui,1:Minimize
- return
- Actions:
- (A_GuiControl="WB")?(SW(TW)):(A_GuiControl="UB")?(SPix(1D))
- :(A_GuiControl="LB")?(SPix(2D)):(A_GuiControl="RB")?(SPix(3D))
- :(A_GuiControl="DB")?(SPix(4D)):(A_GuiControl="STOB")?(Stop:=1)
- :(A_GuiControl="STRB")?(SS(TW)):(A_GuiControl="CPB")?(RCC())
- return
- SS(TW){
- global
- g:=0
- Stop:=0
- if(1D.x1=null||2D.x1=null||3D.x1=null||4D.x1=null||TW=null){
- Gui,1:+OwnDialogs
- Msgbox, Something is missing.`nMake sure you added all 5 items.
- return
- }
- TrayTip,,Script IS Active,3
- While(!Stop){
- if(WinActive(TW))
- Loop 4 {
- g:=0
- cpxf(%A_Index%D,1,A_Index)
- cpxf(%A_Index%D,2,A_Index)
- }
- else {
- Sleep,1000
- g++
- if(g>30){
- g:=0
- TrayTip,Wrong Window,Script is still active,2
- }
- }
- }
- }
- RCC(){
- Try{
- Run,% Civ
- }
- }
- cpxf(oT,X,N){
- if(x=1){
- PixelGetColor,tp,oT.x1,oT.y1
- if(tp=oT.px1){
- (N=1)?(SK("Down","Down")):(N=2)?(SK("Right","Down")):(N=3)?(SK("Left","Down")):(N=4)?(SK("Up","Down"))
- oT.key:=1
- }
- else if(oT.key=1&&tp!=Ot.px1){
- (N=1)?(SK("Down","Up")):(N=2)?(SK("Right","Up")):(N=3)?(SK("Left","Up")):(N=4)?(SK("Up","Up"))
- oT.key:=o
- }
- }
- else {
- PixelGetColor,tp,oT.x2,oT.y2
- if(tp=oT.px2){
- (N=1)?(SK("Down","Down")):(N=2)?(SK("Right","Down")):(N=3)?(SK("Left","Down")):(N=4)?(SK("Up","Down"))
- oT.key:=1
- }
- else if(oT.key=1&&tp!=Ot.px2){
- (N=1)?(SK("Down","Up")):(N=2)?(SK("Right","Up")):(N=3)?(SK("Left","Up")):(N=4)?(SK("Up","Up"))
- oT.key:=o
- }
- }
- }
- SK(aa,bb){
- Send,{%aa% %bb%}
- }
- SPix(TOBJ){
- isPressed:=0,i:=0
- Loop {
- Tooltip,Click on 2 locations in the GRAY area `n`nin the direction you are setting.
- if(!GetKeyState("LButton")&&!isPressed)
- isPressed:=1
- else if(GetKeyState("LButton")&&isPressed){
- isPressed:=0,i++
- MouseGetPos,x,y
- PixelGetColor,px,x,y
- (i=1)?(TOBJ.x1:=x,TOBJ.y1:=y,TOBJ.px1:=px)
- if(i=2){
- TOBJ.x2:=x,TOBJ.y2:=y,TOBJ.px2:=px
- Tooltip,
- return
- }
- }
- }
- }
- SW(ByRef TW){
- isPressed:=0,i:=0
- Loop {
- Tooltip,Click twice on the game window to set it.
- if(!GetKeyState("LButton")&&!isPressed)
- isPressed:=1
- else if(GetKeyState("LButton")&&isPressed){
- isPressed:=0,i++
- if(i>=2){
- WinGetTitle,TW,A
- ToolTip,
- GuiControl,1:,TW,% TW
- return
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement