Bug 146135 - Impress Slide Number not processed by Impress if sent from Python keyboard
Summary: Impress Slide Number not processed by Impress if sent from Python keyboard
Status: RESOLVED INSUFFICIENTDATA
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
7.2.2.2 release
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-08 23:56 UTC by david.c.day
Modified: 2023-06-25 03:13 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description david.c.day 2021-12-08 23:56:48 UTC
Description:
Cannot remotely change the slide number on a random access basis by sending the slide no and and enter key from a Python script.

Tested on Win10x64, targetting Rpi4 when working.

Steps to Reproduce:
Try this Python snippet:

import keyboard

page = 30
keyboard.write( str(page), 0.1, True, None)
time.sleep(0.1)
keyboard.send('enter')

Save this file, and debug/run it.

Actual Results:
Slide increments by one.

Presumably the Enter key is processed?

Expected Results:
If you hand type '30<enter>' then Impress jumps to show slide 30.

Therefore, if you mimic the keyboard using this script to automate typing for you, when Impress is in focus, I expected the slide to jump to 30.

The script works on Win10x64 when pointed at Notepad, so it's something in the receiving app.


Reproducible: Always


User Profile Reset: No



Additional Info:
It should have jumped to 30.

Perhaps it's a misunderstanding my side on how this is supposed to be controlled?

(Opening a network listener with a simple API in Impress would be a better solution.  Perhaps that's in the pipeline?)
Comment 1 Buovjaga 2022-11-25 13:38:32 UTC
(In reply to david.c.day from comment #0)
> (Opening a network listener with a simple API in Impress would be a better
> solution.  Perhaps that's in the pipeline?)

Maybe this helps: https://wiki.documentfoundation.org/Documentation/DevGuide/Drawing_Documents_and_Presentation_Documents#Custom_Slide_Show
https://wiki.documentfoundation.org/Documentation/DevGuide/Professional_UNO#Starting_LibreOffice_in_Listening_Mode

Let us know, if it works for you.
Comment 2 QA Administrators 2023-05-25 03:16:29 UTC Comment hidden (obsolete)
Comment 3 QA Administrators 2023-06-25 03:13:39 UTC
Dear david.c.day,

Please read this message in its entirety before proceeding.

Your bug report is being closed as INSUFFICIENTDATA due to inactivity and
a lack of information which is needed in order to accurately
reproduce and confirm the problem. We encourage you to retest
your bug against the latest release. If the issue is still
present in the latest stable release, we need the following
information (please ignore any that you've already provided):

a) Provide details of your system including your operating
   system and the latest version of LibreOffice that you have
   confirmed the bug to be present

b) Provide easy to reproduce steps – the simpler the better

c) Provide any test case(s) which will help us confirm the problem

d) Provide screenshots of the problem if you think it might help

e) Read all comments and provide any requested information

Once all of this is done, please set the bug back to UNCONFIRMED
and we will attempt to reproduce the issue. Please do not:

a) respond via email 

b) update the version field in the bug or any of the other details
   on the top section of our bug tracker

Warm Regards,
QA Team

MassPing-NeedInfo-FollowUp