It is currently April 23rd, 2024, 11:46 am

Hotkeys not working after a few strokes and sometimes not obeying conditions

Get help with creating, editing & fixing problems with skins
User avatar
Krainz
Posts: 186
Joined: May 27th, 2012, 5:16 am

Hotkeys not working after a few strokes and sometimes not obeying conditions

Post by Krainz »

Skin name: AsperiaSuite\Gamehall\GameScreen2\GameScreen2-Pokemon.ini

Code:

Code: Select all


[Rainmeter]
OnRefreshAction=[!HideMeterGroup Scrollbar][!CommandMeasure ChangeImage "FileCopy()"][!WriteKeyValue Variables tempvar2 "#CURRENTPATH#DownloadFile\0.jpg" "#CURRENTPATH#fetch.inc"][!SetVariable TotalWidxth "([index1Icon:W]+5+[index2Icon:W]+5+[index3Icon:W]+5+[index4Icon:W]+5+[index5Icon:W]+5+[index6Icon:W]+5+[index7Icon:W]+5+[index8Icon:W]+5+[index9Icon:W]+5+[index10Icon:W]+5+[index11Icon:W]+5+[index12Icon:W]+5+[index13Icon:W]+5)"][!Redraw]
OnUpdateAction=[!UpdateMeasure MeasurePikaBlinkSmile]
MouseActionCursor=Arrow
AccurateText=1
Update=50
DefaultUpdateDivider=8640
mousescrollupAction=[!CommandMeasure MeasureMover "Execute 2"]
mousescrolldownAction=[!CommandMeasure MeasureMover "Execute 1"]
BackgroundMode=0
RightKeyboard Hotkey "MBUTTON SCROLLLOCK"][!SetOption Enter Hotkey "MBUTTON SCROLLLOCK"]
OnFocusAction=[!SetVariable FOCUS "1"][!UpdateMeasure "MeasureFocus"]
OnUnfocusAction=[!SetVariable FOCUS "0"][!UpdateMeasure "MeasureFocus"][!HideMeterGroup Dropdown]
MouseOverAction=[!SetVariable FOCUS "1"][!UpdateMeasure "MeasureFocus"]

[Metadata]
Name=Gamehall
Author=Krainz (Douglas Lins)
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0

[Variables]
@include=#@#Variables\Variables.inc
@Include1=#@#Variables\GeneralSettings.inc
@Include2=#CURRENTPATH#fetch.inc
@Include3=#CURRENTPATH#GamehallVariables.inc


@Include4=#CURRENTPATH#ActionTimerPika.inc

[MeasureFocus]
Measure=Calc
Formula=#FOCUS#
UpdateDivider=21
IfCondition=(#CURRENTSECTION#>=1)
IfTrueAction=[!CommandMeasure "EscClose" "Start"][!CommandMeasure "LeftKeyboard" "Start"][!CommandMeasure "RightKeyboard" "Start"][!CommandMeasure "Enter" "Start"][!UpdateMeasureGroup Keys]
IfFalseAction=[!HideMeterGroup Dropdown][!CommandMeasure "EscClose" "Stop"][!CommandMeasure "LeftKeyboard" "Stop"][!CommandMeasure "RightKeyboard" "Stop"][!;CommandMeasure "Enter" "Stop"][!UpdateMeasureGroup Keys]
DynamicVariables=1

[EscClose]
Measure=Plugin
Plugin=HotKey
HotKey=ESCAPE
KeyDownAction=[!DeactivateConfig]
UpdateDivider=#UPDATECYCLE#

[Background1]
Meter=Image
ImageName=pokebackground.jpg
X=0
Y=0
PreserveAspectRatio=1
RightMouseUpAction=[!SetOption DropdownBG X ($MouseX$)][!SetOption DropdownBG Y ($MouseY$)][!SetOption DropdownBGC X ($MouseX$+1)][!SetOption DropdownBGC Y ($MouseY$)][!ToggleMeterGroup DropdownBG]
LeftMouseUpAction=[!HideMeterGroup Dropdown]
H=#screenareaheight#
;W=#screenareawidth#
UpdateDivider=864000

[TrainersBlack]
Meter=Image
ImageName=trainers-black.png
X=(0.5*#ScreenAreaWidth#-(608/2))
Y=(#screenareaheight#-1025)
Hidden=#HideChampions#
ImageAlpha=8
DynamicVariables=1
PreserveAspectRatio=1

[TrainersColor]
Meter=Image
ImageName=trainers-color.png
X=([TrainersBlack:X])
Y=([TrainersBlack:Y])
Hidden=#HideChampions#
ImageAlpha=69
DynamicVariables=1
PreserveAspectRatio=1

[TrainersRedBlue]
Meter=Image
ImageName=trainers-redblue.png
X=(0.5*#ScreenAreaWidth#-(473/2))
Y=(#screenareaheight#-763-19)
Hidden=#HideTrainersRedBlue#
DynamicVariables=1
PreserveAspectRatio=1

[Pikaball]
Meter=Image
ImageName=pikachu.png
X=(0.5*#ScreenAreaWidth#-(473/2))
Y=(#screenareaheight#-763-19)
Hidden=#HidePikachuPokeball#
LeftMouseUpAction=[!CommandMeasure Pika "Execute 2"]
DynamicVariables=1
PreserveAspectRatio=1

[Pikahead]
Meter=Shape
Shape=Ellipse 0,38,38,35 | Fill Color 10,0,255,1 | Stroke Color 0,0,0,0
X=([Pikaball:X]+236)
Y=([Pikaball:Y]+202)
MouseOverAction=[!ShowMeter PikaBlink][!DisableMeasure MeasurePikaBlinkSmile]
MouseLeaveAction=[!HideMeter PikaBlink][!EnableMeasure MeasurePikaBlinkSmile]
Hidden=#HidePikachuPokeball#
DynamicVariables=1
AntiAlias=1

[PikaBlink]
Meter=Image
ImageName=pika-blink.jpg
X=([Pikaball:X]+205)
Y=([Pikaball:Y]+227)
DynamicVariables=1
AntiAlias=1
Hidden=1

[PikaBlinkSmile]
Meter=Image
ImageName=pika-blinksmile.jpg
X=([Pikaball:X]+205)
Y=([Pikaball:Y]+227)
DynamicVariables=1
AntiAlias=1
Hidden=1

[BackgroundS]
Meter=Image
SolidColor=0,0,0,0
W=(#screenareawidth#/2)
H=(#screenareaheight#/2)
X=(#screenareawidth#/2)
MouseOverAction=[!ShowMeter CloseX][!ShowMeter Settings][!ShowMeter Openfolder][!SetOption CloseX FontColor 255,255,255,60][!SetOption Settings ImageAlpha 60][!SetOption Openfolder ImageAlpha 60][!UpdateMeter *]
MouseLeaveAction=[!HideMeter CloseX][!HideMeter Settings][!HideMeter Openfolder][!UpdateMeter *]
UpdateDivider=#UPDATECYCLE#

[Container]
Meter=Image
SolidColor=0,120,0,255
X=0
Y=(#screenareaheight#*0.182)
W=(2*#screenareawidth#)
H=((2*366*#scrollproportion#)+19)
DynamicVariables=1
UpdateDivider=#UPDATECYCLE#

;----------------------------------------------------------
; OnLoad Measures
;----------------------------------------------------------

[MeasureMover]
Measure=Plugin
Plugin=ActionTimer
ActionList1=Repeat MoveLeft, #ATW#, 5
ActionList2=Repeat MoveRight, #ATW#, 5
ActionList3=Repeat MoveLeft2, #ATW#, 1
ActionList4=Repeat MoveRight2, #ATW#, 1
ActionList5=Repeat MoveLeft3, #ATW#, 1
ActionList6=Repeat MoveRight3, #ATW#, 1
ActionList7=Repeat MoveLeft4, #ATW#, 5
ActionList8=Repeat MoveRight4, #ATW#, 5
MoveRight=[!SetVariable ATX "(Clamp((#ATX#+(#jump#*1.1)),#Limit2#,#Limit1#))"][!SetVariable ATsX "(Clamp((#ATsX#-(#jumpscroll#/0.86)),19,#LimitS#))"][!UpdateMeasure StopMover]#U2#
MoveLeft=[!SetVariable ATX "(Clamp((#ATX#-(#jump#*1.1)),#Limit2#,#Limit1#))"][!SetVariable ATsX "(Clamp((#ATsX#+(#jumpscroll#/0.86)),19,#LimitS#))"][!UpdateMeasure StopMover]#U2#
MoveRight2=[!SetVariable ATsX "(Clamp((#ATsX#-(#jumpscroll#*0.34)),19,#LimitS#))"]#U2#
MoveLeft2=[!SetVariable ATsX "(Clamp((#ATsX#+(#jumpscroll#*0.34)),19,#LimitS#))"]#U2#
MoveRight3=[!SetVariable ATX "(Clamp((#ATX#+(#jump#*0.2)),#Limit2#,#Limit1#))"][!SetVariable ATsX "(Clamp((#ATsX#-(#jumpscroll#*0.2)),19,#LimitS#))"]#U2#
MoveLeft3=[!SetVariable ATX "(Clamp((#ATX#-(#jump#*0.2)),#Limit2#,#Limit1#))"][!SetVariable ATsX "(Clamp((#ATsX#+(#jumpscroll#*0.2)),19,#LimitS#))"]#U2#

;MOVELEFT4 E MOVERIGHT4 SÃO USADOS NAS HOTKEYS

MoveRight4=[!SetVariable ATX "(Clamp((#ATX#+(#jumpLOCK#*1.4)),#Limit2#,#Limit1#))"][!SetVariable ATsX "(Clamp((#ATsX#-(#jumpscrollLOCK#/0.1)),19,#LimitS#))"]#U2#
MoveLeft4=[!SetVariable ATX "(Clamp((#ATX#-(#jumpLOCK#*1.4)),#Limit2#,#Limit1#))"][!SetVariable ATsX "(Clamp((#ATsX#+(#jumpscrollLOCK#/0.86)),19,#LimitS#))"]#U2#

DynamicVariables=1



[MeasureRun]
Measure=Plugin
Plugin=RunCommand
Parameter=copy "#tempvar#" "#tempvar2#"
DynamicVariables=1
UpdateDivider=#UPDATECYCLE#

[MeasureDel]
Measure=Plugin
Plugin=RunCommand
Parameter=remove "#tempvar2#"
DynamicVariables=1
UpdateDivider=#UPDATECYCLE#

[ChangeImage]
Measure=Script
ScriptFile=#CURRENTPATH#Test.lua
UpdateDivider=-1
UpdateDivider=#UPDATECYCLE#


[MeasureFileExists1]
Measure=Script
ScriptFile=#CURRENTPATH#Check.lua
FileToFind=#CURRENTPATH#DownloadFile\[mIndex1].jpg
FetchN=Fetch1
Parent=MeasureOnLoadFetch1
UpdateDivider=10
DynamicVariables=1

[MeasureFileExists2]
Measure=Script
ScriptFile=#CURRENTPATH#Check.lua
FileToFind=#CURRENTPATH#DownloadFile\[mIndex2].jpg
FetchN=Fetch2
Parent=MeasureOnLoadFetch2
UpdateDivider=10
DynamicVariables=1

[MeasureFileExists3]
Measure=Script
ScriptFile=#CURRENTPATH#Check.lua
FileToFind=#CURRENTPATH#DownloadFile\[mIndex3].jpg
FetchN=Fetch3
Parent=MeasureOnLoadFetch3
UpdateDivider=10
DynamicVariables=1

[MeasureFileExists4]
Measure=Script
ScriptFile=#CURRENTPATH#Check.lua
FileToFind=#CURRENTPATH#DownloadFile\[mIndex4].jpg
FetchN=Fetch4
Parent=MeasureOnLoadFetch4
UpdateDivider=10
DynamicVariables=1

[MeasureFileExists5]
Measure=Script
ScriptFile=#CURRENTPATH#Check.lua
FileToFind=#CURRENTPATH#DownloadFile\[mIndex5].jpg
FetchN=Fetch5
Parent=MeasureOnLoadFetch5
UpdateDivider=10
DynamicVariables=1

[MeasureFileExists6]
Measure=Script
ScriptFile=#CURRENTPATH#Check.lua
FileToFind=#CURRENTPATH#DownloadFile\[mIndex6].jpg
FetchN=Fetch6
Parent=MeasureOnLoadFetch6
UpdateDivider=10
DynamicVariables=1

[MeasureFileExists7]
Measure=Script
ScriptFile=#CURRENTPATH#Check.lua
FileToFind=#CURRENTPATH#DownloadFile\[mIndex7].jpg
FetchN=Fetch7
Parent=MeasureOnLoadFetch7
UpdateDivider=10
DynamicVariables=1

[MeasureFileExists8]
Measure=Script
ScriptFile=#CURRENTPATH#Check.lua
FileToFind=#CURRENTPATH#DownloadFile\[mIndex8].jpg
FetchN=Fetch8
Parent=MeasureOnLoadFetch8
UpdateDivider=10
DynamicVariables=1

[MeasureFileExists9]
Measure=Script
ScriptFile=#CURRENTPATH#Check.lua
FileToFind=#CURRENTPATH#DownloadFile\[mIndex9].jpg
FetchN=Fetch9
Parent=MeasureOnLoadFetch9
UpdateDivider=10
DynamicVariables=1

[MeasureFileExists10]
Measure=Script
ScriptFile=#CURRENTPATH#Check.lua
FileToFind=#CURRENTPATH#DownloadFile\[mIndex10].jpg
FetchN=Fetch10
Parent=MeasureOnLoadFetch10
UpdateDivider=10
DynamicVariables=1

[MeasureFileExists11]
Measure=Script
ScriptFile=#CURRENTPATH#Check.lua
FileToFind=#CURRENTPATH#DownloadFile\[mIndex11].jpg
FetchN=Fetch11
Parent=MeasureOnLoadFetch11
UpdateDivider=10
DynamicVariables=1

[MeasureFileExists12]
Measure=Script
ScriptFile=#CURRENTPATH#Check.lua
FileToFind=#CURRENTPATH#DownloadFile\[mIndex12].jpg
FetchN=Fetch12
Parent=MeasureOnLoadFetch12
UpdateDivider=10
DynamicVariables=1

[MeasureFileExists13]
Measure=Script
ScriptFile=#CURRENTPATH#Check.lua
FileToFind=#CURRENTPATH#DownloadFile\[mIndex13].jpg
FetchN=Fetch13
Parent=MeasureOnLoadFetch13
UpdateDivider=10
DynamicVariables=1


[MeasureOnLoadFetch1]
Measure=Calc
Formula=Counter
IfCondition=(#NumberOfItems# >= 1)
IfTrueAction=[!CommandMeasure MeasureFileExists1 "FileCheck()"]
UpdateDivider=1
DynamicVariables=1

[MeasureOnLoadFetch2]
Measure=Calc
Formula=Counter
IfCondition=(#NumberOfItems# >= 2)
IfTrueAction=[!CommandMeasure MeasureFileExists2 "FileCheck()"]
UpdateDivider=1
DynamicVariables=1

[MeasureOnLoadFetch3]
Measure=Calc
Formula=Counter
IfCondition=(#NumberOfItems# >= 3)
IfTrueAction=[!CommandMeasure MeasureFileExists3 "FileCheck()"]
UpdateDivider=1
DynamicVariables=1

[MeasureOnLoadFetch4]
Measure=Calc
Formula=Counter
IfCondition=(#NumberOfItems# >= 4)
IfTrueAction=[!CommandMeasure MeasureFileExists4 "FileCheck()"]
UpdateDivider=1
DynamicVariables=1

[MeasureOnLoadFetch5]
Measure=Calc
Formula=Counter
IfCondition=(#NumberOfItems# >= 5)
IfTrueAction=[!CommandMeasure MeasureFileExists5 "FileCheck()"]
UpdateDivider=1
DynamicVariables=1

[MeasureOnLoadFetch6]
Measure=Calc
Formula=Counter
IfCondition=(#NumberOfItems# >= 6)
IfTrueAction=[!CommandMeasure MeasureFileExists6 "FileCheck()"]
UpdateDivider=1
DynamicVariables=1

[MeasureOnLoadFetch7]
Measure=Calc
Formula=Counter
IfCondition=(#NumberOfItems# >= 7)
IfTrueAction=[!CommandMeasure MeasureFileExists7 "FileCheck()"]
UpdateDivider=1
DynamicVariables=1

[MeasureOnLoadFetch8]
Measure=Calc
Formula=Counter
IfCondition=(#NumberOfItems# >= 8)
IfTrueAction=[!CommandMeasure MeasureFileExists8 "FileCheck()"]
UpdateDivider=1
DynamicVariables=1

[MeasureOnLoadFetch9]
Measure=Calc
Formula=Counter
IfCondition=(#NumberOfItems# >= 9)
IfTrueAction=[!CommandMeasure MeasureFileExists9 "FileCheck()"]
UpdateDivider=1
DynamicVariables=1

[MeasureOnLoadFetch10]
Measure=Calc
Formula=Counter
IfCondition=(#NumberOfItems# >= 10)
IfTrueAction=[!CommandMeasure MeasureFileExists10 "FileCheck()"]
UpdateDivider=1
DynamicVariables=1

[MeasureOnLoadFetch11]
Measure=Calc
Formula=Counter
IfCondition=(#NumberOfItems# >= 11)
IfTrueAction=[!CommandMeasure MeasureFileExists11 "FileCheck()"]
UpdateDivider=1
DynamicVariables=1

[MeasureOnLoadFetch12]
Measure=Calc
Formula=Counter
IfCondition=(#NumberOfItems# >= 12)
IfTrueAction=[!CommandMeasure MeasureFileExists12 "FileCheck()"]
UpdateDivider=1
DynamicVariables=1

[MeasureOnLoadFetch13]
Measure=Calc
Formula=Counter
IfCondition=(#NumberOfItems# >= 13)
IfTrueAction=[!CommandMeasure MeasureFileExists13 "FileCheck()"]
UpdateDivider=1
DynamicVariables=1


[FVMeasure]
Measure=Plugin
Plugin=#PlName#
Path="#GameFolder2#"
ShowDotDot=0
SortType=Date
SortAscending=0
SortDateType=Accessed
ShowHidden=0
HideExtensions=1
Count=#MaxItem#
FinishAction=[!UpdateMeterGroup Items][!Redraw]
UpdateDivider=#UPDATECYCLE#

;----------------------------------------------------

[FileCount]
Measure=Plugin
Plugin=Plugins\FolderInfo.dll
Folder="#GameFolder2#"
InfoType=FileCount
IncludeHiddenFiles=0
IncludeSubFolders=0
IncludeSystemFiles=0
RegExpFilter=.*
UpdateDivider=#UPDATECYCLE#

[FolderCount]
Measure=Plugin
Plugin=Plugins\FolderInfo.dll
Folder="#GameFolder2#"
InfoType=FolderCount
IncludeHiddenFiles=0
IncludeSubFolders=0
IncludeSystemFiles=0
RegExpFilter=.*
UpdateDivider=#UPDATECYCLE#

[AnalyzeTotal]
Measure=Calc
Formula=FileCount+FolderCount
IfAboveValue=#MaxItem#
IfAboveAction=[!SetVariable NumberOfItems #MaxItem#][!ShowMeter ToolbarTitle+][!HideMeter ToolbarTitle][!WriteKeyValue Variables Toolbar1Count ([FileCount]+[FolderCount]) "#@#Variables\GeneralSettings.inc"][!SetVariable HideScrollbar 1]
IfEqualValue=#MaxItem#
IfEqualAction=[!SetVariable NumberOfItems ([FileCount]+[FolderCount])][!WriteKeyValue Variables Toolbar1Count ([FileCount]+[FolderCount]) "#@#Variables\GeneralSettings.inc"]
IfBelowValue=#MaxItem#
IfBelowAction=[!SetVariable NumberOfItems ([FileCount]+[FolderCount])][!WriteKeyValue Variables Toolbar1Count ([FileCount]+[FolderCount]) "#@#Variables\GeneralSettings.inc"]
UpdateDivider=#UPDATECYCLE#

[StopMover]
Measure=Calc
Formula=(#ATX#)
UpdateDivider=-1
IfCondition=StopMover > 21
IfTrueAction=[!CommandMeasure MeasureMover "Stop 1"][!DisableMouseAction Rainmeter "MouseScrollUpAction"][!Update]
IfFalseAction=[!EnableMouseAction Rainmeter "MouseScrollUpAction"][!Update]
IfCondition2=StopMover <= #Limit2#
IfTrueAction2=[!CommandMeasure MeasureMover "Stop 2"][!DisableMouseAction Rainmeter "MouseScrollDownAction"][!Update]
IfFalseAction2=[!EnableMouseAction Rainmeter "MouseScrollDownAction"][!Update]
DynamicVariables=1
UpdateDivider=30

[CurrentN]
Measure=Calc
Formula=1
UpdateDivider=-1
IfCondition=CurrentN < 1
IfTrueAction=[!CommandMeasure MeasureMover "Stop 7"][!SetOption CurrentN Formula "1"][!CommandMeasure LeftKeyboard Stop][!DisableMeasureGroup GamepadLeft][!UpdateMeasure CurrentN]
IfCondition2=CurrentN > #NumberOfItems#
IfTrueAction2=[!CommandMeasure MeasureMover "Stop 8"][!SetOption CurrentN Formula #NumberOfItems#][!CommandMeasure RightKeyboard Stop][!DisableMeasureGroup GamepadRight][!UpdateMeasure CurrentN]
DynamicVariables=1

[PressLeftCounter]
Measure=Calc
Formula=PressLeftCounter + 1
Disabled=1
UpdateDivider=-1
OnUpdateAction=[!SetOption CurrentN Formula "([CurrentN] - 1)"][!UpdateMeasure CurrentN][!Redraw]

[PressRightCounter]
Measure=Calc
Formula=PressRightCounter + 1
Disabled=1
UpdateDivider=-1
OnUpdateAction=[!SetOption CurrentN Formula "([CurrentN] + 1)"][!UpdateMeasure CurrentN][!Redraw]

[KeyScrollControlL]
Measure=Calc
Formula=CurrentN
UpdateDivider=-1
DynamicVariables=1
IfCondition=CurrentN >= 5
IfTrueAction=[!SetVariable jumpscrollLOCK #jumpscroll#][!SetVariable jumpLOCK #jump#]
IfCondition2=CurrentN < 5
IfTrueAction2=[!SetVariable jumpscrollLOCK 0][!SetVariable jumpLOCK 0]

[KeyScrollControlR]
Measure=Calc
Formula=CurrentN
UpdateDivider=-1
DynamicVariables=1
IfCondition=CurrentN < 4
IfTrueAction=[!SetVariable jumpscrollLOCK 0][!SetVariable jumpLOCK 0]
IfCondition2=CurrentN >= 4
IfTrueAction2=[!SetVariable jumpLOCK #jump#]

[MeasureCurrentBtn]
Measure=Calc
Formula=#CurrentBtn#
IfCondition=(#CURRENTSECTION#=0)
IfTrueAction=[!SetOption "Frame1" ImageName gameframe.png][!SetOption "Frame2" ImageName gameframe.png][!SetOption "Frame3" ImageName gameframe.png][!SetOption "Frame4" ImageName gameframe.png][!SetOption "Frame5" ImageName gameframe.png][!SetOption "Frame6" ImageName gameframe.png][!SetOption "Frame7" ImageName gameframe.png][!SetOption "Frame8" ImageName gameframe.png][!SetOption "Frame9" ImageName gameframe.png][!SetOption "Frame10" ImageName gameframe.png][!SetOption "Frame11" ImageName gameframe.png][!SetOption "Frame12" ImageName gameframe.png][!SetOption "Frame13" ImageName gameframe.png][!Redraw]
IfCondition2=(#CURRENTSECTION#=1)
IfTrueAction2=[!SetOption "Frame1" ImageName gameframe-highlight.png][!SetOption "Frame2" ImageName gameframe.png][!SetOption "Frame3" ImageName gameframe.png][!SetOption "Frame4" ImageName gameframe.png][!SetOption "Frame5" ImageName gameframe.png][!SetOption "Frame6" ImageName gameframe.png][!SetOption "Frame7" ImageName gameframe.png][!SetOption "Frame8" ImageName gameframe.png][!SetOption "Frame9" ImageName gameframe.png][!SetOption "Frame10" ImageName gameframe.png][!SetOption "Frame11" ImageName gameframe.png][!SetOption "Frame12" ImageName gameframe.png][!SetOption "Frame13" ImageName gameframe.png][!Redraw]
IfCondition3=(#CURRENTSECTION#=2)
IfTrueAction3=[!SetOption "Frame1" ImageName gameframe.png][!SetOption "Frame2" ImageName gameframe-highlight.png][!SetOption "Frame3" ImageName gameframe.png][!SetOption "Frame4" ImageName gameframe.png][!SetOption "Frame5" ImageName gameframe.png][!SetOption "Frame6" ImageName gameframe.png][!SetOption "Frame7" ImageName gameframe.png][!SetOption "Frame8" ImageName gameframe.png][!SetOption "Frame9" ImageName gameframe.png][!SetOption "Frame10" ImageName gameframe.png][!SetOption "Frame11" ImageName gameframe.png][!SetOption "Frame12" ImageName gameframe.png][!SetOption "Frame13" ImageName gameframe.png][!Redraw]
IfCondition4=(#CURRENTSECTION#=3)
IfTrueAction4=[!SetOption "Frame1" ImageName gameframe.png][!SetOption "Frame2" ImageName gameframe.png][!SetOption "Frame3" ImageName gameframe-highlight.png][!SetOption "Frame4" ImageName gameframe.png][!SetOption "Frame5" ImageName gameframe.png][!SetOption "Frame6" ImageName gameframe.png][!SetOption "Frame7" ImageName gameframe.png][!SetOption "Frame8" ImageName gameframe.png][!SetOption "Frame9" ImageName gameframe.png][!SetOption "Frame10" ImageName gameframe.png][!SetOption "Frame11" ImageName gameframe.png][!SetOption "Frame12" ImageName gameframe.png][!SetOption "Frame13" ImageName gameframe.png][!Redraw]
IfCondition5=(#CURRENTSECTION#=4)
IfTrueAction5=[!SetOption "Frame1" ImageName gameframe.png][!SetOption "Frame2" ImageName gameframe.png][!SetOption "Frame3" ImageName gameframe.png][!SetOption "Frame4" ImageName gameframe-highlight.png][!SetOption "Frame5" ImageName gameframe.png][!SetOption "Frame6" ImageName gameframe.png][!SetOption "Frame7" ImageName gameframe.png][!SetOption "Frame8" ImageName gameframe.png][!SetOption "Frame9" ImageName gameframe.png][!SetOption "Frame10" ImageName gameframe.png][!SetOption "Frame11" ImageName gameframe.png][!SetOption "Frame12" ImageName gameframe.png][!SetOption "Frame13" ImageName gameframe.png][!Redraw]
IfCondition6=(#CURRENTSECTION#=5)
IfTrueAction6=[!SetOption "Frame1" ImageName gameframe.png][!SetOption "Frame2" ImageName gameframe.png][!SetOption "Frame3" ImageName gameframe.png][!SetOption "Frame4" ImageName gameframe.png][!SetOption "Frame5" ImageName gameframe-highlight.png][!SetOption "Frame6" ImageName gameframe.png][!SetOption "Frame7" ImageName gameframe.png][!SetOption "Frame8" ImageName gameframe.png][!SetOption "Frame9" ImageName gameframe.png][!SetOption "Frame10" ImageName gameframe.png][!SetOption "Frame11" ImageName gameframe.png][!SetOption "Frame12" ImageName gameframe.png][!SetOption "Frame13" ImageName gameframe.png][!Redraw]
IfCondition7=(#CURRENTSECTION#=6)
IfTrueAction7=[!SetOption "Frame1" ImageName gameframe.png][!SetOption "Frame2" ImageName gameframe.png][!SetOption "Frame3" ImageName gameframe.png][!SetOption "Frame4" ImageName gameframe.png][!SetOption "Frame5" ImageName gameframe.png][!SetOption "Frame6" ImageName gameframe-highlight.png][!SetOption "Frame7" ImageName gameframe.png][!SetOption "Frame8" ImageName gameframe.png][!SetOption "Frame9" ImageName gameframe.png][!SetOption "Frame10" ImageName gameframe.png][!SetOption "Frame11" ImageName gameframe.png][!SetOption "Frame12" ImageName gameframe.png][!SetOption "Frame13" ImageName gameframe.png][!Redraw]
IfCondition8=(#CURRENTSECTION#=7)
IfTrueAction8=[!SetOption "Frame1" ImageName gameframe.png][!SetOption "Frame2" ImageName gameframe.png][!SetOption "Frame3" ImageName gameframe.png][!SetOption "Frame4" ImageName gameframe.png][!SetOption "Frame5" ImageName gameframe.png][!SetOption "Frame6" ImageName gameframe.png][!SetOption "Frame7" ImageName gameframe-highlight.png][!SetOption "Frame8" ImageName gameframe.png][!SetOption "Frame9" ImageName gameframe.png][!SetOption "Frame10" ImageName gameframe.png][!SetOption "Frame11" ImageName gameframe.png][!SetOption "Frame12" ImageName gameframe.png][!SetOption "Frame13" ImageName gameframe.png][!Redraw]
IfCondition9=(#CURRENTSECTION#=8)
IfTrueAction9=[!SetOption "Frame1" ImageName gameframe.png][!SetOption "Frame2" ImageName gameframe.png][!SetOption "Frame3" ImageName gameframe.png][!SetOption "Frame4" ImageName gameframe.png][!SetOption "Frame5" ImageName gameframe.png][!SetOption "Frame6" ImageName gameframe.png][!SetOption "Frame7" ImageName gameframe.png][!SetOption "Frame8" ImageName gameframe-highlight.png][!SetOption "Frame9" ImageName gameframe.png][!SetOption "Frame10" ImageName gameframe.png][!SetOption "Frame11" ImageName gameframe.png][!SetOption "Frame12" ImageName gameframe.png][!SetOption "Frame13" ImageName gameframe.png][!Redraw]
IfCondition10=(#CURRENTSECTION#=9)
IfTrueAction10=[!SetOption "Frame1" ImageName gameframe.png][!SetOption "Frame2" ImageName gameframe.png][!SetOption "Frame3" ImageName gameframe.png][!SetOption "Frame4" ImageName gameframe.png][!SetOption "Frame5" ImageName gameframe.png][!SetOption "Frame6" ImageName gameframe.png][!SetOption "Frame7" ImageName gameframe.png][!SetOption "Frame8" ImageName gameframe.png][!SetOption "Frame9" ImageName gameframe-highlight.png][!SetOption "Frame10" ImageName gameframe.png][!SetOption "Frame11" ImageName gameframe.png][!SetOption "Frame12" ImageName gameframe.png][!SetOption "Frame13" ImageName gameframe.png][!Redraw]
IfCondition11=(#CURRENTSECTION#=10)
IfTrueAction11=[!SetOption "Frame1" ImageName gameframe.png][!SetOption "Frame2" ImageName gameframe.png][!SetOption "Frame3" ImageName gameframe.png][!SetOption "Frame4" ImageName gameframe.png][!SetOption "Frame5" ImageName gameframe.png][!SetOption "Frame6" ImageName gameframe.png][!SetOption "Frame7" ImageName gameframe.png][!SetOption "Frame8" ImageName gameframe.png][!SetOption "Frame9" ImageName gameframe.png][!SetOption "Frame10" ImageName gameframe-highlight.png][!SetOption "Frame11" ImageName gameframe.png][!SetOption "Frame12" ImageName gameframe.png][!SetOption "Frame13" ImageName gameframe.png][!Redraw]
IfCondition12=(#CURRENTSECTION#=11)
IfTrueAction12=[!SetOption "Frame1" ImageName gameframe.png][!SetOption "Frame2" ImageName gameframe.png][!SetOption "Frame3" ImageName gameframe.png][!SetOption "Frame4" ImageName gameframe.png][!SetOption "Frame5" ImageName gameframe.png][!SetOption "Frame6" ImageName gameframe.png][!SetOption "Frame7" ImageName gameframe.png][!SetOption "Frame8" ImageName gameframe.png][!SetOption "Frame9" ImageName gameframe.png][!SetOption "Frame10" ImageName gameframe.png][!SetOption "Frame11" ImageName gameframe-highlight.png][!SetOption "Frame12" ImageName gameframe.png][!SetOption "Frame13" ImageName gameframe.png][!Redraw]
IfCondition13=(#CURRENTSECTION#=12)
IfTrueAction13=[!SetOption "Frame1" ImageName gameframe.png][!SetOption "Frame2" ImageName gameframe.png][!SetOption "Frame3" ImageName gameframe.png][!SetOption "Frame4" ImageName gameframe.png][!SetOption "Frame5" ImageName gameframe.png][!SetOption "Frame6" ImageName gameframe.png][!SetOption "Frame7" ImageName gameframe.png][!SetOption "Frame8" ImageName gameframe.png][!SetOption "Frame9" ImageName gameframe.png][!SetOption "Frame10" ImageName gameframe.png][!SetOption "Frame11" ImageName gameframe.png][!SetOption "Frame12" ImageName gameframe-highlight.png][!SetOption "Frame13" ImageName gameframe.png][!Redraw]
IfCondition14=(#CURRENTSECTION#=13)
IfTrueAction14=[!SetOption "Frame1" ImageName gameframe.png][!SetOption "Frame2" ImageName gameframe.png][!SetOption "Frame3" ImageName gameframe.png][!SetOption "Frame4" ImageName gameframe.png][!SetOption "Frame5" ImageName gameframe.png][!SetOption "Frame6" ImageName gameframe.png][!SetOption "Frame7" ImageName gameframe.png][!SetOption "Frame8" ImageName gameframe.png][!SetOption "Frame9" ImageName gameframe.png][!SetOption "Frame10" ImageName gameframe.png][!SetOption "Frame11" ImageName gameframe.png][!SetOption "Frame12" ImageName gameframe.png][!SetOption "Frame13" ImageName gameframe-highlight.png][!Redraw]
DynamicVariables=1
UpdateDivider=#UPDATECYCLE#


;----------------------------------------------------
; Scrollbar
;----------------------------------------------------

[ScrollBG]
Meter=Image
ImageName=scrollbg.png
Y=(#screenareaheight#-[ScrollBG:H]-5)
X=((#screenareawidth#/2)-([ScrollBG:W]/2))
W=#scrollbgwidth#
ImageAlpha=(#NumberOfItems# < 7 ? 0 : 25)
ImageTint=0,0,0,255
;H=3
DynamicVariables=1
Group=ScrollBar
Hidden=1
UpdateDivider=#UPDATECYCLE#

[ScrollBar]
Meter=Image
ImageName=scrollbar.png
Y=(#screenareaheight#-[ScrollBar:H]-5)
X=(((#screenareawidth#/2)-([ScrollBG:W]/2))+#ATsX#-17)
W=#scrollwidth#
ImageAlpha=(#NumberOfItems# < 7 ? 0 : 255)
ImageTint=50,50,50,255
;H=3
DynamicVariables=1
Group=ScrollBar
Hidden=1
UpdateDivider=#UPDATECYCLE#

;----------------------------------------------------------
; Hotkeys
;----------------------------------------------------------

[TestCurrentN]
Meter=String
Text=CurrentN is: [CurrentN]
DynamicVariables=1
FontFace=Optimus
FontSize=20
X=(0.5*#ScreenAreaWidth#)
Y=(0.5*#screenareaheight#)


[UIControlLEFT]
Measure=Calc
DynamicVariables=1
Disabled=1
UpdateDivider=-1
Group=UIControl
Formula=CurrentN
IfCondition=((#CURRENTSECTION# = 5) || (#CURRENTSECTION# = 9)) && (#TOPMENU# = 0)
IfTrueAction=#soundhover#[!SetVariable CurrentBtn "(Clamp((0.5*(#CurrentBtn#-1)),1,#NumberOfItems#))"][!SetOption "Frame[CurrentN]" ImageName gameframe.png][!SetOption CurrentN Formula "#CurrentBtn#"][!UpdateMeasure CurrentN][!SetOption "Frame[CurrentN]" ImageName gameframe-highlight.png][!UpdateMeasure KeyScrollControlR][!CommandMeasure MeasureMover "Execute 8"][!CommandMeasure RightKeyboard Start][!EnableMeasureGroup GamepadRight][!UpdateMeasure "MeasureCurrentBtn"][!UpdateMeasure "LeftKeyboard"][!UpdateMeasure "RightKeyboard"][!Redraw]
;fazer big slide pra esquerda
IfCondition2=((#CURRENTSECTION# = 1) || (#CURRENTSECTION# = 3)) && (#TOPMENU# = 0)
IfTrueAction2=[!Update]
IfCondition3=((#CURRENTSECTION# <> 1) || (#CURRENTSECTION# <> 3) || (#CURRENTSECTION# <> 5) || (#CURRENTSECTION# <> 9)) && (#TOPMENU# = 0)
IfTrueAction3=#soundhover#[!SetVariable CurrentBtn "(Clamp((#CurrentBtn#-1),1,#NumberOfItems#))"][!SetOption "Frame[CurrentN]" ImageName gameframe.png][!SetOption CurrentN Formula "([CurrentN]-1)"][!UpdateMeasure CurrentN][!SetOption "Frame[CurrentN]" ImageName gameframe-highlight.png][!UpdateMeasure KeyScrollControlR][!CommandMeasure MeasureMover "Execute 8"][!CommandMeasure RightKeyboard Start][!EnableMeasureGroup GamepadRight][!UpdateMeasure "MeasureCurrentBtn"][!UpdateMeasure "LeftKeyboard"][!UpdateMeasure "RightKeyboard"][!Redraw]
IfCondition4=(#TOPMENU# = 1)
IfTrueAction4=#soundhover#
; keycontrol LEFT
; se currentN = 5 ou 9 & variavel #TOPMENU# = 0
; -> deixar anotação pra fazer big slide pra esquerda
; -> SetVariable CurrentBtn "(Clamp((0.5*(#CurrentBtn#-1)),1,#NumberOfItems#))
; se currentN = 1 ou 3 & variavel #TOPMENU# = 0
; -> sem ação

[UIControlRIGHT]
Measure=Calc
DynamicVariables=1
Disabled=1
UpdateDivider=-1
Group=UIControl
Formula=CurrentN
IfCondition=((#CURRENTSECTION# = 2) || (#CURRENTSECTION# = 4)) && (#TOPMENU# = 0)
IfTrueAction=#soundhover#[!SetVariable CurrentBtn "(Clamp((1+(#CurrentBtn#*2)),1,#NumberOfItems#))"][!SetOption "Frame[CurrentN]" ImageName gameframe.png][!SetOption CurrentN Formula "(1+([CurrentN]*2))"][!UpdateMeasure CurrentN][!SetOption "Frame[CurrentN]" ImageName gameframe-highlight.png][!UpdateMeasure KeyScrollControlL][!CommandMeasure MeasureMover "Execute 7"][!CommandMeasure LeftKeyboard Start][!EnableMeasureGroup GamepadLeft][!UpdateMeasure "MeasureCurrentBtn"][!UpdateMeasure "LeftKeyboard"][!UpdateMeasure "RightKeyboard"][!Redraw]
IfCondition2=(#CURRENTSECTION# = 8) && (#TOPMENU# = 0)
IfTrueAction2=[!Update]
IfCondition3=((#CURRENTSECTION# <> 2) || (#CURRENTSECTION# <> 4) || (#CURRENTSECTION# <> 8)) && (#TOPMENU# = 0)
IfTrueAction3=#soundhover#[!SetVariable CurrentBtn "(Clamp((#CurrentBtn#+1),1,#NumberOfItems#))"][!SetOption "Frame[CurrentN]" ImageName gameframe.png][!SetOption CurrentN Formula "([CurrentN]+1)"][!UpdateMeasure CurrentN][!SetOption "Frame[CurrentN]" ImageName gameframe-highlight.png][!UpdateMeasure KeyScrollControlL][!CommandMeasure MeasureMover "Execute 7"][!CommandMeasure LeftKeyboard Start][!EnableMeasureGroup GamepadLeft][!UpdateMeasure "MeasureCurrentBtn"][!UpdateMeasure "LeftKeyboard"][!UpdateMeasure "RightKeyboard"][!Redraw]
IfCondition4=(#TOPMENU# = 1)
IfTrueAction4=#soundhover#
;fazer big slide pra direita
; keycontrol RIGHT
; se currentN = 2 ou 4 & variavel #TOPMENU# = 0
; -> deixar anotação pra fazer big slide pra direita
; -> SetVariable CurrentBtn "(Clamp((1+(#CurrentBtn#*2)),1,#NumberOfItems#))
; se currentN = 8 & variavel #TOPMENU# = 0
; -> sem ação

[UIControlUP]
Measure=Calc
DynamicVariables=1
Disabled=1
UpdateDivider=-1
Group=UIControl
Formula=CurrentN
IfCondition=((#CURRENTSECTION# = 1) || (#CURRENTSECTION# = 5)) && (#TOPMENU# = 0)
IfTrueAction=#soundhover#
;topmenu not yet implemented
;[!SetVariable TOPMENU 1][!SetOption "Frame1" ImageName gameframe.png][!SetOption "Frame2" ImageName gameframe.png][!SetOption "Frame3" ImageName gameframe.png][!SetOption "Frame4" ImageName gameframe.png][!SetOption "Frame5" ImageName gameframe.png][!SetOption "Frame6" ImageName gameframe.png][!SetOption "Frame7" ImageName gameframe.png][!SetOption "Frame8" ImageName gameframe.png][!SetOption "Frame9" ImageName gameframe.png][!SetOption "Frame10" ImageName gameframe.png][!SetOption "Frame11" ImageName gameframe.png][!SetOption "Frame12" ImageName gameframe.png][!SetOption "Frame13" ImageName gameframe.png][!Redraw]
IfCondition2=((#CURRENTSECTION# = 3) || (#CURRENTSECTION# = 4)) && (#TOPMENU# = 0)
IfTrueAction2=#soundhover#[!SetVariable CurrentBtn "(Clamp((#CurrentBtn#-2),1,#NumberOfItems#))"][!SetOption "Frame[CurrentN]" ImageName gameframe.png][!SetOption CurrentN Formula "([CurrentN]-2)"][!UpdateMeasure CurrentN][!SetOption "Frame[CurrentN]" ImageName gameframe-highlight.png][!UpdateMeasure KeyScrollControlR][!CommandMeasure MeasureMover "Execute 8"][!CommandMeasure RightKeyboard Start][!EnableMeasureGroup GamepadRight][!UpdateMeasure "MeasureCurrentBtn"][!UpdateMeasure "LeftKeyboard"][!UpdateMeasure "RightKeyboard"][!Redraw]
IfCondition3=((#CURRENTSECTION# = 9) || (#CURRENTSECTION# = 10) || (#CURRENTSECTION# = 11) || (#CURRENTSECTION# = 12)) && (#TOPMENU# = 0)
IfTrueAction3=#soundhover#[!SetVariable CurrentBtn "(Clamp((#CurrentBtn#-4),1,#NumberOfItems#))"][!SetOption "Frame[CurrentN]" ImageName gameframe.png][!SetOption CurrentN Formula "([CurrentN]-4)"][!UpdateMeasure CurrentN][!SetOption "Frame[CurrentN]" ImageName gameframe-highlight.png][!UpdateMeasure KeyScrollControlR][!CommandMeasure MeasureMover "Execute 8"][!CommandMeasure RightKeyboard Start][!EnableMeasureGroup GamepadRight][!UpdateMeasure "MeasureCurrentBtn"][!UpdateMeasure "LeftKeyboard"][!UpdateMeasure "RightKeyboard"][!Redraw]
; keycontrol UP
; se variavel #TOPMENU# = 0 & CurrentN = 1 ou 2 ou 5, 6, 7, 8
; -> setvariable TOPMENU 1 [hideallbtn]
; se variavel #TOPMENU# = 0 & CurrentN = 3 ou 4
; -> SetVariable CurrentBtn "(Clamp((#CurrentBtn#-2),1,#NumberOfItems#))
; se variavel #TOPMENU# = 0 & CurrentN = 9, 10, 11, 12
; -> SetVariable CurrentBtn "(Clamp((#CurrentBtn#-4),1,#NumberOfItems#))

[UIControlDOWN]
Measure=Calc
DynamicVariables=1
Disabled=1
UpdateDivider=-1
Group=UIControl
Formula=CurrentN
IfCondition=(#TOPMENU# = 1)
IfTrueAction=#soundhover#[!SetVariable TOPMENU 0][!SetOption "Frame[CurrentN]" ImageName gameframe.png]
IfCondition2=((#CURRENTSECTION# = 1) || (#CURRENTSECTION# = 2)) && (#TOPMENU# = 0)
IfTrueAction2=#soundhover#[!SetVariable CurrentBtn "(Clamp((#CurrentBtn#+2),1,#NumberOfItems#))"][!SetOption "Frame[CurrentN]" ImageName gameframe.png][!SetOption CurrentN Formula "([CurrentN]+2)"][!UpdateMeasure CurrentN][!SetOption "Frame[CurrentN]" ImageName gameframe-highlight.png][!UpdateMeasure KeyScrollControlL][!CommandMeasure MeasureMover "Execute 7"][!CommandMeasure LeftKeyboard Start][!EnableMeasureGroup GamepadLeft][!UpdateMeasure "MeasureCurrentBtn"][!UpdateMeasure "LeftKeyboard"][!UpdateMeasure "RightKeyboard"][!Redraw]
IfCondition2=((#CURRENTSECTION# = 5) || (#CURRENTSECTION# = 6) || (#CURRENTSECTION# = 7) || (#CURRENTSECTION# = 8)) && (#TOPMENU# = 0)
IfTrueAction2=#soundhover#[!SetVariable CurrentBtn "(Clamp((#CurrentBtn#+4),1,#NumberOfItems#))"][!SetOption "Frame[CurrentN]" ImageName gameframe.png][!SetOption CurrentN Formula "([CurrentN]+4)"][!UpdateMeasure CurrentN][!SetOption "Frame[CurrentN]" ImageName gameframe-highlight.png][!UpdateMeasure KeyScrollControlL][!CommandMeasure MeasureMover "Execute 7"][!CommandMeasure LeftKeyboard Start][!EnableMeasureGroup GamepadLeft][!UpdateMeasure "MeasureCurrentBtn"][!UpdateMeasure "LeftKeyboard"][!UpdateMeasure "RightKeyboard"][!Redraw]

; keycontrol down
; se variavel #TOPMENU# = 1
; -> setvariable TOPMENU 0
; se variavel #TOPMENU# = 0 & CurrentN = 1 ou 2
; -> SetVariable CurrentBtn "(Clamp((#CurrentBtn#+2),1,#NumberOfItems#))
; se variavel #TOPMENU# = 0 & CurrentN = 5, 6, 7, 8
; -> SetVariable CurrentBtn "(Clamp((#CurrentBtn#+4),1,#NumberOfItems#))

[LeftKeyboard]
Measure=Plugin
Plugin=HotKey
HotKey=LEFT
;KeyDownAction=[!EnableMeasure LeftCheck][!UpdateMeasure LeftCheck]
KeyDownAction=[!EnableMeasure UIControlUP][!EnableMeasure UIControlDOWN][!EnableMeasure UIControlLEFT][!EnableMeasure UIControlRIGHT][!UpdateMeasure UIControlLEFT]
DynamicVariables=1
Group=Keyboard
UpdateDivider=#UPDATECYCLE#

[RightKeyboard]
Measure=Plugin
Plugin=HotKey
HotKey=RIGHT
;KeyDownAction=[!EnableMeasure RightCheck][!UpdateMeasure RightCheck]
KeyDownAction=[!EnableMeasure UIControlUP][!EnableMeasure UIControlDOWN][!EnableMeasure UIControlLEFT][!EnableMeasure UIControlRIGHT][!UpdateMeasure UIControlRIGHT]
DynamicVariables=1
Group=Keyboard
UpdateDivider=#UPDATECYCLE#

[UpKeyboard]
Measure=Plugin
Plugin=HotKey
HotKey=UP
;KeyDownAction=[!EnableMeasure LeftCheck][!UpdateMeasure LeftCheck]
KeyDownAction=[!EnableMeasure UIControlUP][!EnableMeasure UIControlDOWN][!EnableMeasure UIControlLEFT][!EnableMeasure UIControlRIGHT][!UpdateMeasure UIControlUP]
DynamicVariables=1
Group=Keyboard
UpdateDivider=#UPDATECYCLE#

[DownKeyboard]
Measure=Plugin
Plugin=HotKey
HotKey=DOWN
;KeyDownAction=[!EnableMeasure LeftCheck][!UpdateMeasure LeftCheck]
KeyDownAction=[!EnableMeasure UIControlUP][!EnableMeasure UIControlDOWN][!EnableMeasure UIControlLEFT][!EnableMeasure UIControlRIGHT][!UpdateMeasure UIControlDOWN]
DynamicVariables=1
Group=Keyboard
UpdateDivider=#UPDATECYCLE#

[Enter]
Measure=Plugin
Plugin=HotKey
HotKey=Enter
KeyUpAction=#soundclick#[!CommandMeasure "mIndex[CurrentN]" "Open"][!UpdateMeasure FVMeasure][!UpdateMeterGroup Items][!Redraw][!DeactivateConfig]
DynamicVariables=1
Group=Keyboard
UpdateDivider=#UPDATECYCLE#

@include5=#Gamepadkeys#.inc

;----------------------------------------------------------
; Frames
;----------------------------------------------------------


[Frame1]
Meter=Image
ImageName=gameframe.png
Y=0
X=((#ScreenAreaWidth#/2)-([Frame1:W]*1.76))
H=#HeightBig#
W=#WidthBig#
DynamicVariables=1
Container=Container
MouseOverAction=[!SetVariable TOPMENU 0][!SetOption #CURRENTSECTION# ImageName "gameframe-highlight.png"][!UpdateMeter #CURRENTSECTION#]#soundhover#[!SetOption CurrentN Formula "1"][!SetVariable CurrentBtn "1"][!HideMeterGroup Dropdown][!UpdateMeasure "MeasureCurrentBtn"][!UpdateMeasure "LeftKeyboard"][!UpdateMeasure "RightKeyboard"][!UpdateMeter *][!UpdateMeasure CurrentN][!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# ImageName "gameframe.png"][!UpdateMeter #CURRENTSECTION#][!Redraw]
LeftMouseUpAction=#soundclick#[!CommandMeasure mIndex1 "Open"][!UpdateMeasure FVMeasure][!UpdateMeterGroup Items][!Redraw][!DeactivateConfig]
RightMouseUpAction=[!SetOption Dropdown1 X ($MouseX$+[ContainerX:X]+11)][!SetOption Dropdown1 Y ($MouseY$+[ContainerX:Y])][!SetOption Dropdown1C X ($MouseX$+[ContainerX:X]+12)][!SetOption Dropdown1C Y ($MouseY$+[ContainerX:Y])][!ShowMeterGroup Dropdown1][!Update *]
Group:Frames

[Frame2]
Meter=Image
ImageName=gameframe.png
Y=0
X=((#ScreenAreaWidth#/2)+([Frame1:W]*0.76))
H=#HeightBig#
W=#WidthBig#
DynamicVariables=1
;Hidden=(#NumberOfItems# >= 2 ? 0 : 1)
MouseOverAction=[!SetVariable TOPMENU 0][!SetOption #CURRENTSECTION# ImageName "gameframe-highlight.png"][!UpdateMeter #CURRENTSECTION#]#soundhover#[!SetOption CurrentN Formula "2"][!SetVariable CurrentBtn "2"][!HideMeterGroup Dropdown][!UpdateMeasure "MeasureCurrentBtn"][!UpdateMeasure "LeftKeyboard"][!UpdateMeasure "RightKeyboard"][!UpdateMeter *][!UpdateMeasure CurrentN][!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# ImageName "gameframe.png"][!UpdateMeter #CURRENTSECTION#][!SetOption Index2Info FontEffectColor "0,0,0,255"][!UpdateMeter Index2Info][!Redraw]
LeftMouseUpAction=#soundclick#[!CommandMeasure mIndex2 "Open"][!UpdateMeasure FVMeasure][!UpdateMeterGroup Items][!Redraw][!DeactivateConfig]
RightMouseUpAction=[!SetOption Dropdown2 X ($MouseX$+[Index2Icon:X])][!SetOption Dropdown2 Y ($MouseY$+[ContainerX:Y])][!SetOption Dropdown2C X ($MouseX$+[Index2Icon:X]+1)][!SetOption Dropdown2C Y ($MouseY$+[ContainerX:Y])][!HideMeterGroup Dropdown][!Redraw][!ToggleMeterGroup Dropdown2]
Container=Container
Group:Frames

[Frame3]
Meter=Image
ImageName=gameframe.png
Y=20R
X=([Frame1:X])
H=#HeightBig#
W=#WidthBig#
DynamicVariables=1
;Hidden=(#NumberOfItems# >= 3 ? 0 : 1)
MouseOverAction=[!SetVariable TOPMENU 0][!SetOption #CURRENTSECTION# ImageName "gameframe-highlight.png"][!UpdateMeter #CURRENTSECTION#]#soundhover#[!SetOption CurrentN Formula "3"][!SetVariable CurrentBtn "3"][!UpdateMeasure "MeasureCurrentBtn"][!UpdateMeasure "LeftKeyboard"][!UpdateMeasure "RightKeyboard"][!HideMeterGroup Dropdown][!UpdateMeter *][!UpdateMeasure CurrentN][!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# ImageName "gameframe.png"][!UpdateMeter #CURRENTSECTION#][!SetOption Index3Info FontEffectColor "0,0,0,255"][!UpdateMeter Index3Info][!Redraw]
LeftMouseUpAction=#soundclick#[!CommandMeasure mIndex3 "Open"][!UpdateMeasure FVMeasure][!UpdateMeterGroup Items][!Redraw][!DeactivateConfig]
RightMouseUpAction=[!SetOption Dropdown3 X ($MouseX$+[Index3Icon:X])][!SetOption Dropdown3 Y ($MouseY$+[ContainerX:Y])][!SetOption Dropdown3C X ($MouseX$+[Index3Icon:X]+1)][!SetOption Dropdown3C Y ($MouseY$+[ContainerX:Y])][!HideMeterGroup Dropdown][!Redraw][!ToggleMeterGroup Dropdown3]
Container=Container
Group:Frames

[Frame4]
Meter=Image
ImageName=gameframe.png
Y=r
X=([Frame2:X])
H=#HeightBig#
W=#WidthBig#
DynamicVariables=1
;Hidden=(#NumberOfItems# >= 4 ? 0 : 1)
MouseOverAction=[!SetVariable TOPMENU 0][!SetOption #CURRENTSECTION# ImageName "gameframe-highlight.png"][!UpdateMeter #CURRENTSECTION#]#soundhover#[!SetOption CurrentN Formula "4"][!SetVariable CurrentBtn "4"][!HideMeterGroup Dropdown][!UpdateMeasure "MeasureCurrentBtn"][!UpdateMeasure "LeftKeyboard"][!UpdateMeasure "RightKeyboard"][!UpdateMeter *][!UpdateMeasure CurrentN][!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# ImageName "gameframe.png"][!UpdateMeter #CURRENTSECTION#][!Redraw]
LeftMouseUpAction=#soundclick#[!CommandMeasure mIndex4 "Open"][!UpdateMeasure FVMeasure][!UpdateMeterGroup Items][!Redraw][!DeactivateConfig]
RightMouseUpAction=[!SetOption Dropdown4 X ($MouseX$+[Index4Icon:X])][!SetOption Dropdown4 Y ($MouseY$+[ContainerX:Y])][!SetOption Dropdown4C X ($MouseX$+[Index4Icon:X]+1)][!SetOption Dropdown4C Y ($MouseY$+[ContainerX:Y])][!HideMeterGroup Dropdown][!Redraw][!ToggleMeterGroup Dropdown4]
Container=Container
Group:Frames

[Frame5]
Meter=Image
ImageName=gameframe.png
Y=0
X=(#ScreenAreaWidth#+((#ScreenAreaWidth#-(4*[Frame5:W]))*(2/3)/2))
H=#HeightBig#
W=#WidthBig#
DynamicVariables=1
MouseOverAction=[!SetVariable TOPMENU 0][!SetOption #CURRENTSECTION# ImageName "gameframe-highlight.png"][!UpdateMeter #CURRENTSECTION#]#soundhover#[!SetOption CurrentN Formula "5"][!SetVariable CurrentBtn "5"][!HideMeterGroup Dropdown][!UpdateMeasure "MeasureCurrentBtn"][!UpdateMeasure "LeftKeyboard"][!UpdateMeasure "RightKeyboard"][!UpdateMeter *][!UpdateMeasure CurrentN][!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# ImageName "gameframe.png"][!UpdateMeter #CURRENTSECTION#][!Redraw]
LeftMouseUpAction=#soundclick#[!CommandMeasure mIndex5 "Open"][!UpdateMeasure FVMeasure][!UpdateMeterGroup Items][!Redraw][!DeactivateConfig]
RightMouseUpAction=[!SetOption Dropdown5 X ($MouseX$+[Index5Icon:X])][!SetOption Dropdown5 Y ($MouseY$+[ContainerX:Y])][!SetOption Dropdown5C X ($MouseX$+[Index5Icon:X]+1)][!SetOption Dropdown5C Y ($MouseY$+[ContainerX:Y])][!HideMeterGroup Dropdown][!Redraw][!ToggleMeterGroup Dropdown5]
Container=Container
Group:Frames

[Frame6]
Meter=Image
ImageName=gameframe.png
Y=r
X=([Frame5:X]+[Frame5:W]+((#ScreenAreaWidth#-(4*[Frame5:W]))*(1/3)/3))
H=#HeightBig#
W=#WidthBig#
DynamicVariables=1
;Hidden=(#NumberOfItems# >= 6 ? 0 : 1)
MouseOverAction=[!SetVariable TOPMENU 0][!SetOption #CURRENTSECTION# ImageName "gameframe-highlight.png"][!UpdateMeter #CURRENTSECTION#]#soundhover#[!SetOption CurrentN Formula "6"][!SetVariable CurrentBtn "6"][!HideMeterGroup Dropdown][!UpdateMeasure "MeasureCurrentBtn"][!UpdateMeasure "LeftKeyboard"][!UpdateMeasure "RightKeyboard"][!UpdateMeter *][!UpdateMeasure CurrentN][!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# ImageName "gameframe.png"][!UpdateMeter #CURRENTSECTION#][!Redraw]
LeftMouseUpAction=#soundclick#[!CommandMeasure mIndex6 "Open"][!UpdateMeasure FVMeasure][!UpdateMeterGroup Items][!Redraw][!DeactivateConfig]
RightMouseUpAction=[!SetOption Dropdown6 X ($MouseX$+[Index6Icon:X])][!SetOption Dropdown6 Y ($MouseY$+[ContainerX:Y])][!SetOption Dropdown6C X ($MouseX$+[Index6Icon:X]+1)][!SetOption Dropdown6C Y ($MouseY$+[ContainerX:Y])][!HideMeterGroup Dropdown][!Redraw][!ToggleMeterGroup Dropdown6]
Container=Container
Group:Frames

[Frame7]
Meter=Image
ImageName=gameframe.png
Y=r
X=([Frame6:X]+[Frame6:W]+((#ScreenAreaWidth#-(4*[Frame5:W]))*(1/3)/3))
H=#HeightBig#
W=#WidthBig#
DynamicVariables=1
Container=Container
Group:Frames

[Frame8]
Meter=Image
ImageName=gameframe.png
Y=r
X=([Frame7:X]+[Frame7:W]+((#ScreenAreaWidth#-(4*[Frame5:W]))*(1/3)/3))
H=#HeightBig#
W=#WidthBig#
DynamicVariables=1
Container=Container
Group:Frames

[Frame9]
Meter=Image
ImageName=gameframe.png
Y=20R
X=(#ScreenAreaWidth#+((#ScreenAreaWidth#-(4*[Frame9:W]))*(2/3)/2))
H=#HeightBig#
W=#WidthBig#
DynamicVariables=1
Container=Container
Group:Frames

[Frame10]
Meter=Image
ImageName=gameframe.png
Y=r
X=([Frame9:X]+[Frame9:W]+((#ScreenAreaWidth#-(4*[Frame9:W]))*(1/3)/3))
H=#HeightBig#
W=#WidthBig#
DynamicVariables=1
Container=Container
Group:Frames

[Frame11]
Meter=Image
ImageName=gameframe.png
Y=r
X=([Frame10:X]+[Frame10:W]+((#ScreenAreaWidth#-(4*[Frame10:W]))*(1/3)/3))
H=#HeightBig#
W=#WidthBig#
DynamicVariables=1
Container=Container
Group:Frames

[Frame12]
Meter=Image
ImageName=gameframe.png
Y=r
X=([Frame11:X]+[Frame11:W]+((#ScreenAreaWidth#-(4*[Frame11:W]))*(1/3)/3))
H=#HeightBig#
W=#WidthBig#
DynamicVariables=1
Container=Container
Group:Frames

;---------------------------------------------------------------
; Games and titles
;---------------------------------------------------------------

[ShapeMask1]
Meter=Shape
DynamicVariables=1
;Shape=Rectangle 0,0,374,334.26 | Fill Color 0,255,0
Shape=Rectangle 49,19.37,330.24,294.36 | Fill Color 0,255,200
AntiAlias=1
X=([Frame1:X])
Y=([Frame1:Y])

[Game1]
Meter=Image
ImageName=#CURRENTPATH#DownloadFile\[mIndex1].jpg
X=2
;Y=([Frame2:Y]+5.42)
W=376.5039
;Hidden=(#NumberOfItems# >= 1 ? 0 : 1)
Container=ShapeMask1
PreserveAspectRatio=1
DynamicVariables=1

[GameTitle1]
Meter=String
FontFace=Optimus
FontColor=255,255,255
FontSize=#GameFontSize#
AntiAlias=1
MeasureName=mIndex1
DynamicVariables=1
StringAlign=Center
X=(([Frame1:X])+([Frame1:W]/2))
Y=((#HeightBig#)-(#GameFontSize#*3.6))
Container=Container

[ShapeMask2]
Meter=Shape
DynamicVariables=1
;Shape=Rectangle 0,0,374,334.26 | Fill Color 0,255,0
Shape=Rectangle 49,19.37,330.24,294.36 | Fill Color 0,255,0
AntiAlias=1
X=([Frame2:X])
Y=([Frame2:Y])

[Game2]
Meter=Image
ImageName=#CURRENTPATH#DownloadFile\[mIndex2].jpg
X=4
;Y=([Frame2:Y]+5.42)
W=376.5039
;H=381.579
;Hidden=1
Container=ShapeMask2
PreserveAspectRatio=1
DynamicVariables=1

[GameTitle2]
Meter=String
FontFace=Optimus
FontColor=255,255,255
FontSize=#GameFontSize#
AntiAlias=1
MeasureName=mIndex2
DynamicVariables=1
StringAlign=Center
X=(([Frame2:X])+([Frame2:W]/2))
Y=((#HeightBig#)-(#GameFontSize#*3.6))
Container=Container

[ShapeMask3]
Meter=Shape
DynamicVariables=1
;Shape=Rectangle 0,0,374,334.26 | Fill Color 0,255,0
Shape=Rectangle 49,19.37,330.24,294.36 | Fill Color 0,255,0
AntiAlias=1
X=([Frame3:X])
Y=([Frame3:Y])

[Game3]
Meter=Image
ImageName=#CURRENTPATH#DownloadFile\[mIndex3].jpg
X=4
;Y=([Frame2:Y]+5.42)
W=376.5039
;H=381.579
;Hidden=1
Container=ShapeMask3
PreserveAspectRatio=1
DynamicVariables=1

[GameTitle3]
Meter=String
FontFace=Optimus
FontColor=255,255,255
FontSize=#GameFontSize#
AntiAlias=1
MeasureName=mIndex3
DynamicVariables=1
StringAlign=Center
X=(([Frame3:X])+([Frame3:W]/2))
Y=(20+(#HeightBig#*2)-(#GameFontSize#*3.6))
Container=Container

[ShapeMask4]
Meter=Shape
DynamicVariables=1
;Shape=Rectangle 0,0,374,334.26 | Fill Color 0,255,0
Shape=Rectangle 49,19.37,330.24,294.36 | Fill Color 0,255,0
AntiAlias=1
X=([Frame4:X])
Y=([Frame4:Y])

[Game4]
Meter=Image
ImageName=#CURRENTPATH#DownloadFile\[mIndex4].jpg
X=4
;Y=([Frame2:Y]+5.42)
W=376.5039
;H=381.579
;Hidden=1
Container=ShapeMask4
PreserveAspectRatio=1
DynamicVariables=1

[GameTitle4]
Meter=String
FontFace=Optimus
FontColor=255,255,255
FontSize=#GameFontSize#
AntiAlias=1
MeasureName=mIndex4
DynamicVariables=1
StringAlign=Center
X=(([Frame4:X])+([Frame4:W]/2))
Y=(20+(#HeightBig#*2)-(#GameFontSize#*3.6))
Container=Container

[ShapeMask5]
Meter=Shape
DynamicVariables=1
;Shape=Rectangle 0,0,374,334.26 | Fill Color 0,255,0
Shape=Rectangle 49,19.37,330.24,294.36 | Fill Color 0,255,0
AntiAlias=1
X=([Frame5:X])
Y=([Frame5:Y])

[Game5]
Meter=Image
ImageName=#CURRENTPATH#DownloadFile\[mIndex5].jpg
X=4
W=376.5039
;H=381.579
;Hidden=1
Container=ShapeMask5
PreserveAspectRatio=1
DynamicVariables=1

[GameTitle5]
Meter=String
FontFace=Optimus
FontColor=255,255,255
FontSize=#GameFontSize#
AntiAlias=1
MeasureName=mIndex5
DynamicVariables=1
StringAlign=Center
X=(([Frame5:X])+([Frame5:W]/2))
Y=(#HeightBig#-(#GameFontSize#*3.6))
Container=Container

[ShapeMask6]
Meter=Shape
DynamicVariables=1
;Shape=Rectangle 0,0,374,334.26 | Fill Color 0,255,0
Shape=Rectangle 49,19.37,330.24,294.36 | Fill Color 0,255,0
AntiAlias=1
X=([Frame6:X])
Y=([Frame6:Y])

[Game6]
Meter=Image
ImageName=#CURRENTPATH#DownloadFile\[mIndex6].jpg
X=4
;Y=([Frame2:Y]+5.42)
W=376.5039
;H=381.579
;Hidden=1
Container=ShapeMask6
PreserveAspectRatio=1
DynamicVariables=1

[GameTitle6]
Meter=String
FontFace=Optimus
FontColor=255,255,255
FontSize=#GameFontSize#
AntiAlias=1
MeasureName=mIndex6
DynamicVariables=1
StringAlign=Center
X=(([Frame6:X])+([Frame6:W]/2))
Y=(#HeightBig#-(#GameFontSize#*3.6))
Container=Container

[ShapeMask7]
Meter=Shape
DynamicVariables=1
;Shape=Rectangle 0,0,374,334.26 | Fill Color 0,255,0
Shape=Rectangle 49,19.37,330.24,294.36 | Fill Color 0,255,0
AntiAlias=1
X=([Frame7:X])
Y=([Frame7:Y])

[Game7]
Meter=Image
ImageName=#CURRENTPATH#DownloadFile\[mIndex7].jpg
X=4
;Y=([Frame2:Y]+5.42)
W=376.5039
;H=381.579
;Hidden=1
Container=ShapeMask7
PreserveAspectRatio=1
DynamicVariables=1

[GameTitle7]
Meter=String
FontFace=Optimus
FontColor=255,255,255
FontSize=#GameFontSize#
AntiAlias=1
MeasureName=mIndex7
DynamicVariables=1
StringAlign=Center
X=(([Frame7:X])+([Frame7:W]/2))
Y=(#HeightBig#-(#GameFontSize#*3.6))
Container=Container

[ShapeMask8]
Meter=Shape
DynamicVariables=1
;Shape=Rectangle 0,0,374,334.26 | Fill Color 0,255,0
Shape=Rectangle 49,19.37,330.24,294.36 | Fill Color 0,255,0
AntiAlias=1
X=([Frame8:X])
Y=([Frame8:Y])

[Game8]
Meter=Image
ImageName=#CURRENTPATH#DownloadFile\[mIndex8].jpg
X=4
;Y=([Frame2:Y]+5.42)
W=376.5039
;H=381.579
;Hidden=1
Container=ShapeMask8
PreserveAspectRatio=1
DynamicVariables=1

[GameTitle8]
Meter=String
FontFace=Optimus
FontColor=255,255,255
FontSize=#GameFontSize#
AntiAlias=1
MeasureName=mIndex8
DynamicVariables=1
StringAlign=Center
X=(([Frame8:X])+([Frame8:W]/2))
Y=(#HeightBig#-(#GameFontSize#*3.6))
Container=Container

[ShapeMask9]
Meter=Shape
DynamicVariables=1
;Shape=Rectangle 0,0,374,334.26 | Fill Color 0,255,0
Shape=Rectangle 49,19.37,330.24,294.36 | Fill Color 0,255,0
AntiAlias=1
X=([Frame9:X])
Y=([Frame9:Y])

[Game9]
Meter=Image
ImageName=#CURRENTPATH#DownloadFile\[mIndex9].jpg
X=4
;Y=([Frame2:Y]+5.42)
W=376.5039
;H=381.579
;Hidden=1
Container=ShapeMask9
PreserveAspectRatio=1
DynamicVariables=1

[GameTitle9]
Meter=String
FontFace=Optimus
FontColor=255,255,255
FontSize=#GameFontSize#
AntiAlias=1
MeasureName=mIndex9
DynamicVariables=1
StringAlign=Center
X=(([Frame9:X])+([Frame9:W]/2))
Y=(20+(#HeightBig#*2)-(#GameFontSize#*3.6))
Container=Container

[ShapeMask10]
Meter=Shape
DynamicVariables=1
;Shape=Rectangle 0,0,374,334.26 | Fill Color 0,255,0
Shape=Rectangle 49,19.37,330.24,294.36 | Fill Color 0,255,0
AntiAlias=1
X=([Frame10:X])
Y=([Frame10:Y])

[Game10]
Meter=Image
ImageName=#CURRENTPATH#DownloadFile\[mIndex10].jpg
X=4
;Y=([Frame2:Y]+5.42)
W=376.5039
;H=381.579
;Hidden=1
Container=ShapeMask10
PreserveAspectRatio=1
DynamicVariables=1

[GameTitle10]
Meter=String
FontFace=Optimus
FontColor=255,255,255
FontSize=#GameFontSize#
AntiAlias=1
MeasureName=mIndex10
DynamicVariables=1
StringAlign=Center
X=(([Frame10:X])+([Frame10:W]/2))
Y=(20+(#HeightBig#*2)-(#GameFontSize#*3.6))
Container=Container

[ShapeMask11]
Meter=Shape
DynamicVariables=1
;Shape=Rectangle 0,0,374,334.26 | Fill Color 0,255,0
Shape=Rectangle 49,19.37,330.24,294.36 | Fill Color 0,255,0
AntiAlias=1
X=([Frame11:X])
Y=([Frame11:Y])

[Game11]
Meter=Image
ImageName=#CURRENTPATH#DownloadFile\[mIndex11].jpg
X=4
;Y=([Frame2:Y]+5.42)
W=376.5039
;H=381.579
;Hidden=1
Container=ShapeMask11
PreserveAspectRatio=1
DynamicVariables=1

[GameTitle11]
Meter=String
FontFace=Optimus
FontColor=255,255,255
FontSize=#GameFontSize#
AntiAlias=1
MeasureName=mIndex11
DynamicVariables=1
StringAlign=Center
X=(([Frame11:X])+([Frame11:W]/2))
Y=(20+(#HeightBig#*2)-(#GameFontSize#*3.6))
Container=Container

[ShapeMask12]
Meter=Shape
DynamicVariables=1
;Shape=Rectangle 0,0,374,334.26 | Fill Color 0,255,0
Shape=Rectangle 49,19.37,330.24,294.36 | Fill Color 0,255,0
AntiAlias=1
X=([Frame12:X])
Y=([Frame12:Y])

[Game12]
Meter=Image
ImageName=#CURRENTPATH#DownloadFile\[mIndex12].jpg
X=4
;Y=([Frame2:Y]+5.42)
W=376.5039
;H=381.579
;Hidden=1
Container=ShapeMask12
PreserveAspectRatio=1
DynamicVariables=1

[GameTitle12]
Meter=String
FontFace=Optimus
FontColor=255,255,255
FontSize=#GameFontSize#
AntiAlias=1
MeasureName=mIndex12
DynamicVariables=1
StringAlign=Center
X=(([Frame12:X])+([Frame12:W]/2))
Y=(20+(#HeightBig#*2)-(#GameFontSize#*3.6))
Container=Container


;----------------------------------------------------
; FileView Plugin
;----------------------------------------------------

@include6=FileView.ini
I press:

Down, Up

Result: Down doesn't work anymore

I press:

Right, Left

Result: Right doesn't work anymore

... and many other similar issues. In a nutshell, after a few keystrokes, key inputs in general stop responding.

The conditions under the [UIControl measures don't seem to be really obeyed after a few keystrokes

If you check AsperiaSuite\Gamehall\GameScreen1\GameScreen1-Tiles.ini, you'll see that the hotkeys are working properly there, but that skin only has horizontal navigation, whereas I'm trying to configure horizontal and vertical navigation for GameScreen2


Package and Skin:

https://www.dropbox.com/s/wynl7a7wohzzq9l/AsperiaSuite%20-%20Full%201.13.rmskin?dl=0
https://www.dropbox.com/s/ldv43wlf2zfhl9v/AsperiaWIP.zip?dl=0

Installation:

This is going to be a bit complicated, mainly because there are several folder-specific variables and this skin isn't finished

Meaning I haven't had the time yet to make it a clean install version

So you'll have to fake a clean install yourself in order to properly test it

I'm sorry in advance, but this is the only way I can share the full package

Step 1. Install this old package (it was the last time I was able to design a clean install):

Step 2. Run the skin. It will load the first-time welcome skin. Don't unload it, just close Rainmeter.

Step 3. Extract the zip file to Rainmeter\Skins\AsperiaSuite\

If you're doing it right, it will ask if you want to replace files. click yes.

Step 4. Open Rainmeter and configure the skin by loading the settings skin. You might have to choose a folder in the settings skin. A folder with some files (preferably shortcuts) in it, so the FileView plugin can work

Why can't I just create a .rmskin package to make it all easier?

Because it takes even more work for me to do that, as I have to remove several images from the DownloadFile\ folders to make the file be smaller than 6mb (if I don't remove the images it goes all the way up above 100mb)

If I open the rmskin file with winrar and manually delete the images, the file becomes "corrupted" and rainmeter decides to not install the rmskin anymore

Not to mention, the last time I designed a clean install was a few years ago and I honestly don't remember all the steps. My brain is more oriented on visual and interface design, and coding and software installation are stuff that I have a hard time with
User avatar
Krainz
Posts: 186
Joined: May 27th, 2012, 5:16 am

Re: Hotkeys not working after a few strokes and sometimes not obeying conditions

Post by Krainz »

One very weird thing I noticed is:

I wrote a new right key measure to test stuff

Code: Select all

[TestRight]
Measure=Plugin
Plugin=HotKey
HotKey=RIGHT
KeyDownAction=[!SetOption CurrentN Formula "([CurrentN] + 1)"][!UpdateMeasure CurrentN][!SetVariable CurrentBtn "(#CurrentBtn#+1)"][!UpdateMeter *][!Redraw]
DynamicVariables=1
And it just barely works.

It stops at CurrentN=4 and CurrentBtn=2

I'm having a hard time figuring out what makes CurrentN stop at 4 and CurrentBtn stop at 2

EDIT: that was related to the number of items I had in the folder. Duh, I wrote that condition myself :?


EDIT 2: ok this other issue I found is very weird as well:

With the following code, CurrentBtn gets stuck at 2 and doesn't go past that:

Code: Select all

[TestRight]
Measure=Plugin
Plugin=HotKey
HotKey=RIGHT
KeyDownAction=[!SetOption CurrentN Formula "([CurrentN] + 1)"][!UpdateMeasure CurrentN][!SetVariable CurrentBtn "(#CurrentBtn#+1)"][!UpdateMeter *][!Redraw]
DynamicVariables=1
Group=Keyboard

[TestLeft]
Measure=Plugin
Plugin=HotKey
HotKey=LEFT
KeyDownAction=[!SetOption CurrentN Formula "([CurrentN] - 1)"][!UpdateMeasure CurrentN][!SetVariable CurrentBtn "(#CurrentBtn#-1)"][!UpdateMeter *][!Redraw]
DynamicVariables=1
Group=Keyboard

But if I do this then CurrentBtn properly follows suit to CurrentN

[!SetVariable CurrentBtn "[CurrentN]"]

Code: Select all

[TestRight]
Measure=Plugin
Plugin=HotKey
HotKey=RIGHT
KeyDownAction=[!SetOption CurrentN Formula "([CurrentN] + 1)"][!UpdateMeasure CurrentN][!SetVariable CurrentBtn "[CurrentN]"][!UpdateMeter *][!Redraw]
DynamicVariables=1
Group=Keyboard

[TestLeft]
Measure=Plugin
Plugin=HotKey
HotKey=LEFT
KeyDownAction=[!SetOption CurrentN Formula "([CurrentN] - 1)"][!UpdateMeasure CurrentN][!SetVariable CurrentBtn "[CurrentN]"][!UpdateMeter *][!Redraw]
DynamicVariables=1
Group=Keyboard
I have no idea why CurrentBtn stops at 2 through the first method
User avatar
Krainz
Posts: 186
Joined: May 27th, 2012, 5:16 am

Re: Hotkeys not working after a few strokes and sometimes not obeying conditions

Post by Krainz »

When I start using a measure to control specific interactions (for example, if CurrentN is 2 and RIGHT is pressed, then the formula is CurrentN+3 instead of CurrentN+1), apparently this is when keystrokes stop working after a few button presses:

Code: Select all

[UIControlRIGHT]
Measure=Calc
DynamicVariables=1
Disabled=1
UpdateDivider=-1
Group=UIControl
Formula=CurrentN
IfCondition=(CurrentN = 2)
IfTrueAction=[!SetOption CurrentN Formula "([CurrentN] + 3)"][!UpdateMeasure CurrentN][!SetVariable CurrentBtn "[CurrentN]"][!UpdateMeter *][!Redraw]
IfCondition2=(CurrentN <> 2)
IfTrueAction2=[!SetOption CurrentN Formula "([CurrentN] + 1)"][!UpdateMeasure CurrentN][!SetVariable CurrentBtn "[CurrentN]"][!UpdateMeter *][!Redraw]


[TestRight]
Measure=Plugin
Plugin=HotKey
HotKey=RIGHT
KeyDownAction=[!EnableMeasure UIControlRIGHT][!UpdateMeasure UIControlRIGHT][!Redraw]
DynamicVariables=1
Group=Keyboard

[TestLeft]
Measure=Plugin
Plugin=HotKey
HotKey=LEFT
KeyDownAction=[!SetOption CurrentN Formula "([CurrentN] - 1)"][!UpdateMeasure CurrentN][!SetVariable CurrentBtn "[CurrentN]"][!UpdateMeter *][!Redraw]
DynamicVariables=1
Group=Keyboard
I have no idea why this happens either. I'm able to press buttons indefinitely with TestRight and TestLeft, but as soon as UIControl comes into play, it stops working
User avatar
Krainz
Posts: 186
Joined: May 27th, 2012, 5:16 am

Re: Hotkeys not working after a few strokes and sometimes not obeying conditions

Post by Krainz »

I was able to design a poor workaround with math conditions ( x = y ? 1 : 2 )

Code: Select all

[TestRight]
Measure=Plugin
Plugin=HotKey
HotKey=RIGHT
KeyDownAction=#soundhover#[!SetOption "Frame[CurrentN]" ImageName gameframe.png][!SetOption CurrentN Formula "([CurrentN] + ([CurrentN] = 2 ? 3 : ([CurrentN] = 4 ? 5 : ([CurrentN] = 8 ? 0 : 1))))"][!UpdateMeasure CurrentN][!SetVariable CurrentBtn "[CurrentN]"][!SetOption "Frame[CurrentN]" ImageName gameframe-highlight.png][!UpdateMeasure MeasureCurrentBtn][!UpdateMeter *][!Redraw]
DynamicVariables=1
Group=Keyboard

[TestLeft]
Measure=Plugin
Plugin=HotKey
HotKey=LEFT
KeyDownAction=#soundhover#[!SetOption "Frame[CurrentN]" ImageName gameframe.png][!SetOption CurrentN Formula "([CurrentN] - ([CurrentN] = 5 ? 3 : ([CurrentN] = 9 ? 5 : ([CurrentN] = 3 ? 0 : 1))))"][!UpdateMeasure CurrentN][!SetVariable CurrentBtn "[CurrentN]"][!SetOption "Frame[CurrentN]" ImageName gameframe-highlight.png][!UpdateMeasure MeasureCurrentBtn][!UpdateMeter *][!Redraw]
DynamicVariables=1
Group=Keyboard

[TestDown]
Measure=Plugin
Plugin=HotKey
HotKey=DOWN
KeyDownAction=#soundhover#[!SetOption "Frame[CurrentN]" ImageName gameframe.png][!SetOption CurrentN Formula "([CurrentN] + (([CurrentN] = 1) || ([CurrentN] = 2) ? 2 : (([CurrentN] = 5) || ([CurrentN] = 6) || ([CurrentN] = 7) || ([CurrentN] = 8) ? 4 : 0)))"][!UpdateMeasure CurrentN][!SetVariable CurrentBtn "[CurrentN]"][!SetOption "Frame[CurrentN]" ImageName gameframe-highlight.png][!UpdateMeasure MeasureCurrentBtn][!UpdateMeter *][!Redraw]
DynamicVariables=1
Group=Keyboard

[TestUp]
Measure=Plugin
Plugin=HotKey
HotKey=UP
KeyDownAction=#soundhover#[!SetOption "Frame[CurrentN]" ImageName gameframe.png][!SetOption CurrentN Formula "([CurrentN] - (([CurrentN] = 1) || ([CurrentN] = 5) ? 0 : (([CurrentN] = 3) || ([CurrentN] = 4) ? 2 : 4)))"][!UpdateMeasure CurrentN][!SetVariable CurrentBtn "[CurrentN]"][!SetOption "Frame[CurrentN]" ImageName gameframe-highlight.png][!UpdateMeasure MeasureCurrentBtn][!UpdateMeter *][!Redraw]
DynamicVariables=1
Group=Keyboard
However it would still be ideal that the Measures worked and did this instead, because they are able to not fire #soundhover# when it shouldn't be

#soundhover# is a sound effect that happens when a Frame is selected by navigating the UI or mousehovering. It shouldn't be fired when you are at the rightmost Frame and press right, hence there being no navigation

Full code as it is right now:

Code: Select all


[Rainmeter]
OnRefreshAction=[!HideMeterGroup Scrollbar][!CommandMeasure ChangeImage "FileCopy()"][!WriteKeyValue Variables tempvar2 "#CURRENTPATH#DownloadFile\0.jpg" "#CURRENTPATH#fetch.inc"][!SetVariable TotalWidxth "([index1Icon:W]+5+[index2Icon:W]+5+[index3Icon:W]+5+[index4Icon:W]+5+[index5Icon:W]+5+[index6Icon:W]+5+[index7Icon:W]+5+[index8Icon:W]+5+[index9Icon:W]+5+[index10Icon:W]+5+[index11Icon:W]+5+[index12Icon:W]+5+[index13Icon:W]+5)"][!Redraw]
OnUpdateAction=[!UpdateMeasure MeasurePikaBlinkSmile]
MouseActionCursor=Arrow
AccurateText=1
Update=50
DefaultUpdateDivider=8640
mousescrollupAction=[!CommandMeasure MeasureMover "Execute 2"]
mousescrolldownAction=[!CommandMeasure MeasureMover "Execute 1"]
BackgroundMode=0
;RightKeyboard Hotkey "MBUTTON SCROLLLOCK"][!SetOption Enter Hotkey "MBUTTON SCROLLLOCK"]
;OnFocusAction=[!SetVariable FOCUS "1"][!UpdateMeasure "MeasureFocus"]
;OnUnfocusAction=[!SetVariable FOCUS "0"][!UpdateMeasure "MeasureFocus"][!HideMeterGroup Dropdown]
;MouseOverAction=[!SetVariable FOCUS "1"][!UpdateMeasure "MeasureFocus"]

[Metadata]
Name=Gamehall
Author=Krainz (Douglas Lins)
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0

[Variables]
@include=#@#Variables\Variables.inc
@Include1=#@#Variables\GeneralSettings.inc
@Include2=#CURRENTPATH#fetch.inc
@Include3=#CURRENTPATH#GamehallVariables.inc


@Include4=#CURRENTPATH#ActionTimerPika.inc

;@Include5=#CURRENTPATH#HotkeysAndMeasures.inc


[Background1]
Meter=Image
ImageName=pokebackground.jpg
X=0
Y=0
PreserveAspectRatio=1
RightMouseUpAction=[!SetOption DropdownBG X ($MouseX$)][!SetOption DropdownBG Y ($MouseY$)][!SetOption DropdownBGC X ($MouseX$+1)][!SetOption DropdownBGC Y ($MouseY$)][!ToggleMeterGroup DropdownBG]
LeftMouseUpAction=[!HideMeterGroup Dropdown]
H=#screenareaheight#
;W=#screenareawidth#
UpdateDivider=864000

[TrainersBlack]
Meter=Image
ImageName=trainers-black.png
X=(0.5*#ScreenAreaWidth#-(608/2))
Y=(#screenareaheight#-1025)
Hidden=#HideChampions#
ImageAlpha=8
DynamicVariables=1
PreserveAspectRatio=1

[TrainersColor]
Meter=Image
ImageName=trainers-color.png
X=([TrainersBlack:X])
Y=([TrainersBlack:Y])
Hidden=#HideChampions#
ImageAlpha=69
DynamicVariables=1
PreserveAspectRatio=1

[TrainersRedBlue]
Meter=Image
ImageName=trainers-redblue.png
X=(0.5*#ScreenAreaWidth#-(473/2))
Y=(#screenareaheight#-763-19)
Hidden=#HideTrainersRedBlue#
DynamicVariables=1
PreserveAspectRatio=1

[Pikaball]
Meter=Image
ImageName=pikachu.png
X=(0.5*#ScreenAreaWidth#-(473/2))
Y=(#screenareaheight#-763-19)
Hidden=#HidePikachuPokeball#
LeftMouseUpAction=[!CommandMeasure Pika "Execute 2"]
DynamicVariables=1
PreserveAspectRatio=1

[Pikahead]
Meter=Shape
Shape=Ellipse 0,38,38,35 | Fill Color 10,0,255,1 | Stroke Color 0,0,0,0
X=([Pikaball:X]+236)
Y=([Pikaball:Y]+202)
MouseOverAction=[!ShowMeter PikaBlink][!DisableMeasure MeasurePikaBlinkSmile]
MouseLeaveAction=[!HideMeter PikaBlink][!EnableMeasure MeasurePikaBlinkSmile]
Hidden=#HidePikachuPokeball#
DynamicVariables=1
AntiAlias=1

[PikaBlink]
Meter=Image
ImageName=pika-blink.jpg
X=([Pikaball:X]+205)
Y=([Pikaball:Y]+227)
DynamicVariables=1
AntiAlias=1
Hidden=1

[PikaBlinkSmile]
Meter=Image
ImageName=pika-blinksmile.jpg
X=([Pikaball:X]+205)
Y=([Pikaball:Y]+227)
DynamicVariables=1
AntiAlias=1
Hidden=1

[BackgroundS]
Meter=Image
SolidColor=0,0,0,0
W=(#screenareawidth#/2)
H=(#screenareaheight#/2)
X=(#screenareawidth#/2)
MouseOverAction=[!ShowMeter CloseX][!ShowMeter Settings][!ShowMeter Openfolder][!SetOption CloseX FontColor 255,255,255,60][!SetOption Settings ImageAlpha 60][!SetOption Openfolder ImageAlpha 60][!UpdateMeter *]
MouseLeaveAction=[!HideMeter CloseX][!HideMeter Settings][!HideMeter Openfolder][!UpdateMeter *]
UpdateDivider=#UPDATECYCLE#

[Container]
Meter=Image
SolidColor=0,120,0,255
X=0
Y=(#screenareaheight#*0.182)
W=(2*#screenareawidth#)
H=((2*366*#scrollproportion#)+19)
DynamicVariables=1
UpdateDivider=#UPDATECYCLE#

;----------------------------------------------------------
; OnLoad Measures
;----------------------------------------------------------

[MeasureMover]
Measure=Plugin
Plugin=ActionTimer
ActionList1=Repeat MoveLeft, #ATW#, 5
ActionList2=Repeat MoveRight, #ATW#, 5
ActionList3=Repeat MoveLeft2, #ATW#, 1
ActionList4=Repeat MoveRight2, #ATW#, 1
ActionList5=Repeat MoveLeft3, #ATW#, 1
ActionList6=Repeat MoveRight3, #ATW#, 1
ActionList7=Repeat MoveLeft4, #ATW#, 5
ActionList8=Repeat MoveRight4, #ATW#, 5
MoveRight=[!SetVariable ATX "(Clamp((#ATX#+(#jump#*1.1)),#Limit2#,#Limit1#))"][!SetVariable ATsX "(Clamp((#ATsX#-(#jumpscroll#/0.86)),19,#LimitS#))"][!UpdateMeasure StopMover]#U2#
MoveLeft=[!SetVariable ATX "(Clamp((#ATX#-(#jump#*1.1)),#Limit2#,#Limit1#))"][!SetVariable ATsX "(Clamp((#ATsX#+(#jumpscroll#/0.86)),19,#LimitS#))"][!UpdateMeasure StopMover]#U2#
MoveRight2=[!SetVariable ATsX "(Clamp((#ATsX#-(#jumpscroll#*0.34)),19,#LimitS#))"]#U2#
MoveLeft2=[!SetVariable ATsX "(Clamp((#ATsX#+(#jumpscroll#*0.34)),19,#LimitS#))"]#U2#
MoveRight3=[!SetVariable ATX "(Clamp((#ATX#+(#jump#*0.2)),#Limit2#,#Limit1#))"][!SetVariable ATsX "(Clamp((#ATsX#-(#jumpscroll#*0.2)),19,#LimitS#))"]#U2#
MoveLeft3=[!SetVariable ATX "(Clamp((#ATX#-(#jump#*0.2)),#Limit2#,#Limit1#))"][!SetVariable ATsX "(Clamp((#ATsX#+(#jumpscroll#*0.2)),19,#LimitS#))"]#U2#

;MOVELEFT4 E MOVERIGHT4 SÃO USADOS NAS HOTKEYS

MoveRight4=[!SetVariable ATX "(Clamp((#ATX#+(#jumpLOCK#*1.4)),#Limit2#,#Limit1#))"][!SetVariable ATsX "(Clamp((#ATsX#-(#jumpscrollLOCK#/0.1)),19,#LimitS#))"]#U2#
MoveLeft4=[!SetVariable ATX "(Clamp((#ATX#-(#jumpLOCK#*1.4)),#Limit2#,#Limit1#))"][!SetVariable ATsX "(Clamp((#ATsX#+(#jumpscrollLOCK#/0.86)),19,#LimitS#))"]#U2#

DynamicVariables=1



[MeasureRun]
Measure=Plugin
Plugin=RunCommand
Parameter=copy "#tempvar#" "#tempvar2#"
DynamicVariables=1
UpdateDivider=#UPDATECYCLE#

[MeasureDel]
Measure=Plugin
Plugin=RunCommand
Parameter=remove "#tempvar2#"
DynamicVariables=1
UpdateDivider=#UPDATECYCLE#

[ChangeImage]
Measure=Script
ScriptFile=#CURRENTPATH#Test.lua
UpdateDivider=-1
UpdateDivider=#UPDATECYCLE#


[MeasureFileExists1]
Measure=Script
ScriptFile=#CURRENTPATH#Check.lua
FileToFind=#CURRENTPATH#DownloadFile\[mIndex1].jpg
FetchN=Fetch1
Parent=MeasureOnLoadFetch1
UpdateDivider=10
DynamicVariables=1

[MeasureFileExists2]
Measure=Script
ScriptFile=#CURRENTPATH#Check.lua
FileToFind=#CURRENTPATH#DownloadFile\[mIndex2].jpg
FetchN=Fetch2
Parent=MeasureOnLoadFetch2
UpdateDivider=10
DynamicVariables=1

[MeasureFileExists3]
Measure=Script
ScriptFile=#CURRENTPATH#Check.lua
FileToFind=#CURRENTPATH#DownloadFile\[mIndex3].jpg
FetchN=Fetch3
Parent=MeasureOnLoadFetch3
UpdateDivider=10
DynamicVariables=1

[MeasureFileExists4]
Measure=Script
ScriptFile=#CURRENTPATH#Check.lua
FileToFind=#CURRENTPATH#DownloadFile\[mIndex4].jpg
FetchN=Fetch4
Parent=MeasureOnLoadFetch4
UpdateDivider=10
DynamicVariables=1

[MeasureFileExists5]
Measure=Script
ScriptFile=#CURRENTPATH#Check.lua
FileToFind=#CURRENTPATH#DownloadFile\[mIndex5].jpg
FetchN=Fetch5
Parent=MeasureOnLoadFetch5
UpdateDivider=10
DynamicVariables=1

[MeasureFileExists6]
Measure=Script
ScriptFile=#CURRENTPATH#Check.lua
FileToFind=#CURRENTPATH#DownloadFile\[mIndex6].jpg
FetchN=Fetch6
Parent=MeasureOnLoadFetch6
UpdateDivider=10
DynamicVariables=1

[MeasureFileExists7]
Measure=Script
ScriptFile=#CURRENTPATH#Check.lua
FileToFind=#CURRENTPATH#DownloadFile\[mIndex7].jpg
FetchN=Fetch7
Parent=MeasureOnLoadFetch7
UpdateDivider=10
DynamicVariables=1

[MeasureFileExists8]
Measure=Script
ScriptFile=#CURRENTPATH#Check.lua
FileToFind=#CURRENTPATH#DownloadFile\[mIndex8].jpg
FetchN=Fetch8
Parent=MeasureOnLoadFetch8
UpdateDivider=10
DynamicVariables=1

[MeasureFileExists9]
Measure=Script
ScriptFile=#CURRENTPATH#Check.lua
FileToFind=#CURRENTPATH#DownloadFile\[mIndex9].jpg
FetchN=Fetch9
Parent=MeasureOnLoadFetch9
UpdateDivider=10
DynamicVariables=1

[MeasureFileExists10]
Measure=Script
ScriptFile=#CURRENTPATH#Check.lua
FileToFind=#CURRENTPATH#DownloadFile\[mIndex10].jpg
FetchN=Fetch10
Parent=MeasureOnLoadFetch10
UpdateDivider=10
DynamicVariables=1

[MeasureFileExists11]
Measure=Script
ScriptFile=#CURRENTPATH#Check.lua
FileToFind=#CURRENTPATH#DownloadFile\[mIndex11].jpg
FetchN=Fetch11
Parent=MeasureOnLoadFetch11
UpdateDivider=10
DynamicVariables=1

[MeasureFileExists12]
Measure=Script
ScriptFile=#CURRENTPATH#Check.lua
FileToFind=#CURRENTPATH#DownloadFile\[mIndex12].jpg
FetchN=Fetch12
Parent=MeasureOnLoadFetch12
UpdateDivider=10
DynamicVariables=1

[MeasureFileExists13]
Measure=Script
ScriptFile=#CURRENTPATH#Check.lua
FileToFind=#CURRENTPATH#DownloadFile\[mIndex13].jpg
FetchN=Fetch13
Parent=MeasureOnLoadFetch13
UpdateDivider=10
DynamicVariables=1


[MeasureOnLoadFetch1]
Measure=Calc
Formula=Counter
IfCondition=(#NumberOfItems# >= 1)
IfTrueAction=[!CommandMeasure MeasureFileExists1 "FileCheck()"]
UpdateDivider=1
DynamicVariables=1

[MeasureOnLoadFetch2]
Measure=Calc
Formula=Counter
IfCondition=(#NumberOfItems# >= 2)
IfTrueAction=[!CommandMeasure MeasureFileExists2 "FileCheck()"]
UpdateDivider=1
DynamicVariables=1

[MeasureOnLoadFetch3]
Measure=Calc
Formula=Counter
IfCondition=(#NumberOfItems# >= 3)
IfTrueAction=[!CommandMeasure MeasureFileExists3 "FileCheck()"]
UpdateDivider=1
DynamicVariables=1

[MeasureOnLoadFetch4]
Measure=Calc
Formula=Counter
IfCondition=(#NumberOfItems# >= 4)
IfTrueAction=[!CommandMeasure MeasureFileExists4 "FileCheck()"]
UpdateDivider=1
DynamicVariables=1

[MeasureOnLoadFetch5]
Measure=Calc
Formula=Counter
IfCondition=(#NumberOfItems# >= 5)
IfTrueAction=[!CommandMeasure MeasureFileExists5 "FileCheck()"]
UpdateDivider=1
DynamicVariables=1

[MeasureOnLoadFetch6]
Measure=Calc
Formula=Counter
IfCondition=(#NumberOfItems# >= 6)
IfTrueAction=[!CommandMeasure MeasureFileExists6 "FileCheck()"]
UpdateDivider=1
DynamicVariables=1

[MeasureOnLoadFetch7]
Measure=Calc
Formula=Counter
IfCondition=(#NumberOfItems# >= 7)
IfTrueAction=[!CommandMeasure MeasureFileExists7 "FileCheck()"]
UpdateDivider=1
DynamicVariables=1

[MeasureOnLoadFetch8]
Measure=Calc
Formula=Counter
IfCondition=(#NumberOfItems# >= 8)
IfTrueAction=[!CommandMeasure MeasureFileExists8 "FileCheck()"]
UpdateDivider=1
DynamicVariables=1

[MeasureOnLoadFetch9]
Measure=Calc
Formula=Counter
IfCondition=(#NumberOfItems# >= 9)
IfTrueAction=[!CommandMeasure MeasureFileExists9 "FileCheck()"]
UpdateDivider=1
DynamicVariables=1

[MeasureOnLoadFetch10]
Measure=Calc
Formula=Counter
IfCondition=(#NumberOfItems# >= 10)
IfTrueAction=[!CommandMeasure MeasureFileExists10 "FileCheck()"]
UpdateDivider=1
DynamicVariables=1

[MeasureOnLoadFetch11]
Measure=Calc
Formula=Counter
IfCondition=(#NumberOfItems# >= 11)
IfTrueAction=[!CommandMeasure MeasureFileExists11 "FileCheck()"]
UpdateDivider=1
DynamicVariables=1

[MeasureOnLoadFetch12]
Measure=Calc
Formula=Counter
IfCondition=(#NumberOfItems# >= 12)
IfTrueAction=[!CommandMeasure MeasureFileExists12 "FileCheck()"]
UpdateDivider=1
DynamicVariables=1

[MeasureOnLoadFetch13]
Measure=Calc
Formula=Counter
IfCondition=(#NumberOfItems# >= 13)
IfTrueAction=[!CommandMeasure MeasureFileExists13 "FileCheck()"]
UpdateDivider=1
DynamicVariables=1


[FVMeasure]
Measure=Plugin
Plugin=#PlName#
Path="#GameFolder2#"
ShowDotDot=0
SortType=Date
SortAscending=0
SortDateType=Accessed
ShowHidden=0
HideExtensions=1
Count=#MaxItem#
FinishAction=[!UpdateMeterGroup Items][!Redraw]
UpdateDivider=#UPDATECYCLE#

;----------------------------------------------------

[FileCount]
Measure=Plugin
Plugin=Plugins\FolderInfo.dll
Folder="#GameFolder2#"
InfoType=FileCount
IncludeHiddenFiles=0
IncludeSubFolders=0
IncludeSystemFiles=0
RegExpFilter=.*
UpdateDivider=#UPDATECYCLE#

[FolderCount]
Measure=Plugin
Plugin=Plugins\FolderInfo.dll
Folder="#GameFolder2#"
InfoType=FolderCount
IncludeHiddenFiles=0
IncludeSubFolders=0
IncludeSystemFiles=0
RegExpFilter=.*
UpdateDivider=#UPDATECYCLE#

[AnalyzeTotal]
Measure=Calc
Formula=FileCount+FolderCount
IfAboveValue=#MaxItem#
IfAboveAction=[!SetVariable NumberOfItems #MaxItem#][!ShowMeter ToolbarTitle+][!HideMeter ToolbarTitle][!WriteKeyValue Variables Toolbar1Count ([FileCount]+[FolderCount]) "#@#Variables\GeneralSettings.inc"][!SetVariable HideScrollbar 1]
IfEqualValue=#MaxItem#
IfEqualAction=[!SetVariable NumberOfItems ([FileCount]+[FolderCount])][!WriteKeyValue Variables Toolbar1Count ([FileCount]+[FolderCount]) "#@#Variables\GeneralSettings.inc"]
IfBelowValue=#MaxItem#
IfBelowAction=[!SetVariable NumberOfItems ([FileCount]+[FolderCount])][!WriteKeyValue Variables Toolbar1Count ([FileCount]+[FolderCount]) "#@#Variables\GeneralSettings.inc"]
UpdateDivider=#UPDATECYCLE#

[StopMover]
Measure=Calc
Formula=(#ATX#)
UpdateDivider=-1
IfCondition=StopMover > 21
IfTrueAction=[!CommandMeasure MeasureMover "Stop 1"][!DisableMouseAction Rainmeter "MouseScrollUpAction"][!Update]
IfFalseAction=[!EnableMouseAction Rainmeter "MouseScrollUpAction"][!Update]
IfCondition2=StopMover <= #Limit2#
IfTrueAction2=[!CommandMeasure MeasureMover "Stop 2"][!DisableMouseAction Rainmeter "MouseScrollDownAction"][!Update]
IfFalseAction2=[!EnableMouseAction Rainmeter "MouseScrollDownAction"][!Update]
DynamicVariables=1
UpdateDivider=30

[CurrentN]
Measure=Calc
Formula=1
UpdateDivider=-1
IfCondition=CurrentN < 1
IfTrueAction=[!CommandMeasure MeasureMover "Stop 7"][!SetOption CurrentN Formula "1"][!DisableMeasureGroup GamepadLeft][!UpdateMeasure CurrentN]
IfCondition2=CurrentN > #NumberOfItems#
IfTrueAction2=[!CommandMeasure MeasureMover "Stop 8"][!SetOption CurrentN Formula #NumberOfItems#][!DisableMeasureGroup GamepadRight][!UpdateMeasure CurrentN]
DynamicVariables=1

[MeasureCurrentBtn]
Measure=Calc
Formula=#CurrentBtn#
IfCondition=(#CURRENTSECTION#=0)
IfTrueAction=[!SetOption "Frame1" ImageName gameframe.png][!SetOption "Frame2" ImageName gameframe.png][!SetOption "Frame3" ImageName gameframe.png][!SetOption "Frame4" ImageName gameframe.png][!SetOption "Frame5" ImageName gameframe.png][!SetOption "Frame6" ImageName gameframe.png][!SetOption "Frame7" ImageName gameframe.png][!SetOption "Frame8" ImageName gameframe.png][!SetOption "Frame9" ImageName gameframe.png][!SetOption "Frame10" ImageName gameframe.png][!SetOption "Frame11" ImageName gameframe.png][!SetOption "Frame12" ImageName gameframe.png][!SetOption "Frame13" ImageName gameframe.png][!Redraw]
IfCondition2=(#CURRENTSECTION#=1)
IfTrueAction2=[!SetOption "Frame1" ImageName gameframe-highlight.png][!SetOption "Frame2" ImageName gameframe.png][!SetOption "Frame3" ImageName gameframe.png][!SetOption "Frame4" ImageName gameframe.png][!SetOption "Frame5" ImageName gameframe.png][!SetOption "Frame6" ImageName gameframe.png][!SetOption "Frame7" ImageName gameframe.png][!SetOption "Frame8" ImageName gameframe.png][!SetOption "Frame9" ImageName gameframe.png][!SetOption "Frame10" ImageName gameframe.png][!SetOption "Frame11" ImageName gameframe.png][!SetOption "Frame12" ImageName gameframe.png][!SetOption "Frame13" ImageName gameframe.png][!Redraw]
IfCondition3=(#CURRENTSECTION#=2)
IfTrueAction3=[!SetOption "Frame1" ImageName gameframe.png][!SetOption "Frame2" ImageName gameframe-highlight.png][!SetOption "Frame3" ImageName gameframe.png][!SetOption "Frame4" ImageName gameframe.png][!SetOption "Frame5" ImageName gameframe.png][!SetOption "Frame6" ImageName gameframe.png][!SetOption "Frame7" ImageName gameframe.png][!SetOption "Frame8" ImageName gameframe.png][!SetOption "Frame9" ImageName gameframe.png][!SetOption "Frame10" ImageName gameframe.png][!SetOption "Frame11" ImageName gameframe.png][!SetOption "Frame12" ImageName gameframe.png][!SetOption "Frame13" ImageName gameframe.png][!Redraw]
IfCondition4=(#CURRENTSECTION#=3)
IfTrueAction4=[!SetOption "Frame1" ImageName gameframe.png][!SetOption "Frame2" ImageName gameframe.png][!SetOption "Frame3" ImageName gameframe-highlight.png][!SetOption "Frame4" ImageName gameframe.png][!SetOption "Frame5" ImageName gameframe.png][!SetOption "Frame6" ImageName gameframe.png][!SetOption "Frame7" ImageName gameframe.png][!SetOption "Frame8" ImageName gameframe.png][!SetOption "Frame9" ImageName gameframe.png][!SetOption "Frame10" ImageName gameframe.png][!SetOption "Frame11" ImageName gameframe.png][!SetOption "Frame12" ImageName gameframe.png][!SetOption "Frame13" ImageName gameframe.png][!Redraw]
IfCondition5=(#CURRENTSECTION#=4)
IfTrueAction5=[!SetOption "Frame1" ImageName gameframe.png][!SetOption "Frame2" ImageName gameframe.png][!SetOption "Frame3" ImageName gameframe.png][!SetOption "Frame4" ImageName gameframe-highlight.png][!SetOption "Frame5" ImageName gameframe.png][!SetOption "Frame6" ImageName gameframe.png][!SetOption "Frame7" ImageName gameframe.png][!SetOption "Frame8" ImageName gameframe.png][!SetOption "Frame9" ImageName gameframe.png][!SetOption "Frame10" ImageName gameframe.png][!SetOption "Frame11" ImageName gameframe.png][!SetOption "Frame12" ImageName gameframe.png][!SetOption "Frame13" ImageName gameframe.png][!Redraw]
IfCondition6=(#CURRENTSECTION#=5)
IfTrueAction6=[!SetOption "Frame1" ImageName gameframe.png][!SetOption "Frame2" ImageName gameframe.png][!SetOption "Frame3" ImageName gameframe.png][!SetOption "Frame4" ImageName gameframe.png][!SetOption "Frame5" ImageName gameframe-highlight.png][!SetOption "Frame6" ImageName gameframe.png][!SetOption "Frame7" ImageName gameframe.png][!SetOption "Frame8" ImageName gameframe.png][!SetOption "Frame9" ImageName gameframe.png][!SetOption "Frame10" ImageName gameframe.png][!SetOption "Frame11" ImageName gameframe.png][!SetOption "Frame12" ImageName gameframe.png][!SetOption "Frame13" ImageName gameframe.png][!Redraw]
IfCondition7=(#CURRENTSECTION#=6)
IfTrueAction7=[!SetOption "Frame1" ImageName gameframe.png][!SetOption "Frame2" ImageName gameframe.png][!SetOption "Frame3" ImageName gameframe.png][!SetOption "Frame4" ImageName gameframe.png][!SetOption "Frame5" ImageName gameframe.png][!SetOption "Frame6" ImageName gameframe-highlight.png][!SetOption "Frame7" ImageName gameframe.png][!SetOption "Frame8" ImageName gameframe.png][!SetOption "Frame9" ImageName gameframe.png][!SetOption "Frame10" ImageName gameframe.png][!SetOption "Frame11" ImageName gameframe.png][!SetOption "Frame12" ImageName gameframe.png][!SetOption "Frame13" ImageName gameframe.png][!Redraw]
IfCondition8=(#CURRENTSECTION#=7)
IfTrueAction8=[!SetOption "Frame1" ImageName gameframe.png][!SetOption "Frame2" ImageName gameframe.png][!SetOption "Frame3" ImageName gameframe.png][!SetOption "Frame4" ImageName gameframe.png][!SetOption "Frame5" ImageName gameframe.png][!SetOption "Frame6" ImageName gameframe.png][!SetOption "Frame7" ImageName gameframe-highlight.png][!SetOption "Frame8" ImageName gameframe.png][!SetOption "Frame9" ImageName gameframe.png][!SetOption "Frame10" ImageName gameframe.png][!SetOption "Frame11" ImageName gameframe.png][!SetOption "Frame12" ImageName gameframe.png][!SetOption "Frame13" ImageName gameframe.png][!Redraw]
IfCondition9=(#CURRENTSECTION#=8)
IfTrueAction9=[!SetOption "Frame1" ImageName gameframe.png][!SetOption "Frame2" ImageName gameframe.png][!SetOption "Frame3" ImageName gameframe.png][!SetOption "Frame4" ImageName gameframe.png][!SetOption "Frame5" ImageName gameframe.png][!SetOption "Frame6" ImageName gameframe.png][!SetOption "Frame7" ImageName gameframe.png][!SetOption "Frame8" ImageName gameframe-highlight.png][!SetOption "Frame9" ImageName gameframe.png][!SetOption "Frame10" ImageName gameframe.png][!SetOption "Frame11" ImageName gameframe.png][!SetOption "Frame12" ImageName gameframe.png][!SetOption "Frame13" ImageName gameframe.png][!Redraw]
IfCondition10=(#CURRENTSECTION#=9)
IfTrueAction10=[!SetOption "Frame1" ImageName gameframe.png][!SetOption "Frame2" ImageName gameframe.png][!SetOption "Frame3" ImageName gameframe.png][!SetOption "Frame4" ImageName gameframe.png][!SetOption "Frame5" ImageName gameframe.png][!SetOption "Frame6" ImageName gameframe.png][!SetOption "Frame7" ImageName gameframe.png][!SetOption "Frame8" ImageName gameframe.png][!SetOption "Frame9" ImageName gameframe-highlight.png][!SetOption "Frame10" ImageName gameframe.png][!SetOption "Frame11" ImageName gameframe.png][!SetOption "Frame12" ImageName gameframe.png][!SetOption "Frame13" ImageName gameframe.png][!Redraw]
IfCondition11=(#CURRENTSECTION#=10)
IfTrueAction11=[!SetOption "Frame1" ImageName gameframe.png][!SetOption "Frame2" ImageName gameframe.png][!SetOption "Frame3" ImageName gameframe.png][!SetOption "Frame4" ImageName gameframe.png][!SetOption "Frame5" ImageName gameframe.png][!SetOption "Frame6" ImageName gameframe.png][!SetOption "Frame7" ImageName gameframe.png][!SetOption "Frame8" ImageName gameframe.png][!SetOption "Frame9" ImageName gameframe.png][!SetOption "Frame10" ImageName gameframe-highlight.png][!SetOption "Frame11" ImageName gameframe.png][!SetOption "Frame12" ImageName gameframe.png][!SetOption "Frame13" ImageName gameframe.png][!Redraw]
IfCondition12=(#CURRENTSECTION#=11)
IfTrueAction12=[!SetOption "Frame1" ImageName gameframe.png][!SetOption "Frame2" ImageName gameframe.png][!SetOption "Frame3" ImageName gameframe.png][!SetOption "Frame4" ImageName gameframe.png][!SetOption "Frame5" ImageName gameframe.png][!SetOption "Frame6" ImageName gameframe.png][!SetOption "Frame7" ImageName gameframe.png][!SetOption "Frame8" ImageName gameframe.png][!SetOption "Frame9" ImageName gameframe.png][!SetOption "Frame10" ImageName gameframe.png][!SetOption "Frame11" ImageName gameframe-highlight.png][!SetOption "Frame12" ImageName gameframe.png][!SetOption "Frame13" ImageName gameframe.png][!Redraw]
IfCondition13=(#CURRENTSECTION#=12)
IfTrueAction13=[!SetOption "Frame1" ImageName gameframe.png][!SetOption "Frame2" ImageName gameframe.png][!SetOption "Frame3" ImageName gameframe.png][!SetOption "Frame4" ImageName gameframe.png][!SetOption "Frame5" ImageName gameframe.png][!SetOption "Frame6" ImageName gameframe.png][!SetOption "Frame7" ImageName gameframe.png][!SetOption "Frame8" ImageName gameframe.png][!SetOption "Frame9" ImageName gameframe.png][!SetOption "Frame10" ImageName gameframe.png][!SetOption "Frame11" ImageName gameframe.png][!SetOption "Frame12" ImageName gameframe-highlight.png][!SetOption "Frame13" ImageName gameframe.png][!Redraw]
IfCondition14=(#CURRENTSECTION#=13)
IfTrueAction14=[!SetOption "Frame1" ImageName gameframe.png][!SetOption "Frame2" ImageName gameframe.png][!SetOption "Frame3" ImageName gameframe.png][!SetOption "Frame4" ImageName gameframe.png][!SetOption "Frame5" ImageName gameframe.png][!SetOption "Frame6" ImageName gameframe.png][!SetOption "Frame7" ImageName gameframe.png][!SetOption "Frame8" ImageName gameframe.png][!SetOption "Frame9" ImageName gameframe.png][!SetOption "Frame10" ImageName gameframe.png][!SetOption "Frame11" ImageName gameframe.png][!SetOption "Frame12" ImageName gameframe.png][!SetOption "Frame13" ImageName gameframe-highlight.png][!Redraw]
DynamicVariables=1
UpdateDivider=#UPDATECYCLE#


;----------------------------------------------------
; Scrollbar
;----------------------------------------------------

[ScrollBG]
Meter=Image
ImageName=scrollbg.png
Y=(#screenareaheight#-[ScrollBG:H]-5)
X=((#screenareawidth#/2)-([ScrollBG:W]/2))
W=#scrollbgwidth#
ImageAlpha=(#NumberOfItems# < 7 ? 0 : 25)
ImageTint=0,0,0,255
;H=3
DynamicVariables=1
Group=ScrollBar
Hidden=1
UpdateDivider=#UPDATECYCLE#

[ScrollBar]
Meter=Image
ImageName=scrollbar.png
Y=(#screenareaheight#-[ScrollBar:H]-5)
X=(((#screenareawidth#/2)-([ScrollBG:W]/2))+#ATsX#-17)
W=#scrollwidth#
ImageAlpha=(#NumberOfItems# < 7 ? 0 : 255)
ImageTint=50,50,50,255
;H=3
DynamicVariables=1
Group=ScrollBar
Hidden=1
UpdateDivider=#UPDATECYCLE#

;----------------------------------------------------------
; Hotkeys
;----------------------------------------------------------

[EscClose]
Measure=Plugin
Plugin=HotKey
HotKey=ESCAPE
KeyDownAction=[!DeactivateConfig]
UpdateDivider=#UPDATECYCLE#

[TestCurrentN]
Meter=String
Text=CurrentN is: [CurrentN]
DynamicVariables=1
FontFace=Optimus
FontSize=20
FontColor=0,0,0,255
X=(0.5*#ScreenAreaWidth#)
Y=(0.5*#screenareaheight#)

[TestCurrentBtn]
Meter=String
Text=CurrentBtn is: #CurrentBtn#
DynamicVariables=1
FontFace=Optimus
FontSize=20
FontColor=0,0,0,255
X=r
Y=R

[TestRight]
Measure=Plugin
Plugin=HotKey
HotKey=RIGHT
KeyDownAction=#soundhover#[!SetOption "Frame[CurrentN]" ImageName gameframe.png][!SetOption CurrentN Formula "([CurrentN] + ([CurrentN] = 2 ? 3 : ([CurrentN] = 4 ? 5 : ([CurrentN] = 8 ? 0 : 1))))"][!UpdateMeasure CurrentN][!SetVariable CurrentBtn "[CurrentN]"][!SetOption "Frame[CurrentN]" ImageName gameframe-highlight.png][!UpdateMeasure MeasureCurrentBtn][!UpdateMeter *][!Redraw]
DynamicVariables=1
Group=Keyboard

[TestLeft]
Measure=Plugin
Plugin=HotKey
HotKey=LEFT
KeyDownAction=#soundhover#[!SetOption "Frame[CurrentN]" ImageName gameframe.png][!SetOption CurrentN Formula "([CurrentN] - ([CurrentN] = 5 ? 3 : ([CurrentN] = 9 ? 5 : ([CurrentN] = 3 ? 0 : 1))))"][!UpdateMeasure CurrentN][!SetVariable CurrentBtn "[CurrentN]"][!SetOption "Frame[CurrentN]" ImageName gameframe-highlight.png][!UpdateMeasure MeasureCurrentBtn][!UpdateMeter *][!Redraw]
DynamicVariables=1
Group=Keyboard

[TestDown]
Measure=Plugin
Plugin=HotKey
HotKey=DOWN
KeyDownAction=#soundhover#[!SetOption "Frame[CurrentN]" ImageName gameframe.png][!SetOption CurrentN Formula "([CurrentN] + (([CurrentN] = 1) || ([CurrentN] = 2) ? 2 : (([CurrentN] = 5) || ([CurrentN] = 6) || ([CurrentN] = 7) || ([CurrentN] = 8) ? 4 : 0)))"][!UpdateMeasure CurrentN][!SetVariable CurrentBtn "[CurrentN]"][!SetOption "Frame[CurrentN]" ImageName gameframe-highlight.png][!UpdateMeasure MeasureCurrentBtn][!UpdateMeter *][!Redraw]
DynamicVariables=1
Group=Keyboard

[TestUp]
Measure=Plugin
Plugin=HotKey
HotKey=UP
KeyDownAction=#soundhover#[!SetOption "Frame[CurrentN]" ImageName gameframe.png][!SetOption CurrentN Formula "([CurrentN] - (([CurrentN] = 1) || ([CurrentN] = 5) ? 0 : (([CurrentN] = 3) || ([CurrentN] = 4) ? 2 : 4)))"][!UpdateMeasure CurrentN][!SetVariable CurrentBtn "[CurrentN]"][!SetOption "Frame[CurrentN]" ImageName gameframe-highlight.png][!UpdateMeasure MeasureCurrentBtn][!UpdateMeter *][!Redraw]
DynamicVariables=1
Group=Keyboard

;@include5=#Gamepadkeys#.inc

;----------------------------------------------------------
; Frames
;----------------------------------------------------------


[Frame1]
Meter=Image
ImageName=gameframe.png
Y=0
X=((#ScreenAreaWidth#/2)-([Frame1:W]*1.76))
H=#HeightBig#
W=#WidthBig#
DynamicVariables=1
Container=Container
MouseOverAction=[!SetVariable TOPMENU 0][!SetOption #CURRENTSECTION# ImageName "gameframe-highlight.png"][!UpdateMeter #CURRENTSECTION#]#soundhover#[!SetOption CurrentN Formula "1"][!SetVariable CurrentBtn "1"][!HideMeterGroup Dropdown][!UpdateMeasure "MeasureCurrentBtn"][!UpdateMeasure "LeftKeyboard"][!UpdateMeasure "RightKeyboard"][!UpdateMeter *][!UpdateMeasure CurrentN][!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# ImageName "gameframe.png"][!UpdateMeter #CURRENTSECTION#][!Redraw]
LeftMouseUpAction=#soundclick#[!CommandMeasure mIndex1 "Open"][!UpdateMeasure FVMeasure][!UpdateMeterGroup Items][!Redraw][!DeactivateConfig]
RightMouseUpAction=[!SetOption Dropdown1 X ($MouseX$+[ContainerX:X]+11)][!SetOption Dropdown1 Y ($MouseY$+[ContainerX:Y])][!SetOption Dropdown1C X ($MouseX$+[ContainerX:X]+12)][!SetOption Dropdown1C Y ($MouseY$+[ContainerX:Y])][!ShowMeterGroup Dropdown1][!Update *]
Group:Frames

[Frame2]
Meter=Image
ImageName=gameframe.png
Y=0
X=((#ScreenAreaWidth#/2)+([Frame1:W]*0.76))
H=#HeightBig#
W=#WidthBig#
DynamicVariables=1
;Hidden=(#NumberOfItems# >= 2 ? 0 : 1)
MouseOverAction=[!SetVariable TOPMENU 0][!SetOption #CURRENTSECTION# ImageName "gameframe-highlight.png"][!UpdateMeter #CURRENTSECTION#]#soundhover#[!SetOption CurrentN Formula "2"][!SetVariable CurrentBtn "2"][!HideMeterGroup Dropdown][!UpdateMeasure "MeasureCurrentBtn"][!UpdateMeasure "LeftKeyboard"][!UpdateMeasure "RightKeyboard"][!UpdateMeter *][!UpdateMeasure CurrentN][!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# ImageName "gameframe.png"][!UpdateMeter #CURRENTSECTION#][!SetOption Index2Info FontEffectColor "0,0,0,255"][!UpdateMeter Index2Info][!Redraw]
LeftMouseUpAction=#soundclick#[!CommandMeasure mIndex2 "Open"][!UpdateMeasure FVMeasure][!UpdateMeterGroup Items][!Redraw][!DeactivateConfig]
RightMouseUpAction=[!SetOption Dropdown2 X ($MouseX$+[Index2Icon:X])][!SetOption Dropdown2 Y ($MouseY$+[ContainerX:Y])][!SetOption Dropdown2C X ($MouseX$+[Index2Icon:X]+1)][!SetOption Dropdown2C Y ($MouseY$+[ContainerX:Y])][!HideMeterGroup Dropdown][!Redraw][!ToggleMeterGroup Dropdown2]
Container=Container
Group:Frames

[Frame3]
Meter=Image
ImageName=gameframe.png
Y=20R
X=([Frame1:X])
H=#HeightBig#
W=#WidthBig#
DynamicVariables=1
;Hidden=(#NumberOfItems# >= 3 ? 0 : 1)
MouseOverAction=[!SetVariable TOPMENU 0][!SetOption #CURRENTSECTION# ImageName "gameframe-highlight.png"][!UpdateMeter #CURRENTSECTION#]#soundhover#[!SetOption CurrentN Formula "3"][!SetVariable CurrentBtn "3"][!UpdateMeasure "MeasureCurrentBtn"][!UpdateMeasure "LeftKeyboard"][!UpdateMeasure "RightKeyboard"][!HideMeterGroup Dropdown][!UpdateMeter *][!UpdateMeasure CurrentN][!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# ImageName "gameframe.png"][!UpdateMeter #CURRENTSECTION#][!SetOption Index3Info FontEffectColor "0,0,0,255"][!UpdateMeter Index3Info][!Redraw]
LeftMouseUpAction=#soundclick#[!CommandMeasure mIndex3 "Open"][!UpdateMeasure FVMeasure][!UpdateMeterGroup Items][!Redraw][!DeactivateConfig]
RightMouseUpAction=[!SetOption Dropdown3 X ($MouseX$+[Index3Icon:X])][!SetOption Dropdown3 Y ($MouseY$+[ContainerX:Y])][!SetOption Dropdown3C X ($MouseX$+[Index3Icon:X]+1)][!SetOption Dropdown3C Y ($MouseY$+[ContainerX:Y])][!HideMeterGroup Dropdown][!Redraw][!ToggleMeterGroup Dropdown3]
Container=Container
Group:Frames

[Frame4]
Meter=Image
ImageName=gameframe.png
Y=r
X=([Frame2:X])
H=#HeightBig#
W=#WidthBig#
DynamicVariables=1
;Hidden=(#NumberOfItems# >= 4 ? 0 : 1)
MouseOverAction=[!SetVariable TOPMENU 0][!SetOption #CURRENTSECTION# ImageName "gameframe-highlight.png"][!UpdateMeter #CURRENTSECTION#]#soundhover#[!SetOption CurrentN Formula "4"][!SetVariable CurrentBtn "4"][!HideMeterGroup Dropdown][!UpdateMeasure "MeasureCurrentBtn"][!UpdateMeasure "LeftKeyboard"][!UpdateMeasure "RightKeyboard"][!UpdateMeter *][!UpdateMeasure CurrentN][!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# ImageName "gameframe.png"][!UpdateMeter #CURRENTSECTION#][!Redraw]
LeftMouseUpAction=#soundclick#[!CommandMeasure mIndex4 "Open"][!UpdateMeasure FVMeasure][!UpdateMeterGroup Items][!Redraw][!DeactivateConfig]
RightMouseUpAction=[!SetOption Dropdown4 X ($MouseX$+[Index4Icon:X])][!SetOption Dropdown4 Y ($MouseY$+[ContainerX:Y])][!SetOption Dropdown4C X ($MouseX$+[Index4Icon:X]+1)][!SetOption Dropdown4C Y ($MouseY$+[ContainerX:Y])][!HideMeterGroup Dropdown][!Redraw][!ToggleMeterGroup Dropdown4]
Container=Container
Group:Frames

[Frame5]
Meter=Image
ImageName=gameframe.png
Y=0
X=(#ScreenAreaWidth#+((#ScreenAreaWidth#-(4*[Frame5:W]))*(2/3)/2))
H=#HeightBig#
W=#WidthBig#
DynamicVariables=1
MouseOverAction=[!SetVariable TOPMENU 0][!SetOption #CURRENTSECTION# ImageName "gameframe-highlight.png"][!UpdateMeter #CURRENTSECTION#]#soundhover#[!SetOption CurrentN Formula "5"][!SetVariable CurrentBtn "5"][!HideMeterGroup Dropdown][!UpdateMeasure "MeasureCurrentBtn"][!UpdateMeasure "LeftKeyboard"][!UpdateMeasure "RightKeyboard"][!UpdateMeter *][!UpdateMeasure CurrentN][!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# ImageName "gameframe.png"][!UpdateMeter #CURRENTSECTION#][!Redraw]
LeftMouseUpAction=#soundclick#[!CommandMeasure mIndex5 "Open"][!UpdateMeasure FVMeasure][!UpdateMeterGroup Items][!Redraw][!DeactivateConfig]
RightMouseUpAction=[!SetOption Dropdown5 X ($MouseX$+[Index5Icon:X])][!SetOption Dropdown5 Y ($MouseY$+[ContainerX:Y])][!SetOption Dropdown5C X ($MouseX$+[Index5Icon:X]+1)][!SetOption Dropdown5C Y ($MouseY$+[ContainerX:Y])][!HideMeterGroup Dropdown][!Redraw][!ToggleMeterGroup Dropdown5]
Container=Container
Group:Frames

[Frame6]
Meter=Image
ImageName=gameframe.png
Y=r
X=([Frame5:X]+[Frame5:W]+((#ScreenAreaWidth#-(4*[Frame5:W]))*(1/3)/3))
H=#HeightBig#
W=#WidthBig#
DynamicVariables=1
;Hidden=(#NumberOfItems# >= 6 ? 0 : 1)
MouseOverAction=[!SetVariable TOPMENU 0][!SetOption #CURRENTSECTION# ImageName "gameframe-highlight.png"][!UpdateMeter #CURRENTSECTION#]#soundhover#[!SetOption CurrentN Formula "6"][!SetVariable CurrentBtn "6"][!HideMeterGroup Dropdown][!UpdateMeasure "MeasureCurrentBtn"][!UpdateMeasure "LeftKeyboard"][!UpdateMeasure "RightKeyboard"][!UpdateMeter *][!UpdateMeasure CurrentN][!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# ImageName "gameframe.png"][!UpdateMeter #CURRENTSECTION#][!Redraw]
LeftMouseUpAction=#soundclick#[!CommandMeasure mIndex6 "Open"][!UpdateMeasure FVMeasure][!UpdateMeterGroup Items][!Redraw][!DeactivateConfig]
RightMouseUpAction=[!SetOption Dropdown6 X ($MouseX$+[Index6Icon:X])][!SetOption Dropdown6 Y ($MouseY$+[ContainerX:Y])][!SetOption Dropdown6C X ($MouseX$+[Index6Icon:X]+1)][!SetOption Dropdown6C Y ($MouseY$+[ContainerX:Y])][!HideMeterGroup Dropdown][!Redraw][!ToggleMeterGroup Dropdown6]
Container=Container
Group:Frames

[Frame7]
Meter=Image
ImageName=gameframe.png
Y=r
X=([Frame6:X]+[Frame6:W]+((#ScreenAreaWidth#-(4*[Frame5:W]))*(1/3)/3))
H=#HeightBig#
W=#WidthBig#
DynamicVariables=1
Container=Container
Group:Frames

[Frame8]
Meter=Image
ImageName=gameframe.png
Y=r
X=([Frame7:X]+[Frame7:W]+((#ScreenAreaWidth#-(4*[Frame5:W]))*(1/3)/3))
H=#HeightBig#
W=#WidthBig#
DynamicVariables=1
Container=Container
Group:Frames

[Frame9]
Meter=Image
ImageName=gameframe.png
Y=20R
X=(#ScreenAreaWidth#+((#ScreenAreaWidth#-(4*[Frame9:W]))*(2/3)/2))
H=#HeightBig#
W=#WidthBig#
DynamicVariables=1
Container=Container
Group:Frames

[Frame10]
Meter=Image
ImageName=gameframe.png
Y=r
X=([Frame9:X]+[Frame9:W]+((#ScreenAreaWidth#-(4*[Frame9:W]))*(1/3)/3))
H=#HeightBig#
W=#WidthBig#
DynamicVariables=1
Container=Container
Group:Frames

[Frame11]
Meter=Image
ImageName=gameframe.png
Y=r
X=([Frame10:X]+[Frame10:W]+((#ScreenAreaWidth#-(4*[Frame10:W]))*(1/3)/3))
H=#HeightBig#
W=#WidthBig#
DynamicVariables=1
Container=Container
Group:Frames

[Frame12]
Meter=Image
ImageName=gameframe.png
Y=r
X=([Frame11:X]+[Frame11:W]+((#ScreenAreaWidth#-(4*[Frame11:W]))*(1/3)/3))
H=#HeightBig#
W=#WidthBig#
DynamicVariables=1
Container=Container
Group:Frames

;---------------------------------------------------------------
; Games and titles
;---------------------------------------------------------------

[ShapeMask1]
Meter=Shape
DynamicVariables=1
;Shape=Rectangle 0,0,374,334.26 | Fill Color 0,255,0
Shape=Rectangle 49,19.37,330.24,294.36 | Fill Color 0,255,200
AntiAlias=1
X=([Frame1:X])
Y=([Frame1:Y])

[Game1]
Meter=Image
ImageName=#CURRENTPATH#DownloadFile\[mIndex1].jpg
X=2
;Y=([Frame2:Y]+5.42)
W=376.5039
;Hidden=(#NumberOfItems# >= 1 ? 0 : 1)
Container=ShapeMask1
PreserveAspectRatio=1
DynamicVariables=1

[GameTitle1]
Meter=String
FontFace=Optimus
FontColor=255,255,255
FontSize=#GameFontSize#
AntiAlias=1
MeasureName=mIndex1
DynamicVariables=1
StringAlign=Center
X=(([Frame1:X])+([Frame1:W]/2))
Y=((#HeightBig#)-(#GameFontSize#*3.6))
Container=Container

[ShapeMask2]
Meter=Shape
DynamicVariables=1
;Shape=Rectangle 0,0,374,334.26 | Fill Color 0,255,0
Shape=Rectangle 49,19.37,330.24,294.36 | Fill Color 0,255,0
AntiAlias=1
X=([Frame2:X])
Y=([Frame2:Y])

[Game2]
Meter=Image
ImageName=#CURRENTPATH#DownloadFile\[mIndex2].jpg
X=4
;Y=([Frame2:Y]+5.42)
W=376.5039
;H=381.579
;Hidden=1
Container=ShapeMask2
PreserveAspectRatio=1
DynamicVariables=1

[GameTitle2]
Meter=String
FontFace=Optimus
FontColor=255,255,255
FontSize=#GameFontSize#
AntiAlias=1
MeasureName=mIndex2
DynamicVariables=1
StringAlign=Center
X=(([Frame2:X])+([Frame2:W]/2))
Y=((#HeightBig#)-(#GameFontSize#*3.6))
Container=Container

[ShapeMask3]
Meter=Shape
DynamicVariables=1
;Shape=Rectangle 0,0,374,334.26 | Fill Color 0,255,0
Shape=Rectangle 49,19.37,330.24,294.36 | Fill Color 0,255,0
AntiAlias=1
X=([Frame3:X])
Y=([Frame3:Y])

[Game3]
Meter=Image
ImageName=#CURRENTPATH#DownloadFile\[mIndex3].jpg
X=4
;Y=([Frame2:Y]+5.42)
W=376.5039
;H=381.579
;Hidden=1
Container=ShapeMask3
PreserveAspectRatio=1
DynamicVariables=1

[GameTitle3]
Meter=String
FontFace=Optimus
FontColor=255,255,255
FontSize=#GameFontSize#
AntiAlias=1
MeasureName=mIndex3
DynamicVariables=1
StringAlign=Center
X=(([Frame3:X])+([Frame3:W]/2))
Y=(20+(#HeightBig#*2)-(#GameFontSize#*3.6))
Container=Container

[ShapeMask4]
Meter=Shape
DynamicVariables=1
;Shape=Rectangle 0,0,374,334.26 | Fill Color 0,255,0
Shape=Rectangle 49,19.37,330.24,294.36 | Fill Color 0,255,0
AntiAlias=1
X=([Frame4:X])
Y=([Frame4:Y])

[Game4]
Meter=Image
ImageName=#CURRENTPATH#DownloadFile\[mIndex4].jpg
X=4
;Y=([Frame2:Y]+5.42)
W=376.5039
;H=381.579
;Hidden=1
Container=ShapeMask4
PreserveAspectRatio=1
DynamicVariables=1

[GameTitle4]
Meter=String
FontFace=Optimus
FontColor=255,255,255
FontSize=#GameFontSize#
AntiAlias=1
MeasureName=mIndex4
DynamicVariables=1
StringAlign=Center
X=(([Frame4:X])+([Frame4:W]/2))
Y=(20+(#HeightBig#*2)-(#GameFontSize#*3.6))
Container=Container

[ShapeMask5]
Meter=Shape
DynamicVariables=1
;Shape=Rectangle 0,0,374,334.26 | Fill Color 0,255,0
Shape=Rectangle 49,19.37,330.24,294.36 | Fill Color 0,255,0
AntiAlias=1
X=([Frame5:X])
Y=([Frame5:Y])

[Game5]
Meter=Image
ImageName=#CURRENTPATH#DownloadFile\[mIndex5].jpg
X=4
W=376.5039
;H=381.579
;Hidden=1
Container=ShapeMask5
PreserveAspectRatio=1
DynamicVariables=1

[GameTitle5]
Meter=String
FontFace=Optimus
FontColor=255,255,255
FontSize=#GameFontSize#
AntiAlias=1
MeasureName=mIndex5
DynamicVariables=1
StringAlign=Center
X=(([Frame5:X])+([Frame5:W]/2))
Y=(#HeightBig#-(#GameFontSize#*3.6))
Container=Container

[ShapeMask6]
Meter=Shape
DynamicVariables=1
;Shape=Rectangle 0,0,374,334.26 | Fill Color 0,255,0
Shape=Rectangle 49,19.37,330.24,294.36 | Fill Color 0,255,0
AntiAlias=1
X=([Frame6:X])
Y=([Frame6:Y])

[Game6]
Meter=Image
ImageName=#CURRENTPATH#DownloadFile\[mIndex6].jpg
X=4
;Y=([Frame2:Y]+5.42)
W=376.5039
;H=381.579
;Hidden=1
Container=ShapeMask6
PreserveAspectRatio=1
DynamicVariables=1

[GameTitle6]
Meter=String
FontFace=Optimus
FontColor=255,255,255
FontSize=#GameFontSize#
AntiAlias=1
MeasureName=mIndex6
DynamicVariables=1
StringAlign=Center
X=(([Frame6:X])+([Frame6:W]/2))
Y=(#HeightBig#-(#GameFontSize#*3.6))
Container=Container

[ShapeMask7]
Meter=Shape
DynamicVariables=1
;Shape=Rectangle 0,0,374,334.26 | Fill Color 0,255,0
Shape=Rectangle 49,19.37,330.24,294.36 | Fill Color 0,255,0
AntiAlias=1
X=([Frame7:X])
Y=([Frame7:Y])

[Game7]
Meter=Image
ImageName=#CURRENTPATH#DownloadFile\[mIndex7].jpg
X=4
;Y=([Frame2:Y]+5.42)
W=376.5039
;H=381.579
;Hidden=1
Container=ShapeMask7
PreserveAspectRatio=1
DynamicVariables=1

[GameTitle7]
Meter=String
FontFace=Optimus
FontColor=255,255,255
FontSize=#GameFontSize#
AntiAlias=1
MeasureName=mIndex7
DynamicVariables=1
StringAlign=Center
X=(([Frame7:X])+([Frame7:W]/2))
Y=(#HeightBig#-(#GameFontSize#*3.6))
Container=Container

[ShapeMask8]
Meter=Shape
DynamicVariables=1
;Shape=Rectangle 0,0,374,334.26 | Fill Color 0,255,0
Shape=Rectangle 49,19.37,330.24,294.36 | Fill Color 0,255,0
AntiAlias=1
X=([Frame8:X])
Y=([Frame8:Y])

[Game8]
Meter=Image
ImageName=#CURRENTPATH#DownloadFile\[mIndex8].jpg
X=4
;Y=([Frame2:Y]+5.42)
W=376.5039
;H=381.579
;Hidden=1
Container=ShapeMask8
PreserveAspectRatio=1
DynamicVariables=1

[GameTitle8]
Meter=String
FontFace=Optimus
FontColor=255,255,255
FontSize=#GameFontSize#
AntiAlias=1
MeasureName=mIndex8
DynamicVariables=1
StringAlign=Center
X=(([Frame8:X])+([Frame8:W]/2))
Y=(#HeightBig#-(#GameFontSize#*3.6))
Container=Container

[ShapeMask9]
Meter=Shape
DynamicVariables=1
;Shape=Rectangle 0,0,374,334.26 | Fill Color 0,255,0
Shape=Rectangle 49,19.37,330.24,294.36 | Fill Color 0,255,0
AntiAlias=1
X=([Frame9:X])
Y=([Frame9:Y])

[Game9]
Meter=Image
ImageName=#CURRENTPATH#DownloadFile\[mIndex9].jpg
X=4
;Y=([Frame2:Y]+5.42)
W=376.5039
;H=381.579
;Hidden=1
Container=ShapeMask9
PreserveAspectRatio=1
DynamicVariables=1

[GameTitle9]
Meter=String
FontFace=Optimus
FontColor=255,255,255
FontSize=#GameFontSize#
AntiAlias=1
MeasureName=mIndex9
DynamicVariables=1
StringAlign=Center
X=(([Frame9:X])+([Frame9:W]/2))
Y=(20+(#HeightBig#*2)-(#GameFontSize#*3.6))
Container=Container

[ShapeMask10]
Meter=Shape
DynamicVariables=1
;Shape=Rectangle 0,0,374,334.26 | Fill Color 0,255,0
Shape=Rectangle 49,19.37,330.24,294.36 | Fill Color 0,255,0
AntiAlias=1
X=([Frame10:X])
Y=([Frame10:Y])

[Game10]
Meter=Image
ImageName=#CURRENTPATH#DownloadFile\[mIndex10].jpg
X=4
;Y=([Frame2:Y]+5.42)
W=376.5039
;H=381.579
;Hidden=1
Container=ShapeMask10
PreserveAspectRatio=1
DynamicVariables=1

[GameTitle10]
Meter=String
FontFace=Optimus
FontColor=255,255,255
FontSize=#GameFontSize#
AntiAlias=1
MeasureName=mIndex10
DynamicVariables=1
StringAlign=Center
X=(([Frame10:X])+([Frame10:W]/2))
Y=(20+(#HeightBig#*2)-(#GameFontSize#*3.6))
Container=Container

[ShapeMask11]
Meter=Shape
DynamicVariables=1
;Shape=Rectangle 0,0,374,334.26 | Fill Color 0,255,0
Shape=Rectangle 49,19.37,330.24,294.36 | Fill Color 0,255,0
AntiAlias=1
X=([Frame11:X])
Y=([Frame11:Y])

[Game11]
Meter=Image
ImageName=#CURRENTPATH#DownloadFile\[mIndex11].jpg
X=4
;Y=([Frame2:Y]+5.42)
W=376.5039
;H=381.579
;Hidden=1
Container=ShapeMask11
PreserveAspectRatio=1
DynamicVariables=1

[GameTitle11]
Meter=String
FontFace=Optimus
FontColor=255,255,255
FontSize=#GameFontSize#
AntiAlias=1
MeasureName=mIndex11
DynamicVariables=1
StringAlign=Center
X=(([Frame11:X])+([Frame11:W]/2))
Y=(20+(#HeightBig#*2)-(#GameFontSize#*3.6))
Container=Container

[ShapeMask12]
Meter=Shape
DynamicVariables=1
;Shape=Rectangle 0,0,374,334.26 | Fill Color 0,255,0
Shape=Rectangle 49,19.37,330.24,294.36 | Fill Color 0,255,0
AntiAlias=1
X=([Frame12:X])
Y=([Frame12:Y])

[Game12]
Meter=Image
ImageName=#CURRENTPATH#DownloadFile\[mIndex12].jpg
X=4
;Y=([Frame2:Y]+5.42)
W=376.5039
;H=381.579
;Hidden=1
Container=ShapeMask12
PreserveAspectRatio=1
DynamicVariables=1

[GameTitle12]
Meter=String
FontFace=Optimus
FontColor=255,255,255
FontSize=#GameFontSize#
AntiAlias=1
MeasureName=mIndex12
DynamicVariables=1
StringAlign=Center
X=(([Frame12:X])+([Frame12:W]/2))
Y=(20+(#HeightBig#*2)-(#GameFontSize#*3.6))
Container=Container


;----------------------------------------------------
; FileView Plugin
;----------------------------------------------------

@include5=FileView.ini
;@include6=FileView.ini
User avatar
Krainz
Posts: 186
Joined: May 27th, 2012, 5:16 am

Re: Hotkeys not working after a few strokes and sometimes not obeying conditions

Post by Krainz »

I was running a few tests with this:

Code: Select all

[UIControlUP]
Measure=Calc
DynamicVariables=1
Disabled=1
UpdateDivider=-1
Group=UIControl
Formula=CurrentN
IfCondition=((#CURRENTSECTION# = 1) || (#CURRENTSECTION# = 5)) && (#TOPMENU# = 0)
IfTrueAction=#soundhover#

IfCondition2=((#CURRENTSECTION# = 2) || (#CURRENTSECTION# = 6) || (#CURRENTSECTION# = 7) || (#CURRENTSECTION# = 8)) && (#TOPMENU# = 0)
IfTrueAction2=[!Update]
IfCondition3=((#CURRENTSECTION# = 3) || (#CURRENTSECTION# = 4) || (#CURRENTSECTION# = 9) || (#CURRENTSECTION# = 10) || (#CURRENTSECTION# = 11) || (#CURRENTSECTION# = 12)) && (#TOPMENU# = 0)
IfTrueAction3=#soundhover#
And apparently if I add a

Code: Select all

[!DisableMeasure UIControlUP][!UpdateMeasure UIControlUP][!EnableMeasure UIControlUP][!UpdateMeasure UIControlUP]
To

Code: Select all

[TestUp]
Measure=Plugin
Plugin=HotKey
HotKey=UP
KeyDownAction=[!SetOption "Frame[CurrentN]" ImageName gameframe.png][!SetOption CurrentN Formula "([CurrentN] - (([CurrentN] = 1) || ([CurrentN] = 5) ? 0 : (([CurrentN] = 3) || ([CurrentN] = 4) ? 2 : 4)))"][!UpdateMeasure CurrentN][!SetVariable CurrentBtn "[CurrentN]"][!SetOption "Frame[CurrentN]" ImageName gameframe-highlight.png][!UpdateMeasure MeasureCurrentBtn][!UpdateMeter *][!Redraw]
DynamicVariables=1
Group=Keyboard
Making it

Code: Select all

[TestUp]
Measure=Plugin
Plugin=HotKey
HotKey=UP
KeyDownAction=[!DisableMeasure UIControlUP][!UpdateMeasure UIControlUP][!EnableMeasure UIControlUP][!UpdateMeasure UIControlUP][!SetOption "Frame[CurrentN]" ImageName gameframe.png][!SetOption CurrentN Formula "([CurrentN] - (([CurrentN] = 1) || ([CurrentN] = 5) ? 0 : (([CurrentN] = 3) || ([CurrentN] = 4) ? 2 : 4)))"][!UpdateMeasure CurrentN][!SetVariable CurrentBtn "[CurrentN]"][!SetOption "Frame[CurrentN]" ImageName gameframe-highlight.png][!UpdateMeasure MeasureCurrentBtn][!UpdateMeter *][!Redraw]
DynamicVariables=1
Group=Keyboard
Then apparently the UIControl measure doesn't stop working after a few keystrokes.

Why is that? Why does the measure need to be disabled and then re-enabled?
User avatar
Krainz
Posts: 186
Joined: May 27th, 2012, 5:16 am

Re: Hotkeys not working after a few strokes and sometimes not obeying conditions

Post by Krainz »

This is a zip file for a working GameScreen2: https://www.dropbox.com/s/qv52xogapfiqwfz/GameScreen2.zip?dl=0

Apparently the issue was needing to reset the UIControl measures by disabling and enabling them. Updating them wasn't enough

Any idea why?