Помогите дописать тригер для гта 5

Post a reply


In an effort to prevent automatic submissions, we require that you complete the following challenge.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :| :mrgreen: :geek: :ugeek: :arrow: :angel: :clap: :crazy: :eh: :lolno: :problem: :shh: :shifty: :sick: :silent: :think: :thumbup: :thumbdown: :salute: :wave: :wtf: :yawn: :facepalm: :bravo: :dance: :beard: :morebeard: :xmas: :HeHe: :trollface: :cookie: :rainbow: :monkeysee: :monkeysay: :happybday: :headwall: :offtopic: :superhappy: :terms: :beer:
View more smilies

BBCode is ON
[img] is OFF
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Помогите дописать тригер для гта 5

Помогите дописать тригер для гта 5

Post by Qwere » 07 Dec 2023, 22:33

Code: Select all

~RButton::
CoordMode, Pixel, Client
while(GetKeyState("RButton", "P"))
{
	PixelGetColor, color, 940, 385, RGB Slow
	TrayTip,, % Format("0xff0000{:x}", color)           ; показать цвет пикселя в трее
	
	if ((color == "") || (color == 0x000000)) {   ; если пиксель чёрный или цвет не удалось определить −
		SoundBeep, 100, 100                       ; будет выдан звуковой сигнал
		Sleep 300
	} else
	if (color == 0xC14F4F)
	{
		Send, {LButton down}
	}
	else
	{
		Send, {LButton up}
	}
}

Send, {LButton up}
return
[Mod edit: + [code][/code] tags.]

Top