New "Confirm" pop-up
This also removes the sensor "NSPanel Event"
This commit is contained in:
@@ -52,6 +52,68 @@ Variable (string) lastclick
|
||||
Text :
|
||||
Max. Text Size: 100
|
||||
|
||||
Variable (string) click_comp
|
||||
Attributes
|
||||
ID : 47
|
||||
Scope : local
|
||||
Text :
|
||||
Max. Text Size: 8
|
||||
|
||||
Variable (string) page_name
|
||||
Attributes
|
||||
ID : 49
|
||||
Scope : local
|
||||
Text : buttonpage01
|
||||
Max. Text Size: 12
|
||||
|
||||
Variable (int32) button01conf
|
||||
Attributes
|
||||
ID : 50
|
||||
Scope: local
|
||||
Value: 0
|
||||
|
||||
Variable (int32) button02conf
|
||||
Attributes
|
||||
ID : 51
|
||||
Scope: local
|
||||
Value: 0
|
||||
|
||||
Variable (int32) button03conf
|
||||
Attributes
|
||||
ID : 52
|
||||
Scope: local
|
||||
Value: 0
|
||||
|
||||
Variable (int32) button04conf
|
||||
Attributes
|
||||
ID : 53
|
||||
Scope: local
|
||||
Value: 0
|
||||
|
||||
Variable (int32) button05conf
|
||||
Attributes
|
||||
ID : 54
|
||||
Scope: local
|
||||
Value: 0
|
||||
|
||||
Variable (int32) button06conf
|
||||
Attributes
|
||||
ID : 55
|
||||
Scope: local
|
||||
Value: 0
|
||||
|
||||
Variable (int32) button07conf
|
||||
Attributes
|
||||
ID : 56
|
||||
Scope: local
|
||||
Value: 0
|
||||
|
||||
Variable (int32) button08conf
|
||||
Attributes
|
||||
ID : 57
|
||||
Scope: local
|
||||
Value: 0
|
||||
|
||||
Text button01text
|
||||
Attributes
|
||||
ID : 4
|
||||
@@ -387,208 +449,280 @@ Hotspot button01
|
||||
ID : 36
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID: on press and release
|
||||
Send Component ID: disabled
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
lastclick.txt="{\"page\": \"buttonpage01\", \"component\": \"button01\", \"value\": \"press\"}"
|
||||
printh 92
|
||||
prints "nspanelevent",0
|
||||
printh 00
|
||||
prints lastclick.txt,0
|
||||
printh 00
|
||||
printh FF FF FF
|
||||
click_comp.txt="button01"
|
||||
click_timer.en=1
|
||||
|
||||
Touch Release Event
|
||||
lastclick.txt="{\"page\": \"buttonpage01\", \"component\": \"button01\", \"value\": \"release\"}"
|
||||
printh 92
|
||||
prints "nspanelevent",0
|
||||
printh 00
|
||||
prints lastclick.txt,0
|
||||
printh 00
|
||||
printh FF FF FF
|
||||
if(click_timer.en==1)
|
||||
{
|
||||
click_timer.en=0
|
||||
if(button01conf.val==1)
|
||||
{
|
||||
confirm.body.txt=button01text.txt
|
||||
confirm.page_id.val=dp
|
||||
confirm.page_name.txt=page_name.txt
|
||||
confirm.component.txt=click_comp.txt
|
||||
page confirm
|
||||
}else
|
||||
{
|
||||
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
|
||||
printh 92
|
||||
prints "localevent",0
|
||||
printh 00
|
||||
prints lastclick.txt,0
|
||||
printh 00
|
||||
printh FF FF FF
|
||||
}
|
||||
}
|
||||
|
||||
Hotspot button02
|
||||
Attributes
|
||||
ID : 37
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID: on press and release
|
||||
Send Component ID: disabled
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
lastclick.txt="{\"page\": \"buttonpage01\", \"component\": \"button02\", \"value\": \"press\"}"
|
||||
printh 92
|
||||
prints "nspanelevent",0
|
||||
printh 00
|
||||
prints lastclick.txt,0
|
||||
printh 00
|
||||
printh FF FF FF
|
||||
click_comp.txt="button02"
|
||||
click_timer.en=1
|
||||
|
||||
Touch Release Event
|
||||
lastclick.txt="{\"page\": \"buttonpage01\", \"component\": \"button02\", \"value\": \"release\"}"
|
||||
printh 92
|
||||
prints "nspanelevent",0
|
||||
printh 00
|
||||
prints lastclick.txt,0
|
||||
printh 00
|
||||
printh FF FF FF
|
||||
if(click_timer.en==1)
|
||||
{
|
||||
click_timer.en=0
|
||||
if(button02conf.val==1)
|
||||
{
|
||||
confirm.body.txt=button02text.txt
|
||||
confirm.page_id.val=dp
|
||||
confirm.page_name.txt=page_name.txt
|
||||
confirm.component.txt=click_comp.txt
|
||||
page confirm
|
||||
}else
|
||||
{
|
||||
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
|
||||
printh 92
|
||||
prints "localevent",0
|
||||
printh 00
|
||||
prints lastclick.txt,0
|
||||
printh 00
|
||||
printh FF FF FF
|
||||
}
|
||||
}
|
||||
|
||||
Hotspot button03
|
||||
Attributes
|
||||
ID : 38
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID: on press and release
|
||||
Send Component ID: disabled
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
lastclick.txt="{\"page\": \"buttonpage01\", \"component\": \"button03\", \"value\": \"press\"}"
|
||||
printh 92
|
||||
prints "nspanelevent",0
|
||||
printh 00
|
||||
prints lastclick.txt,0
|
||||
printh 00
|
||||
printh FF FF FF
|
||||
click_comp.txt="button03"
|
||||
click_timer.en=1
|
||||
|
||||
Touch Release Event
|
||||
lastclick.txt="{\"page\": \"buttonpage01\", \"component\": \"button03\", \"value\": \"release\"}"
|
||||
printh 92
|
||||
prints "nspanelevent",0
|
||||
printh 00
|
||||
prints lastclick.txt,0
|
||||
printh 00
|
||||
printh FF FF FF
|
||||
if(click_timer.en==1)
|
||||
{
|
||||
click_timer.en=0
|
||||
if(button03conf.val==1)
|
||||
{
|
||||
confirm.body.txt=button03text.txt
|
||||
confirm.page_id.val=dp
|
||||
confirm.page_name.txt=page_name.txt
|
||||
confirm.component.txt=click_comp.txt
|
||||
page confirm
|
||||
}else
|
||||
{
|
||||
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
|
||||
printh 92
|
||||
prints "localevent",0
|
||||
printh 00
|
||||
prints lastclick.txt,0
|
||||
printh 00
|
||||
printh FF FF FF
|
||||
}
|
||||
}
|
||||
|
||||
Hotspot button04
|
||||
Attributes
|
||||
ID : 39
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID: on press and release
|
||||
Send Component ID: disabled
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
lastclick.txt="{\"page\": \"buttonpage01\", \"component\": \"button04\", \"value\": \"press\"}"
|
||||
printh 92
|
||||
prints "nspanelevent",0
|
||||
printh 00
|
||||
prints lastclick.txt,0
|
||||
printh 00
|
||||
printh FF FF FF
|
||||
click_comp.txt="button04"
|
||||
click_timer.en=1
|
||||
|
||||
Touch Release Event
|
||||
lastclick.txt="{\"page\": \"buttonpage01\", \"component\": \"button04\", \"value\": \"release\"}"
|
||||
printh 92
|
||||
prints "nspanelevent",0
|
||||
printh 00
|
||||
prints lastclick.txt,0
|
||||
printh 00
|
||||
printh FF FF FF
|
||||
if(click_timer.en==1)
|
||||
{
|
||||
click_timer.en=0
|
||||
if(button04conf.val==1)
|
||||
{
|
||||
confirm.body.txt=button04text.txt
|
||||
confirm.page_id.val=dp
|
||||
confirm.page_name.txt=page_name.txt
|
||||
confirm.component.txt=click_comp.txt
|
||||
page confirm
|
||||
}else
|
||||
{
|
||||
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
|
||||
printh 92
|
||||
prints "localevent",0
|
||||
printh 00
|
||||
prints lastclick.txt,0
|
||||
printh 00
|
||||
printh FF FF FF
|
||||
}
|
||||
}
|
||||
|
||||
Hotspot button05
|
||||
Attributes
|
||||
ID : 40
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID: on press and release
|
||||
Send Component ID: disabled
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
lastclick.txt="{\"page\": \"buttonpage01\", \"component\": \"button05\", \"value\": \"press\"}"
|
||||
printh 92
|
||||
prints "nspanelevent",0
|
||||
printh 00
|
||||
prints lastclick.txt,0
|
||||
printh 00
|
||||
printh FF FF FF
|
||||
click_comp.txt="button05"
|
||||
click_timer.en=1
|
||||
|
||||
Touch Release Event
|
||||
lastclick.txt="{\"page\": \"buttonpage01\", \"component\": \"button05\", \"value\": \"release\"}"
|
||||
printh 92
|
||||
prints "nspanelevent",0
|
||||
printh 00
|
||||
prints lastclick.txt,0
|
||||
printh 00
|
||||
printh FF FF FF
|
||||
if(click_timer.en==1)
|
||||
{
|
||||
click_timer.en=0
|
||||
if(button05conf.val==1)
|
||||
{
|
||||
confirm.body.txt=button05text.txt
|
||||
confirm.page_id.val=dp
|
||||
confirm.page_name.txt=page_name.txt
|
||||
confirm.component.txt=click_comp.txt
|
||||
page confirm
|
||||
}else
|
||||
{
|
||||
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
|
||||
printh 92
|
||||
prints "localevent",0
|
||||
printh 00
|
||||
prints lastclick.txt,0
|
||||
printh 00
|
||||
printh FF FF FF
|
||||
}
|
||||
}
|
||||
|
||||
Hotspot button06
|
||||
Attributes
|
||||
ID : 41
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID: on press and release
|
||||
Send Component ID: disabled
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
lastclick.txt="{\"page\": \"buttonpage01\", \"component\": \"button06\", \"value\": \"press\"}"
|
||||
printh 92
|
||||
prints "nspanelevent",0
|
||||
printh 00
|
||||
prints lastclick.txt,0
|
||||
printh 00
|
||||
printh FF FF FF
|
||||
click_comp.txt="button06"
|
||||
click_timer.en=1
|
||||
|
||||
Touch Release Event
|
||||
lastclick.txt="{\"page\": \"buttonpage01\", \"component\": \"button06\", \"value\": \"release\"}"
|
||||
printh 92
|
||||
prints "nspanelevent",0
|
||||
printh 00
|
||||
prints lastclick.txt,0
|
||||
printh 00
|
||||
printh FF FF FF
|
||||
if(click_timer.en==1)
|
||||
{
|
||||
click_timer.en=0
|
||||
if(button06conf.val==1)
|
||||
{
|
||||
confirm.body.txt=button06text.txt
|
||||
confirm.page_id.val=dp
|
||||
confirm.page_name.txt=page_name.txt
|
||||
confirm.component.txt=click_comp.txt
|
||||
page confirm
|
||||
}else
|
||||
{
|
||||
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
|
||||
printh 92
|
||||
prints "localevent",0
|
||||
printh 00
|
||||
prints lastclick.txt,0
|
||||
printh 00
|
||||
printh FF FF FF
|
||||
}
|
||||
}
|
||||
|
||||
Hotspot button07
|
||||
Attributes
|
||||
ID : 42
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID: on press and release
|
||||
Send Component ID: disabled
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
lastclick.txt="{\"page\": \"buttonpage01\", \"component\": \"button07\", \"value\": \"press\"}"
|
||||
printh 92
|
||||
prints "nspanelevent",0
|
||||
printh 00
|
||||
prints lastclick.txt,0
|
||||
printh 00
|
||||
printh FF FF FF
|
||||
click_comp.txt="button07"
|
||||
click_timer.en=1
|
||||
|
||||
Touch Release Event
|
||||
lastclick.txt="{\"page\": \"buttonpage01\", \"component\": \"button07\", \"value\": \"release\"}"
|
||||
printh 92
|
||||
prints "nspanelevent",0
|
||||
printh 00
|
||||
prints lastclick.txt,0
|
||||
printh 00
|
||||
printh FF FF FF
|
||||
if(click_timer.en==1)
|
||||
{
|
||||
click_timer.en=0
|
||||
if(button07conf.val==1)
|
||||
{
|
||||
confirm.body.txt=button07text.txt
|
||||
confirm.page_id.val=dp
|
||||
confirm.page_name.txt=page_name.txt
|
||||
confirm.component.txt=click_comp.txt
|
||||
page confirm
|
||||
}else
|
||||
{
|
||||
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
|
||||
printh 92
|
||||
prints "localevent",0
|
||||
printh 00
|
||||
prints lastclick.txt,0
|
||||
printh 00
|
||||
printh FF FF FF
|
||||
}
|
||||
}
|
||||
|
||||
Hotspot button08
|
||||
Attributes
|
||||
ID : 43
|
||||
Scope : local
|
||||
Dragging : 0
|
||||
Send Component ID: on press and release
|
||||
Send Component ID: disabled
|
||||
|
||||
Events
|
||||
Touch Press Event
|
||||
lastclick.txt="{\"page\": \"buttonpage01\", \"component\": \"button08\", \"value\": \"press\"}"
|
||||
printh 92
|
||||
prints "nspanelevent",0
|
||||
printh 00
|
||||
prints lastclick.txt,0
|
||||
printh 00
|
||||
printh FF FF FF
|
||||
click_comp.txt="button08"
|
||||
click_timer.en=1
|
||||
|
||||
Touch Release Event
|
||||
lastclick.txt="{\"page\": \"buttonpage01\", \"component\": \"button08\", \"value\": \"release\"}"
|
||||
printh 92
|
||||
prints "nspanelevent",0
|
||||
printh 00
|
||||
prints lastclick.txt,0
|
||||
printh 00
|
||||
printh FF FF FF
|
||||
if(click_timer.en==1)
|
||||
{
|
||||
click_timer.en=0
|
||||
if(button08conf.val==1)
|
||||
{
|
||||
confirm.body.txt=button08text.txt
|
||||
confirm.page_id.val=dp
|
||||
confirm.page_name.txt=page_name.txt
|
||||
confirm.component.txt=click_comp.txt
|
||||
page confirm
|
||||
}else
|
||||
{
|
||||
lastclick.txt="{\"page\": \""+page_name.txt+"\", \"event\": \"short_click\", \"component\": \""+click_comp.txt+"\"}"
|
||||
printh 92
|
||||
prints "localevent",0
|
||||
printh 00
|
||||
prints lastclick.txt,0
|
||||
printh 00
|
||||
printh FF FF FF
|
||||
}
|
||||
}
|
||||
|
||||
Timer swipestore
|
||||
Attributes
|
||||
@@ -602,6 +736,24 @@ Timer swipestore
|
||||
swipex=tch0
|
||||
swipey=tch1
|
||||
|
||||
Timer click_timer
|
||||
Attributes
|
||||
ID : 48
|
||||
Scope : local
|
||||
Period (ms): 800
|
||||
Enabled : no
|
||||
|
||||
Events
|
||||
Timer Event
|
||||
lastclick.txt="{\"page\": \"buttonpage01\", \"event\": \"long_click\", \"component\": \""+click_comp.txt+"\"}"
|
||||
printh 92
|
||||
prints "localevent",0
|
||||
printh 00
|
||||
prints lastclick.txt,0
|
||||
printh 00
|
||||
printh FF FF FF
|
||||
click_timer.en=0
|
||||
|
||||
TouchCap swipe
|
||||
Attributes
|
||||
ID : 1
|
||||
|
||||
Reference in New Issue
Block a user