F10 key

67 views
Skip to first unread message

FabrizioRei

unread,
Nov 18, 2019, 11:50:48 AM11/18/19
to BlazeLibs
Hi,
when i press F10 key with this command

em = Emulator(visible=True, timeout=30, app=None, args=["-model", "3279-2"])
em.connect(server_ip_address)
em.wait_for_field()
em.exec_command(b'PF(10)')

nothing appens. What should i do?

Isaac

unread,
Dec 7, 2019, 10:02:51 AM12/7/19
to BlazeLibs
There should be a "send_pf" function that does F keys.

FabrizioRei

unread,
Dec 11, 2019, 6:35:16 AM12/11/19
to BlazeLibs
Thank you Isaac, i tried the following

em.send_pf("10")

but nothing appens.

STaRNiGHT

unread,
Dec 11, 2019, 7:26:02 AM12/11/19
to BlazeLibs
Hello

em.send_pf(10) without ""

Test it and comments :)

FabrizioRei

unread,
Dec 11, 2019, 11:25:25 AM12/11/19
to BlazeLibs
Hi,
the same as before :(

STaRNiGHT

unread,
Dec 11, 2019, 12:09:53 PM12/11/19
to BlazeLibs
Hello,

this is very strage,

internal funcion is:
...

def send_pf8(self):
       
self.exec_command(b"PF(8)")

   
def send_pf(self, value):
        pf
= "PF({})".format(value)
       
self.exec_command(bytes(pf.encode("utf-8")))

...

em.send_pf(10) it should work ....  i have never used F10 buy i have use F1 many times whitout problem... with em.send_pf(1) .... rare :(

em.send_pf(1)
em
.wait_for_field()


Reply all
Reply to author
Forward
0 new messages