I find that I can write to memory as
[addr] = value
As given by the documentation at http://help.x64dbg.com/en/latest/introduction/Input.html
And while I could work around my problem as dividing the string into several byte writes, that looks kind of ugly! Every character would be:
byte:[addr] = charactercode
I have not found any way except for manually entering into the memory editor to write a string/unicode string into memory. Am I missing something or is this really basic feature missing from X64dbg ?
In case there is another workaround. The problem I am trying to solve is I want to set a value for GetEnvironmentVariable() for a variable that does not exist by writing a string into the buffer. I want this to happen when a breakpoint is reached by breakpoint commands.
So basically if there was any way to force setting environment variable or write a string into memory when a breakpoint is hit. I could work with that!