Jump to content

How to write key to registry with variable and have ""


bn1z
 Share

Recommended Posts

This my code, add key to registry

$PATH = @SCRIPTDIR
RegWrite('HKCR\com.epicgames.launcher\shell\open\command', '','REG_SZ', $PATH & '\Epic Games\Launcher\Portal\Binaries\Win64\EpicGamesLauncher.exe %1')

this is my result in registry , without "

Quote

 

G:\Online Games\World War Z\Epic Games\Launcher\Portal\Binaries\Win64\EpicGamesLauncher.exe %1

 

 

 

image.thumb.png.15981e1fea9e676e1de00fd87f050189.png

 

I want, the key in the registry has a " at the beginning and at the end, how do I fix my code?
I want to have a " at the beginning and at the end

"G:\Online Games\World War Z\Epic Games\Launcher\Portal\Binaries\Win64\EpicGamesLauncher.exe" %1

 

image.thumb.png.493ef31e5ea8c4ced82ccbf2431d1663.png

 

 


Sorry I have to use Google Translate

Link to comment
Share on other sites

  • Developers
6 minutes ago, bn1z said:

I want, the key in the registry has a " at the beginning and at the end, how do I fix my code?

Just put them there? ;)

RegWrite('HKCR\com.epicgames.launcher\shell\open\command', '','REG_SZ', '"' & $PATH & '\Epic Games\Launcher\Portal\Binaries\Win64\EpicGamesLauncher.exe" "%1"')

PS: Be sure you read our forum rules in relation to game automation.

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

1 hour ago, Jos said:

Just put them there? ;)

RegWrite('HKCR\com.epicgames.launcher\shell\open\command', '','REG_SZ', '"' & $PATH & '\Epic Games\Launcher\Portal\Binaries\Win64\EpicGamesLauncher.exe" "%1"')

PS: Be sure you read our forum rules in relation to game automation.

Thank you sir!
I have solved my problem with your suggestion.
My post violates the rules, so you can delete or edit it to fit the forum's rules!
Once again, thank you for your reply

Link to comment
Share on other sites

  • Developers

It isn't in violation as this topic is still open, just wanted to make you aware of our rules. ;) 

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...