Advertisement
CivReborn

SCv1.1Release

Nov 15th, 2017
3,192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #SingleInstance, Force
  2. CoordMode,Mouse,Screen
  3. SetMouseDelay,-1
  4. SetTitleMatchMode,2
  5. SetBatchLines,10ms
  6. global BC:={}
  7. BC:={1:"Black",2:"Teal",3:"222222",4:"333333"}
  8. global counter:=0,LC_1:="Silver",LC_2:="Maroon",LC_3:="0xE48904",LC_4:="0x37DC04",Off_Light,Standby_Light,On_Light
  9. ,Last_Selected:=1,Selected_Tab:=1,CheckBox_Background_Color:="Black",CheckBox_Color_On:="Teal",CheckBox_Color_Off:="Silver"
  10. ,W_9:=null,Target_X:=null,Target_Y:=null,P_8:=80,P_9:=80,S_6:=0,Click_Delay:=1,Turbo_Mode:=0,Current_Light:=1
  11. Trim_Color:="Teal",Always:=1,Use_Target:=1,Stop:=0
  12. Gui,1:+AlwaysOnTop -Caption Border
  13. Gui,1:Color,Black,Black
  14. Gui,1:Add,Progress,x0 y0 w350 h250 Background%Trim_Color% cBlack,100
  15. Gui,1:Add,Progress,x5 y5 w10 h10 Background%Trim_Color% c%LC_2% vOff_Light,100
  16. Gui,1:Add,Progress,x20 y5 w10 h10 Background%Trim_Color% c%LC_1% vStandBy_Light,100
  17. Gui,1:Add,Progress,x35 y5 w10 h10 Background%Trim_Color% c%LC_1% vOn_Light,100
  18. Gui,1:Add,Progress, x310 y3 w14 h14 Background%Trim_Color% c333333 ,100
  19. Gui,1:Font,cTeal s12 Bold Q5,
  20. Gui,1:Add,Text,x310 y2 w14 Center BackgroundTrans,-
  21. Gui,1:Add,Progress, x330 y3 w14 h14 Background%Trim_Color% c333333 ,100
  22. Gui,1:Font,cTeal s8  Q5,
  23. Gui,1:Add,Text,x330 y3 w14 Center BackgroundTrans,X
  24. Gui,1:Font,cTeal s12 Underline  Italic  Q5,Narkisim
  25. Gui,1:Add,Text,x50 y2 w250 Center BackgroundTrans ,Smart Clicker v1.1.0
  26. Gui,1:Add,Progress,x5 y20 w340 h225 Background%Trim_Color% c272829,100
  27. Gui,1:Add,Progress,x10 y30 w330 h40 Background%Trim_Color% c222222,100
  28. Gui,1:Add,Progress,% "x19 y34 w72 h32 Background" BC.1
  29. Gui,1:Add,Progress,% "x19 y34 w70 h30 Hidden v1_Button_Background Background" BC.2
  30. Gui,1:Add,Progress,% "x20 y35 w70 h30 v1_Button Background"BC.4
  31. Gui,1:Font,
  32. Gui,1:Font,cTeal s10 Q5,Microsoft YaHei UI
  33. Gui,1:Add,Text,x20 y40 w70 Center BackgroundTrans v1_Button_Text,Main
  34. Gui,1:Add,Progress,% "x99 y34 w72 h32 Background" BC.1
  35. Gui,1:Add,Progress,% "x99 y34 w70 h30 v2_Button_Background Background" BC.2
  36. Gui,1:Add,Progress,% "x100 y35 w70 h30 v2_Button Background" BC.3
  37. Gui,1:Add,Text,x100 y40 w70 Center BackgroundTrans v2_Button_Text ,Window
  38. Gui,1:Add,Progress,% "x179 y34 w72 h32 Background" BC.1
  39. Gui,1:Add,Progress,% "x179 y34 w70 h30 v3_Button_Background Background" BC.2
  40. Gui,1:Add,Progress,% "x180 y35 w70 h30 v3_Button Background" BC.3
  41. Gui,1:Add,Text,x180 y40 w70 Center BackgroundTrans v3_Button_Text,Position
  42. Gui,1:Add,Progress,% "x259 y34 w72 h32 Background" BC.1
  43. Gui,1:Add,Progress,% "x259 y34 w70 h30 v4_Button_Background Background" BC.2
  44. Gui,1:Add,Progress,% "x260 y35 w70 h30 v4_Button Background" BC.3
  45. Gui,1:Add,Text,x260 y40 w70 Center BackgroundTrans v4_Button_Text,Speed
  46. Gui,1:Add,Progress,x15 y80 w320 h100 Background%Trim_Color% c222222 ,100
  47. Gui,1:Add,Progress,x25 y100 w15 h15 Border Background%CheckBox_Background_Color% c%CheckBox_Color_On% vM_1,100
  48. Gui,1:Font,
  49. Gui,1:Font,cSilver s10 Q5,Microsoft YaHei UI
  50. Gui,1:Add,Text,x45 yp-3 BackgroundTrans vM_2,AlwaysOnTop
  51. Gui,1:Add,Progress,x25 y130 w15 h15 Border Background%CheckBox_Background_Color% c%CheckBox_Color_On% vM_3,100
  52. Gui,1:Add,Text,x45 yp-3 BackgroundTrans vM_4,Use Target Window
  53. Gui,1:Font,cTeal s10 Q5,Microsoft YaHei UI
  54. Gui,1:Add,Progress,% "x193 y90 w114 h27 vM_5 Background"BC.1
  55. Gui,1:Add,Progress,% "x193 y90 w112 h25 vM_6 Background"BC.2
  56. Gui,1:Add,Progress,% "x195 y92 w110 h23 vM_7 Background"BC.3
  57. Gui,1:Add,Text,x195 y92 w110 h23 BackgroundTrans Center vM_8,FAQ
  58. Gui,1:Add,Progress,% "x183 y125 w134 h40 vM_9 Background"BC.1
  59. Gui,1:Add,Progress,% "x183 y125 w132 h38 vM_10 Background"BC.2
  60. Gui,1:Add,Progress,% "x185 y127 w130 h36 vM_11 Background"BC.3
  61. Gui,1:Add,Text,x185 y126 w130 h36 BackgroundTrans Center vM_12,Get More Free `nAuto Clickers
  62. Gui,1:Add,Progress,% "x30 y95 w104 h34 Hidden vW_1 Background" BC.1
  63. Gui,1:Add,Progress,% "x30 y95 w102 h32 Hidden vW_2 Background" BC.2
  64. Gui,1:Add,Progress,% "x32 y97 w100 h30 Hidden vW_3 Background" BC.3
  65. Gui,1:Font,cTeal s10 Q5,Microsoft YaHei UI
  66. Gui,1:Add,Text,x32 y102 w100 BackgroundTrans Center Hidden vW_4, Set Window
  67. Gui,1:Add,Progress,% "x215 y95 w104 h34 Hidden vW_5 Background" BC.1
  68. Gui,1:Add,Progress,% "x215 y95 w102 h32 Hidden vW_6 Background" BC.2
  69. Gui,1:Add,Progress,% "x217 y97 w100 h30 Hidden vW_7 Background" BC.3
  70. Gui,1:Add,Text,x217 y102 w100 BackgroundTrans Center Hidden vW_8, Update
  71. Gui,1:Font,
  72. Gui,1:Add,Edit,cWhite x30 y140 w290 r1 Center Hidden vW_9,% W_9
  73. Gui,1:Font,cTeal s10 Q5,Microsoft YaHei UI
  74. Gui,1:Add,Progress,% "x70 y88 w100 h25 Hidden vP_1 Background" BC.1
  75. Gui,1:Add,Progress,% "x70 y88 w98 h23 Hidden vP_2 Background" BC.2
  76. Gui,1:Add,Progress,% "x72 y90 w96 h21 Hidden vP_3 Background" BC.3
  77. Gui,1:Add,Text,x72 y90 w96 BackgroundTrans Center Hidden vP_4,Set Position
  78. Gui,1:Font,
  79. Gui,1:Add,Edit,cWhite x195 y90 w80 r1 Center ReadOnly Hidden vP_5,% Target_X " " Target_Y
  80. Gui,1:Font,cSilver s10 Q5,Microsoft YaHei UI
  81. Gui,1:Add,Text,x30 y125 BackgroundTrans Hidden vP_6, Box Width:
  82. Gui,1:Add,Text,x30 y150 BackgroundTrans Hidden vP_7, Box Height:
  83. Gui,1:Font,
  84. Gui,1:Add,Edit,cWhite x115 y125 w60 r1 Center Number Hidden vP_8 gSubmit_All,% P_8
  85. Gui,1:Add,Edit,cWhite x115 y150 w60 r1 Center Number Hidden vP_9 gSubmit_All,% P_9
  86. Gui,1:Add,Progress,% "x210 y127 w100 h40 Hidden vP_10 Background" BC.1
  87. Gui,1:Add,Progress,% "x210 y127 w98 h38 Hidden vP_11 Background" BC.2
  88. Gui,1:Add,Progress,% "x212 y129 w96 h36 Hidden vP_12 Background" BC.3
  89. Gui,1:Font,cTeal s10 Q5,Microsoft YaHei UI
  90. Gui,1:Add,Text,x212 y138 w96 BackgroundTrans Center Hidden vP_13,Preview
  91. Gui,1:Add,Progress, x40 y90 w15 h15 Border Hidden Background%CheckBox_Background_Color% c%CheckBox_Color_On% vS_1 ,100
  92. Gui,1:Font,cSilver s10 Q5,Microsoft YaHei UI
  93. Gui,1:Add,Text,x60 y87 BackgroundTrans Hidden vS_2 ,Use Click Delay
  94. Gui,1:Add,Progress, x195 y90 w15 h15 Border Hidden Background%CheckBox_Background_Color% c%CheckBox_Color_Off% vS_3 ,100
  95. Gui,1:Add,Text,x215 y87 BackgroundTrans Hidden vS_4 ,Turbo Mode
  96. Gui,1:Add,Text,x60 y130 BackgroundTrans Hidden vS_5 ,Click Delay:
  97. Gui,1:Font,
  98. Gui,1:Add,Edit,cWhite x150 y130 w80 r1 Center Number Hidden vS_6 gSubmit_All, % S_6
  99. Gui,1:Font,cSilver s10 Q5,Microsoft YaHei UI
  100. Gui,1:Add,Text,x240 y130 BackgroundTrans Hidden vS_7 ,(in ms)
  101. Gui,1:Add,Progress,% "x15 y195 w150 h40 Background" BC.1
  102. Gui,1:Add,Progress,% "x15 y195 w148 h38 vStart_1 Background" BC.2
  103. Gui,1:Add,Progress,% "x17 y197 w146 h36 vStart_2 Background" BC.3
  104. Gui,1:Font,cTeal s16 Q5,Microsoft YaHei UI
  105. Gui,1:Add,Text,x17 y200 w146 BackgroundTrans Center vStart_3,Start
  106. Gui,1:Add,Progress,% "x185 y195 w150 h40 Background" BC.1
  107. Gui,1:Add,Progress,% "x185 y195 w148 h38 vStop_1 Background" BC.2
  108. Gui,1:Add,Progress,% "x187 y197 w146 h36 vStop_2 Background" BC.3
  109. Gui,1:Add,Text,x187 y200 w146 BackgroundTrans Center vStop_3,Stop
  110. Gui,2:Color,yellow
  111. Gui,2:Add,Text,x50 y0 w250 h20 Border gMove_Window
  112. Gui,2:Add,Text,x310 y3 w14 h14 Border gWin_Min
  113. Gui,2:Add,Text,x330 y3 w14 h14 Border gGuiClose
  114. Gui,2:Add,Text,x20 y35 w70 h30 Border gMain_Tab
  115. Gui,2:Add,Text,x100 y35 w70 h30 Border gWindow_Tab
  116. Gui,2:Add,Text,x180 y35 w70 h30 Border gLocation_Tab
  117. Gui,2:Add,Text,x260 y35 w70 h30 Border gSpeed_Tab
  118. Gui,2:Add,Text,x25 y100 w110 h20 Border vM_13 gAlways_On_Top
  119. Gui,2:Add,Text,x25 y130 w140 h20 Border vM_14 gUse_Target_Window
  120. Gui,2:Add,Text,x195 y92 w110 h23 Border vM_15 gGo_Faq
  121. Gui,2:Add,Text,x185 y127 w130 h36 Border vM_16 gGet_More
  122. Gui,2:Add,Text,x32 y97 w100 h30 vW_10 Border Hidden gSet_Target_Window
  123. Gui,2:Add,Text,x217 y97 w100 h30 vW_11 Border Hidden gUpdate_Window
  124. Gui,2:Add,Text,x30 y140 w290 h25 vW_12 Border Hidden gEdit_Target_Window
  125. Gui,2:Add,Text,x72 y90 w96 h21 Border Hidden vP_14 gSet_Click_Location
  126. Gui,2:Add,Text,x195 y90 w80 h22 Border Hidden vP_15
  127. Gui,2:Add,Text,x115 y125 w60 h22 Border Hidden vP_16 gFocus_Box_Width
  128. Gui,2:Add,Text,x115 y150 w60 h22 Border Hidden vP_17 gFocus_Box_Height
  129. Gui,2:Add,Text,x212 y129 w96 h36 Border Hidden vP_18 gPreview_Click_Box
  130. Gui,2:Add,Text,x40 y90 w120 h15 Border Hidden vS_8 gUse_Click_Delay
  131. Gui,2:Add,Text,x195 y90 w120 h15 Border Hidden vS_9 gUse_Turbo_Mode
  132. Gui,2:Add,Text,x150 y130 w80 h21 Border Hidden vS_10 gFocus_Click_Delay
  133. Gui,2:Add,Text,x17 y197 w146 h36 Border gStart_Clicker
  134. Gui,2:Add,Text,x187 y197 w146 h36 Border gStop_Clicker
  135. Sleep,300
  136. Gui,1:Show,w350 h250,Background Layer
  137. WinGetPos,x,y,,,Background Layer
  138. Gui,2:+AlwaysOnTop -Caption Border +Owner1 +LastFound
  139. WinSet,Transparent,1
  140. sleep,300
  141. Gui,2:Show,x%x% y%y% w350 h250,Smart Clicker v1.1.0
  142. return
  143. Go_Faq:
  144.     Button_Press(M_6,M_7,M_8,Stop)
  145.     Show_Message("5")
  146.     return
  147. Get_More:
  148.     Button_Press(M_10,M_11,M_12,Stop)
  149.     Try{
  150.         Run,https://www.youtube.com/watch?v=hhtnClgSwbQ&list=PLPI5C2_hIGGw7poIqgox3rDnyocwTxcY_
  151.     }
  152.     return
  153. GuiClose:
  154.     ExitApp
  155. Win_Min:
  156.     WinMinimize,Background Layer
  157.     return
  158. Move_Window:
  159.     WIN_MOVE()
  160.     return
  161. Submit_All:
  162.     Gui,1:Submit,NoHide
  163.     return
  164. Main_Tab:
  165.     Change_Tabs("1")
  166.     return
  167. Window_Tab:
  168.     Change_Tabs("2")
  169.     return
  170. Location_Tab:
  171.     Change_Tabs("3")
  172.     return
  173. Speed_Tab:
  174.     Change_Tabs("4")
  175.     return
  176. Use_Target_Window:
  177.     Change_CheckBox(Use_Target,M_3,Stop)
  178.     return
  179. Always_On_Top:
  180.     Change_CheckBox(Always,M_1,Stop,!Always)
  181.     return
  182. Set_Target_Window:
  183.     Button_Press(W_2,W_3,W_4,Stop)
  184.     W_9:=Set_Window()
  185.     GuiControl,1:,W_9,% W_9
  186.     return
  187. Update_Window:
  188.     Button_Press(W_6,W_7,W_8,Stop)
  189.     Gui,1:Submit,NoHide
  190.     return
  191. Edit_Target_Window:
  192.     GuiControl,1:Focus,W_9
  193.     return
  194. Set_Click_Location:
  195.     Button_Press(P_2,P_3,P_4,Stop)
  196.     Set_Click_Position()
  197.     GuiControl,1:,P_5,% Target_X " " Target_Y
  198.     return
  199. Focus_Box_Width:
  200.     GuiControl,1:Focus,P_8
  201.     return
  202. Focus_Box_Height:
  203.     GuiControl,1:Focus,P_9
  204.     return
  205. Preview_Click_Box:
  206.     Button_Press(P_11,P_12,P_13,Stop)
  207.     if(Target_X!=null)
  208.         Show_Preview_Box()
  209.     else
  210.         Show_Message("1")
  211.     return
  212. Use_Click_Delay:
  213.     Change_CheckBox(Click_Delay,S_1,Stop)
  214.     return
  215. Use_Turbo_Mode:
  216.     Change_CheckBox(Turbo_Mode,S_3,Stop)
  217.     return
  218. Focus_Click_Delay:
  219.     GuiControl,1:Focus,S_6
  220.     return
  221. Start_Clicker:
  222.     Button_Press(Start_1,Start_2,Start_3,Stop)
  223.     Run_Auto_Clicker()
  224.     return
  225. Stop_Clicker:
  226.     Button_Press(Stop_1,Stop_2,Stop_3,Stop)
  227.     return
  228. Run_Auto_Clicker()  {
  229.         global
  230.         Stop:=0
  231.         if(Target_X=null)   {
  232.                 Show_Message("2")
  233.                 return
  234.             }
  235.         if(W_9=null&&Use_Target=1)  {
  236.                 Show_Message("3")
  237.                 return
  238.             }
  239.         if(P_8<=4||P_9<=4||P_8=null||P_9=null)  {
  240.                 Show_Message("4")
  241.                 return
  242.             }
  243.         if(Turbo_Mode=1)
  244.             SetBatchLines,-1
  245.         else
  246.             SetBatchLines,10ms
  247.         Current_Light:=2
  248.         Change_Lights(LC_1,LC_3,LC_1)
  249.         While Stop=0    {
  250.                 if(Use_Target=1)    {
  251.                         If WinActive(W_9)
  252.                             Click_Function()
  253.                     }
  254.                 else if(Use_Target=0)
  255.                     Click_Function()
  256.             }
  257.         Current_Light:=1
  258.         Change_Lights(LC_2,LC_1,LC_1)  
  259.     }
  260. Click_Function()    {
  261.         t8:=P_8//2,t9:=P_9//2
  262.         MouseGetPos,tx,ty
  263.         if(tx>=(Target_X-t8)&&tx<=(Target_X+t8)&&ty>=(Target_Y-t9)&&ty<=(Target_Y+t9))  {
  264.                 if(Current_Light!=3)    {
  265.                         Current_Light:=3
  266.                         Change_Lights(LC_1,LC_1,LC_4)
  267.                     }
  268.                 Click, %Target_X% %Target_Y%
  269.                 if(Click_Delay=1)
  270.                     sleep, %S_6%
  271.             }
  272.         else if(Current_Light!=2)   {
  273.                 Current_Light:=2
  274.                 Change_Lights(LC_1,LC_3,LC_1)
  275.             }
  276.     }
  277. Change_Lights(L_1,L_2,L_3)  {
  278.         GuiControl,1:+c%L_1%,Off_Light
  279.         GuiControl,1:+c%L_2%,Standby_Light
  280.         GuiControl,1:+c%L_3%,On_Light
  281.     }
  282. Show_Message(Message_Number)    {
  283.         Gui,1:+OwnDialogs
  284.         if(Message_Number=1)
  285.             msgbox,,Dumbass Alert!!!!,You need to set a click location before you can preview where you are going to click!
  286.         else if(Message_Number=2)
  287.             msgbox,48,Missing Info!,You need to select a click position before you can start the auto clicker.
  288.         else if(Message_Number=3)
  289.             msgbox,48,Missing Info!,You need to select a target window.
  290.         else if(Message_Number=4)
  291.             msgbox,48,Missing Info!,Something is wrong with the box size.`nMake sure that the box size is greater than 4x4px
  292.                                     .`nvalues under 20x20px should not be used.
  293.         else if(Message_Number=5)                          
  294.             MsgBox, 64, FAQ, Smart Clicker v1.1 By Hellbent aka CivReborn`n`nForget How To Set Up?`nVisit CivReborn On YouTube for setup video
  295.             .`n`nHotkeys:`nThis is a auto pause auto clicker and has no need for most hotkeys
  296.             .`nHowever`, you can exit this program at any time by pressing`nctrl+shift+alt+ESC                     
  297.     }
  298. Show_Preview_Box()  {
  299.         x1:=Target_X-(P_8//2),y1:=Target_Y-(P_9//2)
  300.         WinMinimize,Background Layer
  301.         Gui,3:Destroy
  302.         Gui,3:+AlwaysOnTop -Caption Border +LastFound +Owner1
  303.         Gui,3:Color,00FF00
  304.         WinSet,Transparent,100
  305.         Gui,3:Show,x%x1% y%y1% w%P_8% h%P_9%
  306.         sleep,2500
  307.         WinActivate,Background Layer
  308.         Gui,3:Destroy
  309.     }
  310. Set_Click_Position()    {
  311.         Loop    {
  312.                 ToolTip,Click the position you want to set.
  313.                 if(!GetKeyState("LButton")&&!isPressed)
  314.                     isPressed:=1
  315.                 else if(GetKeyState("LButton")&&isPressed)  {
  316.                         MouseGetPos,Target_X,Target_Y
  317.                         ToolTip,
  318.                         break
  319.                     }
  320.             }
  321.     }
  322. Set_Window()    {
  323.         i:=0
  324.         Loop    {
  325.                 ToolTip,Click on the target window twice to lock it.
  326.                 if(!GetkeyState("LButton")&&!isPressed)
  327.                     isPressed:=1
  328.                 else if(GetkeyState("LButton")&&isPressed=1)    {
  329.                         i++,isPressed:=0
  330.                         if(i>=2)    {
  331.                                 WinGetTitle,Target,A
  332.                                 ToolTip,
  333.                                 break
  334.                             }
  335.                     }
  336.             }
  337.         return Target  
  338.     }
  339. Button_Press(ByRef E_1,ByRef E_2,ByRef E_3,ByRef Halt)  {
  340.         Halt:=1
  341.         GuiControl,% "1:+Background" BC.4,E_2
  342.         GuiControl,1:+Redraw,E_3
  343.         While GetKeyState("LButton")
  344.             sleep, 150
  345.         GuiControl,% "1:+Background" BC.3,E_2
  346.         GuiControl,1:+Redraw,E_3
  347.     }
  348. Change_CheckBox(ByRef Check_Value,ByRef Control_Name,ByRef Halt,ByRef AOT:=2)   {
  349.         if(AOT=1)
  350.             Gui,1:+AlwaysOnTop
  351.         else if(AOT=0)
  352.             Gui,1:-AlwaysOnTop
  353.         Check_Value:=!Check_Value,Halt:=1
  354.         if Check_Value
  355.             GuiControl,1:+c%CheckBox_Color_On%,Control_Name
  356.         else
  357.             GuiControl,1:+c%CheckBox_Color_Off%,Control_Name
  358.     }
  359. Change_Tabs(New_Tab)    {
  360.         if(Selected_Tab!=New_Tab)   {
  361.                 Selected_Tab:=New_Tab
  362.                 Fix_Tabs()
  363.                 Remove_Window()
  364.                 Add_Tab()
  365.                 Last_Selected:=Selected_Tab
  366.             }
  367.     }
  368. Add_Tab()   {
  369.         if(Selected_Tab=1)
  370.             Loop_1:=12,Loop_2:=4,Letter:="M"
  371.         else if(Selected_Tab=2)
  372.             Loop_1:=9,Loop_2:=3,Letter:="W"
  373.         else if(Selected_Tab=3)
  374.             Loop_1:=13,Loop_2:=5,Letter:="P"
  375.         else if(Selected_Tab=4)
  376.             Loop_1:=7,Loop_2:=3,Letter:="S"
  377.         i:=1
  378.         Loop % Loop_1   {
  379.                 GuiControl,1:Show,%Letter%_%i%
  380.                 i++
  381.             }
  382.         Loop % Loop_2   {
  383.                 GuiControl,2:Show,%Letter%_%i%
  384.                 i++
  385.             }
  386.     }
  387. Remove_Window() {
  388.         if(Last_Selected=1)
  389.             Loop_1:=12,Loop_2:=4,Letter:="M"
  390.         else if(Last_Selected=2)
  391.             Loop_1:=9,Loop_2:=3,Letter:="W"
  392.         else if(Last_Selected=3)
  393.             Loop_1:=13,Loop_2:=5,Letter:="P"
  394.         else if(Last_Selected=4)
  395.             Loop_1:=7,Loop_2:=3,Letter:="S"
  396.         i:=1
  397.         Loop % Loop_1   {
  398.                 GuiControl,1:Hide,%Letter%_%i%
  399.                 i++
  400.             }
  401.         Loop % Loop_2   {
  402.                 GuiControl,2:Hide,%Letter%_%i%
  403.                 i++
  404.             }
  405.     }
  406. Fix_Tabs()  {
  407.         GuiControl,1:Show,%Last_Selected%_Button_Background
  408.         GuiControl,% "1:+Background" BC.3,%Last_Selected%_Button
  409.         GuiControl,1:+ReDraw,%Last_Selected%_Button_Text
  410.         GuiControl,1:Hide,%Selected_Tab%_Button_Background
  411.         GuiControl,% "1:+Background" BC.4,%Selected_Tab%_Button
  412.         GuiControl,1:+ReDraw,%Selected_Tab%_Button_Text
  413.     }
  414. WIN_MOVE()  {
  415.         PostMessage,0xA1,2
  416.         While(GetKeyState("LButton"))
  417.             sleep,10
  418.         WinGetPos,x,y,,,A
  419.         Gui,1:Show,x%x% y%y%
  420.     }
  421. *^+!ESC::ExitApp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement