Лкм на красный цвет

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: Лкм на красный цвет

Лкм на красный цвет

by 0ngg1n1t » 13 Apr 2024, 03:05

я когда для себя пытался написать скрипт с активацией левой кнопки мыши на красный цвет, и когда я тестил в одной игре узнал то что прицел смешивается с задним фоном и не могу понять как мне приписать активацию не чисто красный а на оттенок красного.
скрипт который я немонго украл и модифицировал:

Code: Select all

p::
CoordMode, Pixel, Client
while(GetKeyState("p", "P"))
{
	PixelGetColor, color, 960, 540, RGB
	
	if ((color == "") || (color == 0x000000)) {
		SoundBeep, 100, 100
		Sleep 300
	} else
	if (color == 0xff0000)
	{
		Send, {LButton down}
	}
	else
	{
		Send, {LButton up}
	}
}

Send, {LButton up}
return

f4::reload
[Mod edit: + [code][/code] tags.]

Top