Fatboyfun wrote:Yes it is possible to pop up a question box, On all my devices when power is removed a 10 second countdown appears before suspending, All the sys.txt power options make no difference.
SetChoiceEntryFormat(70)
ChoiceDefault("Power Off", "Device will suspend in...", Yes, 10, "Yes", "No")
Case "0"
Case "1"
PowerOff
Case "2"
EndChoice
SetChoiceEntryFormat(70)
ChoiceDefault("Power Off", "Device will suspend in...", Yes, 10, "Yes", "No")
Case "0"
While (not ExternalPowered())
Sleep 1000
EndWhile
Case "1"
PowerOff
Case "2"
While (not ExternalPowered())
Sleep 1000
EndWhile
EndChoice
Return to General Discussions about iGO core
Users browsing this forum: pirroo and 11 guests