Function & Script Library
Directory fwatch\data\ stores over a dozen of extra scripts and functions that take advantage of the Fwatch features. They are listed below, each with brief description. More information you'll find inside the files.
Functions
ConvertKeyString.sqfCurrentLanguage.sqf
DateDifference.sqf
DateDifferenceInDays.sqf
FormatDate.sqf
getAspectRatio.sqf
InitFLib.sqf
inKeys.sqf
MeasureTime.sqf
ModifyDate.sqf
path.sqf
pathDedi.sqf
Scripts
InputMulti.sqsMemMulti.sqs
onScreenTyping.sqs
inKeys
Determines if given key (or a combination of keys) was pressed. For programming hotkeys.
Example:
0.02 exec "..\fwatch\data\InputMulti.sqs"
@Format ["%1",count FWATCH_INPUT_MULTI] != "scalar"
_pressed = []
["FLIB_INKEYS"] call preProcessFile "..\fwatch\data\InitFLib.sqf"
#Loop
~0.02
_keys = FWATCH_INPUT_MULTI select 0
? "K" call FLIB_INKEYS : hint "You've pressed K!"
? ["SHIFT","L"] call FLIB_INKEYS : hint "You've used SHIFT or L!"
? [["SHIFT","L"]] call FLIB_INKEYS : hint "You've pressed SHIFT+L!"
goto "Loop"