Python Forum
Filename stamp script is needed
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Filename stamp script is needed
#11
Much thanks to all. I found the solution some days ago and I am attaching the code.

## autokey alt + shift + 1

import gi
gi.require_version("Wnck", "3.0")
from gi.repository import Wnck

scr = Wnck.Screen.get_default()
scr.force_update()
keyboard.send_keys(scr.get_active_window().get_name())
Reply
#12
This issue was resolved but I encountered another problem in my recent post on the same subject
Linux Mint Cinnamon 21.3 - Python 3.10.12 - Autokey-gtk 0.96.0 as of 2024-01-13.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to map by time stamp and name SriRajesh 0 1,146 Apr-09-2022, 12:49 PM
Last Post: SriRajesh
  extract zip from .msg files and saving according to date stamp of email natjo 3 2,940 Aug-13-2020, 09:35 PM
Last Post: bowlofred
  copy with new time stamp leveex 0 1,788 Mar-29-2020, 08:46 PM
Last Post: leveex
  Manipulating the filename of an output script mckinneycm 4 11,879 Jan-15-2020, 07:29 PM
Last Post: mckinneycm
  How to save latest time stamp in a file? redwood 12 7,236 Jul-11-2019, 11:03 AM
Last Post: redwood

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020