Files
NSPanel_HA_Blueprint/nspanel_eu_code/buttonpage02.txt
Chris 6de0c44b14 Nspanel event (#689)
* upd: hmi2txt export

* upd: sync latest dev

* upd: currentpage

* upd: lightsettings

* upd: coversettings

* upd: touchevent

* Fix error preventing long click on button pages

* upd: climate

* upd: lastclick w.o. blueprint

* Upd: Long_press - Lights

* Update: Everything else (#688)

Still a bug with confirmation message and long press button.

* Fix: Notifications

* Fix: Button long press

* Fix: Climate page

* Fix: Indoor temp when no sensor defined

* fix: open climate from homepage triggers mulitple

---------

Co-authored-by: Edward Firmo <94725493+edwardtfn@users.noreply.github.com>
2023-04-18 21:54:04 +02:00

1255 lines
38 KiB
Plaintext

Page buttonpage02
Attributes
ID : 0
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
Width : 480
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 : 116
Events
Preinitialize Event
printh 92
prints "nspanelevent",0
printh 00
prints "{\"page\": \"buttonpage02\", \"component\": \"currentpage\", \"value\": \"pagechange\"}",0
printh 00
printh FF FF FF
vis 255,0
vis button_back,1
Touch Press Event
printh 92
prints "touchevent",0
printh 00
prints "{\"page\": \"buttonpage02\", \"component\": \"touchevent\", \"value\": \"press\"}",0
printh 00
printh FF FF FF
Touch Release Event
printh 92
prints "touchevent",0
printh 00
prints "{\"page\": \"buttonpage02\", \"component\": \"touchevent\", \"value\": \"release\"}",0
printh 00
printh FF FF FF
Variable (string) lastclick
Attributes
ID : 45
Scope : local
Text :
Max. Text Size: 100
Text button01text
Attributes
ID : 4
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 27
y coordinate : 116
Width : 80
Height : 20
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 0
Back. Color : 0
Font Color : 0
Horizontal Alignment: center
Vertical Alignment : center
Input Type : character
Text :
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text button01bri
Attributes
ID : 5
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 58
y coordinate : 55
Width : 50
Height : 30
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 2
Back. Color : 0
Font Color : 0
Horizontal Alignment: right
Vertical Alignment : center
Input Type : character
Text :
Max. Text Size : 4
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text button02text
Attributes
ID : 7
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 134
y coordinate : 116
Width : 80
Height : 20
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 0
Back. Color : 0
Font Color : 0
Horizontal Alignment: center
Vertical Alignment : center
Input Type : character
Text :
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text button02bri
Attributes
ID : 8
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 165
y coordinate : 55
Width : 50
Height : 30
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 2
Back. Color : 0
Font Color : 0
Horizontal Alignment: right
Vertical Alignment : center
Input Type : character
Text :
Max. Text Size : 4
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text button03text
Attributes
ID : 10
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 241
y coordinate : 116
Width : 80
Height : 20
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 0
Back. Color : 0
Font Color : 0
Horizontal Alignment: center
Vertical Alignment : center
Input Type : character
Text :
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text button03bri
Attributes
ID : 11
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 272
y coordinate : 55
Width : 50
Height : 30
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 2
Back. Color : 0
Font Color : 0
Horizontal Alignment: right
Vertical Alignment : center
Input Type : character
Text :
Max. Text Size : 4
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text button04text
Attributes
ID : 13
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 348
y coordinate : 116
Width : 80
Height : 20
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 0
Back. Color : 0
Font Color : 0
Horizontal Alignment: center
Vertical Alignment : center
Input Type : character
Text :
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text button04bri
Attributes
ID : 14
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 379
y coordinate : 55
Width : 50
Height : 30
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 2
Back. Color : 0
Font Color : 0
Horizontal Alignment: right
Vertical Alignment : center
Input Type : character
Text :
Max. Text Size : 4
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text button05text
Attributes
ID : 16
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 27
y coordinate : 246
Width : 80
Height : 20
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 0
Back. Color : 0
Font Color : 0
Horizontal Alignment: center
Vertical Alignment : center
Input Type : character
Text :
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text button05bri
Attributes
ID : 17
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 58
y coordinate : 186
Width : 50
Height : 30
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 2
Back. Color : 0
Font Color : 0
Horizontal Alignment: right
Vertical Alignment : center
Input Type : character
Text :
Max. Text Size : 4
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text button06text
Attributes
ID : 19
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 134
y coordinate : 246
Width : 80
Height : 20
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 0
Back. Color : 0
Font Color : 0
Horizontal Alignment: center
Vertical Alignment : center
Input Type : character
Text :
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text button06bri
Attributes
ID : 20
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 165
y coordinate : 186
Width : 50
Height : 30
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 2
Back. Color : 0
Font Color : 0
Horizontal Alignment: right
Vertical Alignment : center
Input Type : character
Text :
Max. Text Size : 4
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text button07text
Attributes
ID : 22
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 241
y coordinate : 246
Width : 80
Height : 20
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 0
Back. Color : 0
Font Color : 0
Horizontal Alignment: center
Vertical Alignment : center
Input Type : character
Text :
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text button07bri
Attributes
ID : 23
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 272
y coordinate : 186
Width : 50
Height : 30
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 2
Back. Color : 0
Font Color : 0
Horizontal Alignment: right
Vertical Alignment : center
Input Type : character
Text :
Max. Text Size : 4
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text button08text
Attributes
ID : 25
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 348
y coordinate : 246
Width : 80
Height : 20
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 0
Back. Color : 0
Font Color : 0
Horizontal Alignment: center
Vertical Alignment : center
Input Type : character
Text :
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text button08bri
Attributes
ID : 26
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 379
y coordinate : 186
Width : 50
Height : 30
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 2
Back. Color : 0
Font Color : 0
Horizontal Alignment: right
Vertical Alignment : center
Input Type : character
Text :
Max. Text Size : 4
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text bpage02_label
Attributes
ID : 28
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 10
y coordinate : 0
Width : 300
Height : 30
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 3
Back. Color : 0
Font Color : 50712
Horizontal Alignment: left
Vertical Alignment : bottom
Input Type : character
Text :
Max. Text Size : 30
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text button01icon
Attributes
ID : 29
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 23
y coordinate : 55
Width : 35
Height : 35
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 8
Back. Color : 0
Font Color : 0
Horizontal Alignment: center
Vertical Alignment : center
Input Type : character
Text :
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text button02icon
Attributes
ID : 30
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 130
y coordinate : 55
Width : 35
Height : 35
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 8
Back. Color : 0
Font Color : 0
Horizontal Alignment: center
Vertical Alignment : center
Input Type : character
Text :
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text button03icon
Attributes
ID : 31
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 237
y coordinate : 55
Width : 35
Height : 35
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 8
Back. Color : 0
Font Color : 0
Horizontal Alignment: center
Vertical Alignment : center
Input Type : character
Text :
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text button04icon
Attributes
ID : 32
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 344
y coordinate : 55
Width : 35
Height : 35
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 8
Back. Color : 0
Font Color : 0
Horizontal Alignment: center
Vertical Alignment : center
Input Type : character
Text :
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text button05icon
Attributes
ID : 33
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 23
y coordinate : 186
Width : 35
Height : 35
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 8
Back. Color : 0
Font Color : 0
Horizontal Alignment: center
Vertical Alignment : center
Input Type : character
Text :
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text button06icon
Attributes
ID : 34
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 130
y coordinate : 186
Width : 35
Height : 35
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 8
Back. Color : 0
Font Color : 0
Horizontal Alignment: center
Vertical Alignment : center
Input Type : character
Text :
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text button07icon
Attributes
ID : 35
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 237
y coordinate : 186
Width : 35
Height : 35
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 8
Back. Color : 0
Font Color : 0
Horizontal Alignment: center
Vertical Alignment : center
Input Type : character
Text :
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Text button08icon
Attributes
ID : 36
Scope : local
Dragging : 0
Send Component ID : disabled
Opacity : 127
x coordinate : 344
y coordinate : 186
Width : 35
Height : 35
Effect : load
Effect Priority : 0
Effect Time : 300
Fill : solid color
Style : flat
Associated Keyboard : none
Font ID : 8
Back. Color : 0
Font Color : 0
Horizontal Alignment: center
Vertical Alignment : center
Input Type : character
Text :
Max. Text Size : 10
Word wrap : disabled
Horizontal Spacing : 0
Vertical Spacing : 0
Picture button01pic
Attributes
ID : 3
Scope : local
Dragging : 0
Send Component ID: disabled
Opacity : 127
x coordinate : 17
y coordinate : 45
Width : 100
Height : 100
Effect : load
Effect Priority : 0
Effect Time : 300
Picture ID : 1
Picture button02pic
Attributes
ID : 6
Scope : local
Dragging : 0
Send Component ID: disabled
Opacity : 127
x coordinate : 124
y coordinate : 45
Width : 100
Height : 100
Effect : load
Effect Priority : 0
Effect Time : 300
Picture ID : 1
Picture button03pic
Attributes
ID : 9
Scope : local
Dragging : 0
Send Component ID: disabled
Opacity : 127
x coordinate : 231
y coordinate : 45
Width : 100
Height : 100
Effect : load
Effect Priority : 0
Effect Time : 300
Picture ID : 1
Picture button04pic
Attributes
ID : 12
Scope : local
Dragging : 0
Send Component ID: disabled
Opacity : 127
x coordinate : 338
y coordinate : 45
Width : 100
Height : 100
Effect : load
Effect Priority : 0
Effect Time : 300
Picture ID : 1
Picture button05pic
Attributes
ID : 15
Scope : local
Dragging : 0
Send Component ID: disabled
Opacity : 127
x coordinate : 17
y coordinate : 176
Width : 100
Height : 100
Effect : load
Effect Priority : 0
Effect Time : 300
Picture ID : 1
Picture button06pic
Attributes
ID : 18
Scope : local
Dragging : 0
Send Component ID: disabled
Opacity : 127
x coordinate : 124
y coordinate : 176
Width : 100
Height : 100
Effect : load
Effect Priority : 0
Effect Time : 300
Picture ID : 1
Picture button07pic
Attributes
ID : 21
Scope : local
Dragging : 0
Send Component ID: disabled
Opacity : 127
x coordinate : 231
y coordinate : 176
Width : 100
Height : 100
Effect : load
Effect Priority : 0
Effect Time : 300
Picture ID : 1
Picture button08pic
Attributes
ID : 24
Scope : local
Dragging : 0
Send Component ID: disabled
Opacity : 127
x coordinate : 338
y coordinate : 176
Width : 100
Height : 100
Effect : load
Effect Priority : 0
Effect Time : 300
Picture ID : 1
Hotspot button_back
Attributes
ID : 27
Scope : local
Dragging : 0
Send Component ID: disabled
Opacity : 127
x coordinate : 387
y coordinate : 0
Width : 60
Height : 35
Effect : load
Effect Priority : 0
Effect Time : 300
Events
Touch Press Event
page home
Hotspot button01
Attributes
ID : 37
Scope : local
Dragging : 0
Send Component ID: on press and release
Opacity : 127
x coordinate : 17
y coordinate : 45
Width : 100
Height : 100
Effect : load
Effect Priority : 0
Effect Time : 300
Events
Touch Press Event
lastclick.txt="{\"page\": \"buttonpage02\", \"component\": \"button01\", \"value\": \"press\"}"
printh 92
prints "nspanelevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Touch Release Event
lastclick.txt="{\"page\": \"buttonpage02\", \"component\": \"button01\", \"value\": \"release\"}"
printh 92
prints "nspanelevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Hotspot button02
Attributes
ID : 38
Scope : local
Dragging : 0
Send Component ID: on press and release
Opacity : 127
x coordinate : 124
y coordinate : 45
Width : 100
Height : 100
Effect : load
Effect Priority : 0
Effect Time : 300
Events
Touch Press Event
lastclick.txt="{\"page\": \"buttonpage02\", \"component\": \"button02\", \"value\": \"press\"}"
printh 92
prints "nspanelevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Touch Release Event
lastclick.txt="{\"page\": \"buttonpage02\", \"component\": \"button02\", \"value\": \"release\"}"
printh 92
prints "nspanelevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Hotspot button03
Attributes
ID : 39
Scope : local
Dragging : 0
Send Component ID: on press and release
Opacity : 127
x coordinate : 231
y coordinate : 45
Width : 100
Height : 100
Effect : load
Effect Priority : 0
Effect Time : 300
Events
Touch Press Event
lastclick.txt="{\"page\": \"buttonpage02\", \"component\": \"button03\", \"value\": \"press\"}"
printh 92
prints "nspanelevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Touch Release Event
lastclick.txt="{\"page\": \"buttonpage02\", \"component\": \"button03\", \"value\": \"release\"}"
printh 92
prints "nspanelevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Hotspot button04
Attributes
ID : 40
Scope : local
Dragging : 0
Send Component ID: on press and release
Opacity : 127
x coordinate : 338
y coordinate : 45
Width : 100
Height : 100
Effect : load
Effect Priority : 0
Effect Time : 300
Events
Touch Press Event
lastclick.txt="{\"page\": \"buttonpage02\", \"component\": \"button04\", \"value\": \"press\"}"
printh 92
prints "nspanelevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Touch Release Event
lastclick.txt="{\"page\": \"buttonpage02\", \"component\": \"button04\", \"value\": \"release\"}"
printh 92
prints "nspanelevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Hotspot button05
Attributes
ID : 41
Scope : local
Dragging : 0
Send Component ID: on press and release
Opacity : 127
x coordinate : 17
y coordinate : 176
Width : 100
Height : 100
Effect : load
Effect Priority : 0
Effect Time : 300
Events
Touch Press Event
lastclick.txt="{\"page\": \"buttonpage02\", \"component\": \"button05\", \"value\": \"press\"}"
printh 92
prints "nspanelevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Touch Release Event
lastclick.txt="{\"page\": \"buttonpage02\", \"component\": \"button05\", \"value\": \"release\"}"
printh 92
prints "nspanelevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Hotspot button06
Attributes
ID : 42
Scope : local
Dragging : 0
Send Component ID: on press and release
Opacity : 127
x coordinate : 124
y coordinate : 176
Width : 100
Height : 100
Effect : load
Effect Priority : 0
Effect Time : 300
Events
Touch Press Event
lastclick.txt="{\"page\": \"buttonpage02\", \"component\": \"button06\", \"value\": \"press\"}"
printh 92
prints "nspanelevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Touch Release Event
lastclick.txt="{\"page\": \"buttonpage02\", \"component\": \"button06\", \"value\": \"release\"}"
printh 92
prints "nspanelevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Hotspot button07
Attributes
ID : 43
Scope : local
Dragging : 0
Send Component ID: on press and release
Opacity : 127
x coordinate : 231
y coordinate : 176
Width : 100
Height : 100
Effect : load
Effect Priority : 0
Effect Time : 300
Events
Touch Press Event
lastclick.txt="{\"page\": \"buttonpage02\", \"component\": \"button07\", \"value\": \"press\"}"
printh 92
prints "nspanelevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Touch Release Event
lastclick.txt="{\"page\": \"buttonpage02\", \"component\": \"button07\", \"value\": \"release\"}"
printh 92
prints "nspanelevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Hotspot button08
Attributes
ID : 44
Scope : local
Dragging : 0
Send Component ID: on press and release
Opacity : 127
x coordinate : 338
y coordinate : 176
Width : 100
Height : 100
Effect : load
Effect Priority : 0
Effect Time : 300
Events
Touch Press Event
lastclick.txt="{\"page\": \"buttonpage02\", \"component\": \"button08\", \"value\": \"press\"}"
printh 92
prints "nspanelevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Touch Release Event
lastclick.txt="{\"page\": \"buttonpage02\", \"component\": \"button08\", \"value\": \"release\"}"
printh 92
prints "nspanelevent",0
printh 00
prints lastclick.txt,0
printh 00
printh FF FF FF
Timer swipestore
Attributes
ID : 2
Scope : local
Period (ms): 50
Enabled : no
Events
Timer Event
swipex=tch0
swipey=tch1
TouchCap swipe
Attributes
ID : 1
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 buttonpage01
}
// Right to Left
swipec2=0-swipedx
if(swipec<swipec2)
{
page buttonpage03
}
}
// 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 home
}
}