fedasevka |
Дата: Вторник, 19.02.2019, 01:05 | Сообщение # 1
|
Любитель
Сообщений: 34
Статус: Offline
|
Привет всем , нашел прикольный скрипт который ресует крестик прицела на екране ,подумал что можно бужет использовать его при +С вместо прицела ,но при запуске сампа его не видно хотя стоит поверх всех окон Код Gui 2:+LastFound +AlwaysOnTop -Caption +ToolWindow +disabled +OwnDialogs Вот код самого прицела
Код ; <COMPILER: v1.1.26.00> #NoEnv #MaxHotkeysPerInterval 99000000 #HotkeyInterval 99000000 #KeyHistory 0 ListLines Off Process, Priority, , A SetBatchLines, -1 SetKeyDelay, -1, -1 SetMouseDelay, -1 SetDefaultMouseSpeed, 0 SetWinDelay, -1 SendMode Input SetWorkingDir %A_ScriptDir% IniRead, X, pos.ini, Pos, X IniRead, Y, pos.ini, Pos, Y CustomColor = EEAA99 Gui 2:+LastFound +AlwaysOnTop -Caption +ToolWindow +disabled +OwnDialogs Gui, 2:Color, %CustomColor% Gui, 2:Font, s22 q5 w1 cLime gui, 2:margin,, 0 gui, 2:add, text,, + WinSet, TransColor, %CustomColor% 200 Gui, 2:Show, x925 y525 NoActivate, ch IniRead, Y, pos.ini, Pos, Y Loop { Gui, submit, nohide if(editm==1) { Gui, submit, nohide WinMove, ch,, %X%, %Y% } } return ^!+B:: DetectHiddenWindows, on IfWinNotExist, Options { IniRead, Y, pos.ini, Pos, Y Gui, 1:Font, s22 q5 cFFFF00 Gui, 1:Add, Slider, x30 y39 w1800 h29 vY Range-15-1062 TickInterval9 gCsUpdate, %Y% Gui, 1:Add, Slider, x30 y9 w1800 h29 vX Range-34-1883 TickInterval16 gCsUpdate, %X% Gui, 1:Color, c3d0707 Gui, 1:Add, Text, x5 y9 w30 h40 , X: Gui, 1:Add, Text, x5 y39 w30 h40 , Y: Gui, 1:Font, s8 q5 cFF0000 Gui, 1:Add, Button, x5 y79 w100 h28, Save Gui, 1:Add, Button, x125 y79 w100 h28, ShowCoords Gui, 1:Add, Button, x365 y79 w100 h28, Green Gui, 1:Add, Button, x485 y79 w100 h28, Red Gui, 1:Add, Button, x605 y79 w100 h28, Yellow Gui, 1:Add, Button, x725 y79 w100 h28, Blue Gui, 1:Add, Button, x845 y79 w100 h28, Aqua Gui, 1:Add, Button, x965 y79 w100 h28, Purple Gui, 1:Add, Button, x1085 y79 w100 h28, Pink Gui, 1:Add, Button, x1205 y79 w100 h28, Orange Gui, 1:Add, ComboBox, x1500 y72 w100 h55 vLanguage, English||German Gui, 1:Add, Checkbox, x1500 y95 w100 h15 vsh , Showhelp Gui, 1:Add, Checkbox, x1280 y77 w100 h15 vgmh ggmhg, GetMidHotkey Gui, 1:Add, Checkbox, x1300 y95 w100 h15 veditm gemg, EditMode Gui, 1:Add, Button, x245 y79 w100 h28, Reload Gui, 1:Add, Button, x1720 y79 w100 h28, Exit Gui, 1:show, y%Y% x%X%, Options } else { WinActivate, Options } return gmhg: Gui, 1:submit, nohide if(sh==1) { if(gmh==1) { if(Language=="English") { MsgBox, Press Strg+Alt+Shift+M to save the current MousePosition as Crosshair position. } else if(Language=="German") { MsgBox, Dr?cke Strg+Alt+Shift+M um die Mausposition als Fadenkreuzposition zu speichern. } } } return emg: Gui, 1:submit, nohide if(sh==1) { if(editm==1) { if(Language=="English") { MsgBox, Change the slider position or press Strg+Up/Down/Right/Left (Arrowkeys) } else if(Language=="German") { MsgBox, ?ndere die Position mit dem Regler oder mit Strg+Hoch/Runter/Rechts/Links (Pfeiltasten) } } } return ^Up:: if(editm==1) { GuiControl,1:, Y, +-1 } return ^Down:: if(editm==1) { GuiControl,1:, Y, +1 } return ^Right:: if(editm==1) { GuiControl,1:, X, +1 } return ^Left:: if(editm==1) { GuiControl,1:, X, +-1 } return ^!+M:: Gui, 1:submit, nohide if(gmh==1) { MouseGetPos, gpX, gpY MsgBox, X:%gpX% Y:%gpY% Sleep, 1000 IniWrite, %gpX%, pos.ini, Pos, X IniWrite, %gpY%, pos.ini, Pos, Y Sleep, 500 Reload } return CsUpdate: Gui, 1:submit, nohide WinMove, ch,, y%X%, x%Y% return ButtonGreen: Gui, 2:destroy Gui, 3:destroy Gui, 4:destroy Gui, 5:destroy Gui, 6:destroy Gui, 7:destroy Gui, 8:destroy Gui, 9:destroy Gui 2:+LastFound +AlwaysOnTop -Caption +ToolWindow Gui, 2:Color, %CustomColor% Gui, 2:Font, s22 q5 cLime gui, 2:margin,, 0 gui, 2:add, text,, + WinSet, TransColor, %CustomColor% 200 Gui, 2:Show,y%Y% x%X% NoActivate, ch return ButtonRed: Gui, 2:destroy Gui, 3:destroy Gui, 4:destroy Gui, 5:destroy Gui, 6:destroy Gui, 7:destroy Gui, 8:destroy Gui, 9:destroy Gui 3:+LastFound +AlwaysOnTop -Caption +ToolWindow Gui, 3:Color, %CustomColor% Gui, 3:Font, s22 q5 cRed gui, 3:margin,, 0 gui, 3:add, text,, + WinSet, TransColor, %CustomColor% 200 Gui, 3:Show, y%Y% x%X% NoActivate, ch return ButtonYellow: Gui, 2:destroy Gui, 3:destroy Gui, 4:destroy Gui, 5:destroy Gui, 6:destroy Gui, 7:destroy Gui, 8:destroy Gui, 9:destroy Gui 4:+LastFound +AlwaysOnTop -Caption +ToolWindow Gui, 4:Color, %CustomColor% Gui, 4:Font, s22 q5 cYellow gui, 4:margin,, 0 gui, 4:add, text,, + WinSet, TransColor, %CustomColor% 200 Gui, 4:Show, y%Y% x%X% NoActivate, ch return ButtonBlue: Gui, 2:destroy Gui, 3:destroy Gui, 4:destroy Gui, 5:destroy Gui, 6:destroy Gui, 7:destroy Gui, 8:destroy Gui, 9:destroy Gui 5:+LastFound +AlwaysOnTop -Caption +ToolWindow Gui, 5:Color, %CustomColor% Gui, 5:Font, s22 q5 cBlue gui, 5:margin,, 0 gui, 5:add, text,, + WinSet, TransColor, %CustomColor% 200 Gui, 5:Show, y%Y% x%X% NoActivate, ch return ButtonAqua: Gui, 2:destroy Gui, 3:destroy Gui, 4:destroy Gui, 5:destroy Gui, 6:destroy Gui, 7:destroy Gui, 8:destroy Gui, 9:destroy Gui 6:+LastFound +AlwaysOnTop -Caption +ToolWindow Gui, 6:Color, %CustomColor% Gui, 6:Font, s22 q5 cAqua gui, 6:margin,, 0 gui, 6:add, text,, + WinSet, TransColor, %CustomColor% 200 Gui, 6:Show, y%Y% x%X% NoActivate, ch return ButtonPurple: Gui, 2:destroy Gui, 3:destroy Gui, 4:destroy Gui, 5:destroy Gui, 6:destroy Gui, 7:destroy Gui, 8:destroy Gui, 9:destroy Gui 7:+LastFound +AlwaysOnTop -Caption +ToolWindow Gui, 7:Color, %CustomColor% Gui, 7:Font, s22 q5 cPurple gui, 7:margin,, 0 gui, 7:add, text,, + WinSet, TransColor, %CustomColor% 200 Gui, 7:Show, y%Y% x%X% NoActivate, ch return ButtonPink: Gui, 2:destroy Gui, 3:destroy Gui, 4:destroy Gui, 5:destroy Gui, 6:destroy Gui, 7:destroy Gui, 8:destroy Gui, 9:destroy Gui 8:+LastFound +AlwaysOnTop -Caption +ToolWindow Gui, 8:Color, %CustomColor% Gui, 8:Font, s22 q5 cFF00EF gui, 8:margin,, 0 gui, 8:add, text,, + WinSet, TransColor, %CustomColor% 200 Gui, 8:Show, y%Y% x%X% NoActivate, ch return ButtonOrange: Gui, 2:destroy Gui, 3:destroy Gui, 4:destroy Gui, 5:destroy Gui, 6:destroy Gui, 7:destroy Gui, 8:destroy Gui, 9:destroy Gui 9:+LastFound +AlwaysOnTop -Caption +ToolWindow Gui, 9:Color, %CustomColor% Gui, 9:Font, s22 q5 cFF8900 gui, 9:margin,, 0 gui, 9:add, text,, + WinSet, TransColor, %CustomColor% 200 Gui, 9:Show, y%Y% x%X% NoActivate, ch return ButtonReload: reload return ButtonExit: ExitApp return ButtonShowCoords: MsgBox, X:%X% Y:%Y% return ButtonSave: Gui, 1:submit, nohide Sleep, 50 IniWrite, %X%, pos.ini, Pos, X IniWrite, %Y%, pos.ini, Pos, Y Sleep, 200 Reload return GuiClose: Gui, 1:destroy return F24:: reload return ^!+D:: IniWrite, 500, pos.ini, Pos, X IniWrite, 500, pos.ini, Pos, Y Sleep, 500 Reload return ^!E:: ExitApp return
|
|
|
|