View Single Post
Old 02-27-2017, 10:51 PM   #35
hal
 
Join Date: Aug 2004
Location: Buffalo, New York
Default Re: Playing GURPS with Fantasy Grounds

Hello Folks,
For some of you who might be interested...

One of the problems I'm having is being able to unzip a file from the PAK file, make changes, and then rezipping the file as a PAK file to where FG2 can read it. I'm using 7ZIP for this, and it is just not working.

So I did some digging into how to try and send data to FG2 from VB.NET.

This one command permits output from a VB.NET program to be sent to the clipboard, where the FG2 GM can simply paste the information directly to the FG2 chat window or possibly even to a "story" area.

My.Computer.Clipboard.SetText("This is a test string.")


What ever is in the "quote" marks above can be sent to the clipboard, or you can assign text information to a string variable and send stuff to the clipboard that way. For instance "You walk onto Fifth Avenue and notice a fairly robust crowd size typical of a workweek day, when you suddenly spot a red-head who is trying hard to not be noticed he's tailing you." can be assigned to "Encounter result", using text manipulation to create the narrative and storing it as "EncounterResult".

Then, you can send that result to the clipboard using the command

My.Computer.Clipboard.SetText(EncounterResult).

Just thought I'd mention it.
hal is offline   Reply With Quote