help with variables
Posted: 02 Jul 2022, 13:45
i have this in my code:
u can see here %ResolutionHeight% and %ResolutionWidth% are variables from dropdownlist
but when i press "select" button the variables in script dont apply
why ? can u please change the script so it would work
when i type the %ResolutionHeight% and %ResolutionWidth% myself like this:
its working but i dont want to type it myself i want to select it in dropdownlist pls help D:
Code: Select all
Gui, Add, DropDownList,x1 y1 w150 vResolutionHeight, 1920||1440|1280
Gui, Add, DropDownList,x1 y50 w150 vResolutionWidth, 1080||1024|960
gui, add, button, x1 y90 gselect, select
gui, show,, DDLBuzzer
return
select:
Gui, Submit, NoHide
return
ZeroX := Floor(%ResolutionHeight% // 2) - OffsetX
ZeroY := Floor(%ResolutionWidth% // 2) - OffsetY
CFovX := deg2coord(2, game_fov, %ResolutionHeight%, %ResolutionWidth%) ;aimbot fov x. range: 0 ~ game_fov/2
CFovY := deg2coord(2, game_fov, %ResolutionHeight%, %ResolutionWidth%) ;aimbot fov y. range: 0 ~ game_fov/2
,MoveX := Floor(coord2deg(AimX, game_fov, %ResolutionHeight%, %ResolutionWidth%) * (full360/360) * SpeedX)
,MoveY := Floor(coord2deg(AimY, game_fov, %ResolutionHeight%, %ResolutionWidth%) * (full360/360) * SpeedY)
but when i press "select" button the variables in script dont apply
why ? can u please change the script so it would work
when i type the %ResolutionHeight% and %ResolutionWidth% myself like this:
Code: Select all
ZeroX := Floor(1920 // 2) - OffsetX
ZeroY := Floor(1080 // 2) - OffsetY
CFovX := deg2coord(2, game_fov, 1080, 1920) ;aimbot fov x. range: 0 ~ game_fov/2
CFovY := deg2coord(2, game_fov, 1080, 1920) ;aimbot fov y. range: 0 ~ game_fov/2
,MoveX := Floor(coord2deg(AimX, game_fov, 1080, 1920) * (full360/360) * SpeedX)
,MoveY := Floor(coord2deg(AimY, game_fov, 1080, 1920) * (full360/360) * SpeedY)