Jump to content


Photo

How to programatically send Exit key?


  • Please log in to reply
2 replies to this topic

#1 JasonM8

  • Senior Member
  • 55 posts

0
Neutral

Posted 2 April 2018 - 12:00

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
 

Edited by JasonM8, 2 April 2018 - 12:00.


Re: How to programatically send Exit key? #2 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 2 April 2018 - 12:06

174
https://github.com/O.../keyids.py#L176
Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: How to programatically send Exit key? #3 JasonM8

  • Senior Member
  • 55 posts

0
Neutral

Posted 4 April 2018 - 00:06

 

Thanks!




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users