Quantcast
Channel: [EN] OpenPLi Third-Party Development
Viewing all articles
Browse latest Browse all 1691

How to programatically send Exit key?

$
0
0
How can I programatically simlulate Exit key being pressed on the remote? I found code to simulate key presses, including Menu key (code below), but I couldn't find corresponding keycode for the Exit key.
 
import enigma


FLAG_MAKE = 0
FLAG_BREAK = 1
TYPE_STANDARD = "dreambox remote control (native)"


#press the key with the desired flag
eam.keyPressed(TYPE_STANDARD, 139, FLAG_MAKE) #menu
#Release the key 
eam.keyPressed(TYPE_STANDARD, 139, FLAG_BREAK) #menu
 

Viewing all articles
Browse latest Browse all 1691

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>