# Open the Steam Service using console command

**URL:** <https://forums.unrealengine.com/t/open-the-steam-service-using-console-command/89872>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [April 13, 2017, 2:35pm UTC](https://forums.unrealengine.com/t/open-the-steam-service-using-console-command/89872 "2017-04-13T14:35:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Humberto\_Milanez](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Humberto\_Milanez](https://forums.unrealengine.com/u/Humberto_Milanez)\
**Post date:** [April 13, 2017, 2:35pm UTC](https://forums.unrealengine.com/t/open-the-steam-service-using-console-command/89872/1 "2017-04-13T14:35:59Z")

</div>

Hi.  
I want know how to do this. Instead press Shift+Tab open the Steam service using a Console Command.  
Open an external url will help too.  
Can you help me?

Thank you.

---

<div class="post-metadata">

**Author:** ![Motanum](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Motanum](https://forums.unrealengine.com/u/Motanum)\
**Post date:** [April 13, 2017, 3:32pm UTC](https://forums.unrealengine.com/t/open-the-steam-service-using-console-command/89872/2 "2017-04-13T15:32:14Z")

</div>

This requires programming to create a blueprint node that can do so.

This documentation talks about the Game Overlay.  
[https://partner.steamgames.com/documentation/game\_overlay](https://partner.steamgames.com/documentation/game_overlay)

You don’t need any callbacks or call results from steam to trigger them, so if you follow this guide, you should get an idea on how to create a blueprint node to bring the steam overlay, and to set the steam web browser to a specific url.

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

Look at First Step with Steam.  
I’d do some changes to prevent crashes.  
From

```auto

if (SteamAPI_Init())
{
  const char* name = SteamFriends()->GetPersonaName();
  GEngine->AddOnScreenDebugMessage(-1, 5, FColor::Red, name);
}

```

to

```auto

if (SteamFriends() != nullptr) //Check that the Steam Pointers are initialized previously
{
  FString SteamName = SteamFriends()->GetPersonaName();
  UE_LOG(LogSteamworks, Log, TEXT("Steam Name of User: %s"), *SteamName);
}

```

I read somewhere that SteamAPI\_Init() will try to recreate steam when you read it, so just checking the steam pointers are populateed should be enough. I think.  
UE\_LOG doesnt depend on the editor and is much better to print logs of what you are doing.

From the Steam API, what you are looking for is this

```auto

SteamFriends()->ActivateGameOverlay("Community"); //const char *pchDialog //Check the Steam Api for more Options.

```

Or

```auto

SteamFriends()->ActivateGameOverlayToWebPage("https://www.unrealengine.com"); //const char *pchURL

```

How to create a blueprint Library.

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

If you want to pause the game when the steam overlay comes up, it’s more complicated, and involves more programming, but luckily for you, I struggled with that for a month and a half, and after I won, I wrote a throrough guide on how to achieve this.

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

Hope this helps.

---

<div class="post-metadata">

**Author:** ![Humberto\_Milanez](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Humberto\_Milanez](https://forums.unrealengine.com/u/Humberto_Milanez)\
**Post date:** [April 13, 2017, 7:16pm UTC](https://forums.unrealengine.com/t/open-the-steam-service-using-console-command/89872/3 "2017-04-13T19:16:31Z")

</div>

Motanum , Thanks and please have patience with me.  
Where I find this classes to modify?

Thank you.

---

<div class="post-metadata">

**Author:** ![Motanum](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Motanum](https://forums.unrealengine.com/u/Motanum)\
**Post date:** [April 13, 2017, 7:26pm UTC](https://forums.unrealengine.com/t/open-the-steam-service-using-console-command/89872/4 "2017-04-13T19:26:20Z")

</div>

Hi,

So, you basically first step, is to learn how to do add code to your ue4 game.

> **[2 - Create a C++ Class](https://docs.unrealengine.com/4.27/en-US/ProgrammingAndScripting/ProgrammingWithCPP/CPPProgrammingQuickStart/2/)**
>
> Creating a C++ class

Once you have that, and the code compile, then you have 2 options. The most simple one, is to create a blueprint Function library.

> **[Blueprint Function Libraries](https://docs.unrealengine.com/4.27/en-US/ProgrammingAndScripting/ProgrammingWithCPP/BlueprintFunctionLibraries/)**
>
> Information about Blueprint Function Libraries for C++ in Unreal Engine.

Learn how to create a simple blue print node. Maybe a int++;, that will take a int variable type, and increment it by 1. What you think can do.

Then, with that, you gotta go ahead and read this guide until the Look at First Step with Steam section. So you get the Steamworks stuff working and running in your game.

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

With that, you just need to include the steam\_api.h in your blueprint library cpp class

```auto

#include "ThirdParty/Steamworks/Steamv132/sdk/public/steam/steam_api.h"

```

So you can make use of the Steam api calls.

With that done, then you can create your own blueprint node. Something like

```auto

UFUNCTION(BlueprintPure, Category = "Steamworks")
bool UYourBlueprintlibrary::ActivateSteamOverlayToURL(FString FullURL) {
	if (SteamUser() != nullptr)
	{
		SteamFriends()->ActivateGameOverlayToWebPage(*FullURL); 
                return true;
	}
        
        //Steam not initialized
	return false;
}

```
