It is currently April 25th, 2024, 4:50 pm
Getting window handle of skin
-
- Rainmeter Sage
- Posts: 1399
- Joined: April 24th, 2021, 8:13 pm
Re: Getting window handle of skin
You do not have the required permissions to view the files attached to this post.
from the Realm of Death
-
- Rainmeter Sage
- Posts: 1399
- Joined: April 24th, 2021, 8:13 pm
Re: Getting window handle of skin
I am dumb lol. So sorry for wasting your time.
I was using the wrong parameters for the whole time.
Instead of using the config name I was using path to config file.
Thank you for your time.
I was using the wrong parameters for the whole time.
Instead of using the config name I was using path to config file.
Thank you for your time.
from the Realm of Death
-
- Developer
- Posts: 22629
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: Getting window handle of skin
So you got it working the way you want?death.crafter wrote: ↑July 23rd, 2021, 2:46 pm I am dumb lol. So sorry for wasting your time.
I was using the wrong parameters for the whole time.
Instead of using the config name I was using path to config file.
Thank you for your time.
-
- Developer
- Posts: 22629
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: Getting window handle of skin
I'm betting that this whole thing could be done in Powershell without needing a plugin.
-
- Rainmeter Sage
- Posts: 1399
- Joined: April 24th, 2021, 8:13 pm
Re: Getting window handle of skin
Yes. Actually what I wanted to do was achieved in the first try(focus on refresh).
I just wanted to make it cross-config compatible.
from the Realm of Death
-
- Rainmeter Sage
- Posts: 1399
- Joined: April 24th, 2021, 8:13 pm
Re: Getting window handle of skin
Yes but it takes a while.
I opened a thread here:
https://forum.rainmeter.net/viewtopic.php?f=119&t=37968
But the downside is, if the said skin wasn't in focus right before you execute it, or just refreshed, it wouldn't work because I use MainWindowTitle to get filter the results.
That's why I wanted to get the window handle. I am not sure if I can put the C++ code in powershell tho.
from the Realm of Death
-
- Developer
- Posts: 22629
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: Getting window handle of skin
Seems like something like this might work:
$wshell = New-Object -ComObject wscript.shell
$wshell.AppActivate('C:\Users\JSMorley\Documents\Rainmeter\Skins\JSMeter\System\System.ini')
The WindowTitle of a skin is the full path to the .ini file.
$wshell = New-Object -ComObject wscript.shell
$wshell.AppActivate('C:\Users\JSMorley\Documents\Rainmeter\Skins\JSMeter\System\System.ini')
The WindowTitle of a skin is the full path to the .ini file.
-
- Rainmeter Sage
- Posts: 1399
- Joined: April 24th, 2021, 8:13 pm
Re: Getting window handle of skin
Hmm looks good.
But this won't be instantaneous and also would be resource consuming if used with RunCommand. Escpecially with mouseoveractions and stuff.
I have an ahk executable but since some av software pick it up as antivirus I don't wanna use that. So a plugin.
from the Realm of Death
-
- Developer
- Posts: 22629
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: Getting window handle of skin
Fair enough...death.crafter wrote: ↑July 23rd, 2021, 4:07 pm Hmm looks good.
But this won't be instantaneous and also would be resource consuming if used with RunCommand. Escpecially with mouseoveractions and stuff.
I have an ahk executable but since some av software pick it up as antivirus I don't wanna use that. So a plugin.
-
- Posts: 180
- Joined: May 6th, 2021, 2:57 pm