Page settings
    Attributes
        ID                 : 0
        Scope              : local
        Dragging           : 0
        Send Component ID  : disabled
        Opacity            : 127
        Width              : 320
        Effect             : load
        Effect Priority    : 0
        Effect Time        : 300
        Locked             : no
        Swide up page ID   : disabled
        Swide down page ID : disabled
        Swide left page ID : disabled
        Swide right page ID: disabled
        Fill               : picture
        Back. Picture ID   : 124
    
    Events
        Preinitialize Event
            printh 92
            prints "nspanelevent",0
            printh 00
            prints "{\"page\": \"settings\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0
            printh 00
            printh FF FF FF
        
        Touch Press Event
            printh 92
            prints "touchevent",0
            printh 00
            prints "{\"page\": \"settings\", \"component\": \"touchevent\", \"value\": \"press\"}",0
            printh 00
            printh FF FF FF
        
        Touch Release Event
            printh 92
            prints "touchevent",0
            printh 00
            prints "{\"page\": \"settings\", \"component\": \"touchevent\", \"value\": \"release\"}",0
            printh 00
            printh FF FF FF
        
Text a03
    Attributes
        ID                  : 3
        Scope               : global
        Dragging            : 0
        Send Component ID   : disabled
        Opacity             : 127
        x coordinate        : 237
        y coordinate        : 232
        Width               : 40
        Height              : 21
        Effect              : load
        Effect Priority     : 0
        Effect Time         : 300
        Fill                : solid color
        Style               : flat
        Associated Keyboard : none
        Font ID             : 10
        Back. Color         : 0
        Font Color          : 65535
        Horizontal Alignment: right
        Vertical Alignment  : bottom
        Input Type          : character
        Text                : 80
        Max. Text Size      : 3
        Word wrap           : disabled
        Horizontal Spacing  : 0
        Vertical Spacing    : 0
    
Text a04
    Attributes
        ID                  : 4
        Scope               : global
        Dragging            : 0
        Send Component ID   : disabled
        Opacity             : 127
        x coordinate        : 236
        y coordinate        : 333
        Width               : 40
        Height              : 21
        Effect              : load
        Effect Priority     : 0
        Effect Time         : 300
        Fill                : solid color
        Style               : flat
        Associated Keyboard : none
        Font ID             : 10
        Back. Color         : 0
        Font Color          : 65535
        Horizontal Alignment: right
        Vertical Alignment  : bottom
        Input Type          : character
        Text                : 10
        Max. Text Size      : 3
        Word wrap           : disabled
        Horizontal Spacing  : 0
        Vertical Spacing    : 0
    
Text a06
    Attributes
        ID                  : 5
        Scope               : local
        Dragging            : 0
        Send Component ID   : disabled
        Opacity             : 127
        x coordinate        : 20
        y coordinate        : 58
        Width               : 80
        Height              : 40
        Effect              : load
        Effect Priority     : 0
        Effect Time         : 300
        Fill                : solid color
        Style               : flat
        Associated Keyboard : none
        Font ID             : 10
        Back. Color         : 0
        Font Color          : 65535
        Horizontal Alignment: left
        Vertical Alignment  : center
        Input Type          : character
        Text                : Reboot
        Max. Text Size      : 6
        Word wrap           : disabled
        Horizontal Spacing  : 0
        Vertical Spacing    : 0
    
Text a07
    Attributes
        ID                  : 6
        Scope               : local
        Dragging            : 0
        Send Component ID   : disabled
        Opacity             : 127
        x coordinate        : 20
        y coordinate        : 106
        Width               : 80
        Height              : 40
        Effect              : load
        Effect Priority     : 0
        Effect Time         : 300
        Fill                : solid color
        Style               : flat
        Associated Keyboard : none
        Font ID             : 10
        Back. Color         : 0
        Font Color          : 65535
        Horizontal Alignment: left
        Vertical Alignment  : center
        Input Type          : character
        Text                : Sleep
        Max. Text Size      : 5
        Word wrap           : disabled
        Horizontal Spacing  : 0
        Vertical Spacing    : 0
    
Text a08
    Attributes
        ID                  : 7
        Scope               : local
        Dragging            : 0
        Send Component ID   : disabled
        Opacity             : 127
        x coordinate        : 18
        y coordinate        : 225
        Width               : 85
        Height              : 40
        Effect              : load
        Effect Priority     : 0
        Effect Time         : 300
        Fill                : solid color
        Style               : flat
        Associated Keyboard : none
        Font ID             : 9
        Back. Color         : 0
        Font Color          : 65535
        Horizontal Alignment: left
        Vertical Alignment  : center
        Input Type          : character
        Text                : Brightness
        Max. Text Size      : 10
        Word wrap           : disabled
        Horizontal Spacing  : 0
        Vertical Spacing    : 0
    
Text a09
    Attributes
        ID                  : 8
        Scope               : local
        Dragging            : 0
        Send Component ID   : disabled
        Opacity             : 127
        x coordinate        : 18
        y coordinate        : 325
        Width               : 85
        Height              : 40
        Effect              : load
        Effect Priority     : 0
        Effect Time         : 300
        Fill                : solid color
        Style               : flat
        Associated Keyboard : none
        Font ID             : 9
        Back. Color         : 0
        Font Color          : 65535
        Horizontal Alignment: left
        Vertical Alignment  : center
        Input Type          : character
        Text                : Dimming
        Max. Text Size      : 7
        Word wrap           : disabled
        Horizontal Spacing  : 0
        Vertical Spacing    : 0
    
Picture settings_exit
    Attributes
        ID               : 9
        Scope            : local
        Dragging         : 0
        Send Component ID: disabled
        Opacity          : 127
        x coordinate     : 289
        y coordinate     : 8
        Width            : 25
        Height           : 25
        Effect           : load
        Effect Priority  : 0
        Effect Time      : 300
        Picture ID       : 56
    
Slider brightslider
    Attributes
        ID                             : 1
        Scope                          : global
        Dragging                       : 0
        Send Component ID              : on press and release
        Opacity                        : 127
        x coordinate                   : 46
        y coordinate                   : 273
        Width                          : 227
        Height                         : 32
        Effect                         : load
        Effect Priority                : 0
        Effect Time                    : 300
        Direction                      : horizontal
        Fill                           : crop image
        Cursor width                   : auto
        Cursor height                  : 255
        Cropped Back. Picture ID       : 124
        Cropped Slided Back. Picture ID: 125
        Position                       : 80
        Upper range limit              : 100
        Lower range limit              : 0
    
    Events
        Touch Release Event
            printh 91
            prints "brightslider",0
            printh 00
            prints brightslider.val,0
            printh FF FF FF
        
Slider dimslider
    Attributes
        ID                             : 2
        Scope                          : global
        Dragging                       : 0
        Send Component ID              : on press and release
        Opacity                        : 127
        x coordinate                   : 46
        y coordinate                   : 374
        Width                          : 227
        Height                         : 32
        Effect                         : load
        Effect Priority                : 0
        Effect Time                    : 300
        Direction                      : horizontal
        Fill                           : crop image
        Cursor width                   : auto
        Cursor height                  : 255
        Cropped Back. Picture ID       : 124
        Cropped Slided Back. Picture ID: 125
        Position                       : 20
        Upper range limit              : 100
        Lower range limit              : 0
    
    Events
        Touch Release Event
            printh 91
            prints "dimslider",0
            printh 00
            prints dimslider.val,0
            printh FF FF FF
        
Dual-state Button bt0
    Attributes
        ID                                  : 13
        Scope                               : local
        Dragging                            : 0
        Send Component ID                   : on press and release
        Opacity                             : 127
        x coordinate                        : 117
        y coordinate                        : 59
        Width                               : 80
        Height                              : 40
        Effect                              : load
        Effect Priority                     : 0
        Effect Time                         : 300
        Fill                                : crop image
        Font ID                             : 9
        Cropped Back. Picture ID (Unpressed): 124
        Back. Picture ID (Pressed)          : 65535
        Cropped Back. Picture ID (Pressed)  : 125
        Horizontal Alignment                : center
        Vertical Alignment                  : center
        State                               : unpressed
        Text                                : 
        Max. Text Size                      : 0
        Word wrap                           : disabled
        Horizontal Spacing                  : 0
        Vertical Spacing                    : 0
    
Dual-state Button bt1
    Attributes
        ID                                  : 14
        Scope                               : global
        Dragging                            : 0
        Send Component ID                   : on press and release
        Opacity                             : 127
        x coordinate                        : 113
        y coordinate                        : 105
        Width                               : 80
        Height                              : 40
        Effect                              : load
        Effect Priority                     : 0
        Effect Time                         : 300
        Fill                                : crop image
        Font ID                             : 9
        Cropped Back. Picture ID (Unpressed): 124
        Back. Picture ID (Pressed)          : 65535
        Cropped Back. Picture ID (Pressed)  : 125
        Horizontal Alignment                : center
        Vertical Alignment                  : center
        State                               : unpressed
        Text                                : 
        Max. Text Size                      : 0
        Word wrap                           : disabled
        Horizontal Spacing                  : 0
        Vertical Spacing                    : 0
    
Hotspot setings_back
    Attributes
        ID               : 10
        Scope            : local
        Dragging         : 0
        Send Component ID: disabled
        Opacity          : 127
        x coordinate     : 260
        y coordinate     : 1
        Width            : 60
        Height           : 60
        Effect           : load
        Effect Priority  : 0
        Effect Time      : 300
    
    Events
        Touch Press Event
            page home
        
Timer swipestore
    Attributes
        ID         : 11
        Scope      : local
        Period (ms): 50
        Enabled    : no
    
    Events
        Timer Event
            swipex=tch0
            swipey=tch1
        
TouchCap swipe
    Attributes
        ID   : 12
        Scope: local
        Value: 0
    
    Events
        Touch Press Event
            swipestore.en=1 // Start swipestore timer
        
        Touch Release Event
            swipestore.en=0
            // Touch has ended, x
            if(tch0==0)
            {
                swipec=swipex-tch2
                // From Left to Right
                if(swipec>swipedx)
                {
                    //page
                }
                // Right to Left
                swipec2=0-swipedx
                if(swipec<swipec2)
                {
                    //page
                }
            }
            // Touch has ended, y
            if(tch1==0)
            {
                swipec=swipey-tch3
                // From Up to Down
                if(swipec>100)
                {
                    //page
                }
                // Down to Up
                swipec2=0-swipedy
                if(swipec<-100)
                {
                    //page
                }
            }
        
