Question: How to get active window title

How can be this controlled in that simulator? Can HIDmacros be used with this application?
Post Reply
I3ordo
Posts: 16
Joined: 01 Oct 2018, 06:58

Question: How to get active window title

Post by I3ordo » 18 Dec 2019, 13:48

Hello!

I want to make a specific window (previously sent to back) to become the active window.
I searched the howtos section but the string "active window" did not show any results as those wordsso i thought that i should ask.
I found just this "lmc_get_window_title()" but no idea how to use it.

Basically i should be trying to set the active by its title. As I have very basic knowledge with "lua macros" and i can barely do this.


Any help with this structure would be much appreciated.

Code: Select all

          elseif (button == 9 and direction ==0) then
              lmc_set_active("Windowed Projector(Scene)")
              
ps: forum's search always complains about terms being too common.
searched "active window" and without quotes
always same
0 results.

ps2:"lmc_send_keys('#{1}', 50)" works for now, as it does win+1 which is making the window appear but it also hides it when it is already active in ym specific case may happen as i use it with some other function.i wish i could get a specific window's title of that program and just show it instead...

admin
Site Admin
Posts: 735
Joined: 01 Nov 2010, 13:00
Location: Prague, Czech republic
Contact:

Re: Question: How to get active window title

Post by admin » 19 Dec 2019, 08:53

Such function (to activate window by title) doesn't exist in luamacros.
I remember I had some problems implementing it in hidmacros and maybe it never worked 100%.
I may give it another chance.
If you want to track it, create issue at github.
Petr Medek
LUAmacros author

I3ordo
Posts: 16
Joined: 01 Oct 2018, 06:58

Re: Question: How to get active window title

Post by I3ordo » 19 Dec 2019, 12:47

admin wrote:
19 Dec 2019, 08:53
create issue at github.
I actualy dont really know which github page is yours, and if os, was wondering about that...

Code: Select all

https://github.com/me2d13/luamacros
You are "me2d13" and also "PeterM. "?
ps: /watching

Post Reply