Fortnite Scirpts Topic is solved

Ask gaming related questions (AHK v1.1 and older)
TheBuckey

Fortnite Scirpts

02 Jan 2018, 01:06

So basically, I want to make script that autodetects when the selected weapon is either 5 or 6 and then switch it to the opposite number after firing the weapon. For example, if I were on weapon 5, I want this script to switch to weapon 6 after I fire, and vice versa.

Code: Select all

*~LButton::

PixelGetColor, condition, 1709, 919
PixelGetColor, condition1, 1801, 919

Sleep 50

if (condition = 0xFEFEEFE)
{
	Send, {6}
	return
}
else if (condition1 = 0xFEFEEFE)
{
	Send, {5}
	return
}
0xFEFEEFE is the color of the border and the two coordinates are the coordinates of the top left of the selected border. It doesnt work at all in game and I have no idea why... send help
TygerByte
Posts: 96
Joined: 12 Aug 2016, 05:22

Re: Fortnite Scirpts  Topic is solved

02 Jan 2018, 05:59

You should verify what color PixelGetColor is seeing if it is seeing anything at all. Also go if you check the documentation on PixelGetColor you'll see your request will never work because 0xFEFEEFE doesn't exist. The format is wrong please see https://autohotkey.com/docs/commands/PixelGetColor.htm

Code: Select all

*~LButton::
PixelGetColor, condition, 1709, 919
PixelGetColor, condition1, 1801, 919
MsgBox, My Condition color is %condition%
MsgBox, My Condition1 color is %condition1%
Return

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 103 guests