Python Forum
Filename stamp script is needed
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Filename stamp script is needed
#8
(Apr-07-2021, 05:28 PM)bowlofred Wrote: If you mean the window "title", that is probably queryable. The distinction is that apps may not put the information you expect into the title. You only get what happens to be there.

I haven't used them (and can't test windows code for a bit), but this StackOverflow post has several suggestions.

The simplest from there would seem to be to install "pywin32" and then try
from win32gui import GetWindowText, GetForegroundWindow
print(GetWindowText(GetForegroundWindow()))

Thanks for your post. Unfortunately, I work in Linux. Although the "title" would work in Linux as well if I knew how to access it. I am just beginning to familiarize myself with Python through Autokey.
Reply


Messages In This Thread
Filename stamp script is needed - by ineuw - Apr-07-2021, 05:53 AM
RE: Filename stamp script is needed - by Larz60+ - Apr-07-2021, 09:26 AM
RE: Filename stamp script is needed - by ineuw - Apr-07-2021, 02:50 PM
RE: Filename stamp script is needed - by Larz60+ - Apr-07-2021, 04:30 PM
RE: Filename stamp script is needed - by bowlofred - Apr-07-2021, 04:33 PM
RE: Filename stamp script is needed - by ineuw - Apr-07-2021, 05:00 PM
RE: Filename stamp script is needed - by bowlofred - Apr-07-2021, 05:28 PM
RE: Filename stamp script is needed - by ineuw - Apr-09-2021, 10:37 AM
RE: Filename stamp script is needed - by ineuw - Apr-12-2021, 11:03 PM
RE: Filename stamp script is needed - by bowlofred - Apr-09-2021, 04:21 PM
RE: Filename stamp script is needed - by ineuw - Apr-24-2021, 05:50 AM
RE: Filename stamp script is needed - by ineuw - Sep-12-2023, 03:05 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to map by time stamp and name SriRajesh 0 1,171 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,973 Aug-13-2020, 09:35 PM
Last Post: bowlofred
  copy with new time stamp leveex 0 1,819 Mar-29-2020, 08:46 PM
Last Post: leveex
  Manipulating the filename of an output script mckinneycm 4 11,937 Jan-15-2020, 07:29 PM
Last Post: mckinneycm
  How to save latest time stamp in a file? redwood 12 7,305 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