I d like to launch Gamehub 2 with a hotkey
It used to work but now it doesnt anymore and i cant seem to figure out how I can change it again.
It is currently March 29th, 2024, 2:04 pm
Gamehub launch with hotkey
-
- Posts: 7
- Joined: September 9th, 2021, 6:55 pm
-
- Rainmeter Sage
- Posts: 16110
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Gamehub launch with hotkey
First what Gamehub 2 is, because I don't know? Secondly, I suppose you'd like to do this through a Rainmeter skin, right? Which skin you want to add this feature to?
-
- Posts: 7
- Joined: September 9th, 2021, 6:55 pm
-
- Rainmeter Sage
- Posts: 16110
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Gamehub launch with hotkey
So, let's see if I understand exactly what you want: would you like to activate the skin when you hit a key combination? Am I right?
If I am, what is the exact path of the skin in cause (starting from the Skins folder)? Its name is not enough.
-
- Posts: 7
- Joined: September 9th, 2021, 6:55 pm
Re: Gamehub launch with hotkey
Exactly
where can i find the path?
-
- Rainmeter Sage
- Posts: 16110
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Gamehub launch with hotkey
You have to find the path of the .ini file, which you click to activate the skin.
Is the skin this one? I suppose it is. If I'm right, the path of GameHUB.ini (it is placed into the root config - in this case the root config name is GameHUB 2, this being the folder included into the Skins folder, which contains the GameHUB.ini skin file and in different subfolders, some other skins as well) is Skins\GameHUB 2\GameHUB.ini. Accordingly you can activate the skin with the [!ActivateConfig "GameHUB 2" "GameHUB.ini"] bang. See that I marked with red the name of the config and with green the name of the skin.
To do this with a key combination, first please confirm if I indeed am right.
-
- Posts: 7
- Joined: September 9th, 2021, 6:55 pm
Re: Gamehub launch with hotkey
Thats the one. here is what it says when i open it.balala wrote: ↑September 10th, 2021, 9:41 am You have to find the path of the .ini file, which you click to activate the skin.
Is the skin this one? I suppose it is. If I'm right, the path of GameHUB.ini (it is placed into the root config - in this case the root config name is GameHUB 2, this being the folder included into the Skins folder, which contains the GameHUB.ini skin file and in different subfolders, some other skins as well) is Skins\GameHUB 2\GameHUB.ini. Accordingly you can activate the skin with the [!ActivateConfig "GameHUB 2" "GameHUB.ini"] bang. See that I marked with red the name of the config and with green the name of the skin.
To do this with a key combination, first please confirm if I indeed am right.
Code: Select all
[Rainmeter]
OnRefreshAction=[!CommandMeasure Load activate_config(F2)]
[Metadata]
Name=Game Drawer 2
Author=FinchNelson
Information=Game Launcher inspired with Spectrum theme, made by personal challenge
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0
Version=Spectrum 4
[Variables]
@Include=#@#Settings.inc
@Include2=#@#Active.inc
SoundStart=menu.wav
[Background]
meter=Image
X=0
Y=0
W=1
H=1
SolidColor=0,0,0,1
DynamicVariables=1
[Load]
Measure=Script
ScriptFile=#@#Script\loader.lua
Layout=#@#User\#filelayout#
Last edited by balala on September 10th, 2021, 2:30 pm, edited 1 time in total.
Reason: Please use <code> tags whenever are posting code snippets. It's the </> button.
Reason: Please use <code> tags whenever are posting code snippets. It's the </> button.
-
- Rainmeter Sage
- Posts: 16110
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Gamehub launch with hotkey
Alright. In order to can use a key combination to activate the skin, you need two things:
- The HotKey plugin has to be installed on your system (see below).
- A skin which is running continuously (might be even in "background", so with no visible elements), which acts when the appropriate key combination is hit.
- Do you have it installed? To check, right click the Rainmeter icon in the Notification Area, and click About. In the opening About Rainmeter dialog, click the Plugins tab (the third). Check to see if there is a HotKey.dll element in the External plugins part of the list. If it is there, the plugin is installed and can be used. Otherwise follow the next step.
- If the plugin is not installed you have to install it. For this go here and download the attached HotKey_1.0.0.12.rmskin skin installer. This package contains a sample skin and the plugin itself. Accordingly when you run this installer, two things are installed: the HotKey config (into the Documents\Rainmeter\Skins folder) and the appropriate version of the plugin (the x86 or x64 version, depending on your OS), into the appropriate folder. When Rainmeter restarts, the plugin can be used.
Have you succeeded with all this? If you did, the next step will be to create a skin which will activate the skin when you hit the associated key combination. So did you install the plugin?
-
- Posts: 7
- Joined: September 9th, 2021, 6:55 pm
Re: Gamehub launch with hotkey
yes the hotkey plugin is installedbalala wrote: ↑September 10th, 2021, 6:52 pm Alright. In order to can use a key combination to activate the skin, you need two things:Let's start with the plugin.
- The HotKey plugin has to be installed on your system (see below).
- A skin which is running continuously (might be even in "background", so with no visible elements), which acts when the appropriate key combination is hit.
You can take a look to the just installed HotKey skin, but this might be only optional. I recommend to do this, but finally it's not absolutely necessary.
- Do you have it installed? To check, right click the Rainmeter icon in the Notification Area, and click About. In the opening About Rainmeter dialog, click the Plugins tab (the third). Check to see if there is a HotKey.dll element in the External plugins part of the list. If it is there, the plugin is installed and can be used. Otherwise follow the next step.
- If the plugin is not installed you have to install it. For this go here and download the attached HotKey_1.0.0.12.rmskin skin installer. This package contains a sample skin and the plugin itself. Accordingly when you run this installer, two things are installed: the HotKey config (into the Documents\Rainmeter\Skins folder) and the appropriate version of the plugin (the x86 or x64 version, depending on your OS), into the appropriate folder. When Rainmeter restarts, the plugin can be used.
Have you succeeded with all this? If you did, the next step will be to create a skin which will activate the skin when you hit the associated key combination. So did you install the plugin?
-
- Rainmeter Sage
- Posts: 16110
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Gamehub launch with hotkey
Alright, then it's quite easy to achieve what you want. Here is an example, please try it out:
Code: Select all
[Rainmeter]
Update=-1
[MeasureActivate]
Measure=Plugin
Plugin=HotKey
HotKey=CTRL G
KeyDownAction=[!ActivateConfig "GameHUB 2" "GameHUB.ini"]
DynamicVariables=1
[MeterPI]
Meter=STRING
X=0
Y=0
Padding=15,5,15,5
FontColor=220,220,220
FontEffectColor=0,0,0
StringEffect=Shadow
SolidColor=0,0,0,150
FontSize=8
FontFace=Segoe UI
StringStyle=BOLD
StringAlign=LEFT
AntiAlias=1
Text=Toggle GameHUB 2
LeftMouseUpAction=[!ActivateConfig "GameHUB 2" "GameHUB.ini"]
Later if needed we can eliminate the visual element (the Toggle GameHUB 2 string). Do you want this?