Output text (pre-made messages) on chat?
14 posts
• Page 2 of 2 • 1, 2
Re: Output text (pre-made messages) on chat?
Thanks for the input passarb. I don't really understand how to use this though. Would be great if there was an easier way to code text output to PS4... ;-)
-
Sparky101 - Command Sergeant Major
- Posts: 114
- Joined: Sun Sep 24, 2017 11:54 am
Re: Output text (pre-made messages) on chat?
you can have a toggle button to switch memory slots, to a new script that changes the output to USB Output Protocol HID, in this script, you would need to create a uint8 array filled with your desired text that you wish to send. exampleSparky101 wrote:Thanks for the input passarb. I don't really understand how to use this though. Would be great if there was an easier way to code text output to PS4... ;-)
- Code: Select all
#include <keyboard.gph>
const uint8 text[]= { KEY_H, KEY_E, KEY_L, KEY_L, KEY_O };
Then run that array through the the set_key() function. Using a for loop, or a combo accordingly. And at the end of this script, have a function to switch memory slots, and change the output protocol back to your console.
I'm not to sure how this would work on the PS4, but I know it works for the Xbox, last I checked.
-
Sillyasskid - Captain
- Posts: 574
- Joined: Sat May 14, 2016 3:07 am
Re: Output text (pre-made messages) on chat?
The script just lets me use the keyboard plugged into the PC without having to rewire my setup. I capture the keyboard in GTuner on the PC then with the script toggle the T2 output. So basically play with the controller and when I need to type a message, in the message box I press RB + A to switch the T2 output to HID and use the keyboard then press RB + X to switch hte T2 output back to xbox controller.
I'm not a coder, so there maybe a better way. I found this easier then typing with the controller. It's not pre made messages but I could diffidently see that being useful.
I'm not a coder, so there maybe a better way. I found this easier then typing with the controller. It's not pre made messages but I could diffidently see that being useful.
Sparky101 wrote:Thanks for the input passarb. I don't really understand how to use this though. Would be great if there was an easier way to code text output to PS4... ;-)
-
passarb - Sergeant
- Posts: 7
- Joined: Fri Feb 17, 2017 6:47 pm
Re: Output text (pre-made messages) on chat?
This looks very interesting...
Sillyasskid wrote:you can have a toggle button to switch memory slots, to a new script that changes the output to USB Output Protocol HID, in this script, you would need to create a uint8 array filled with your desired text that you wish to send. exampleSparky101 wrote:Thanks for the input passarb. I don't really understand how to use this though. Would be great if there was an easier way to code text output to PS4... ;-)
- Code: Select all
#include <keyboard.gph>
const uint8 text[]= { KEY_H, KEY_E, KEY_L, KEY_L, KEY_O };
Then run that array through the the set_key() function. Using a for loop, or a combo accordingly. And at the end of this script, have a function to switch memory slots, and change the output protocol back to your console.
I'm not to sure how this would work on the PS4, but I know it works for the Xbox, last I checked.
-
passarb - Sergeant
- Posts: 7
- Joined: Fri Feb 17, 2017 6:47 pm
14 posts
• Page 2 of 2 • 1, 2
Who is online
Users browsing this forum: No registered users and 112 guests