Twitch Emoticon Keybinder

Post Reply
Snafufui
Posts: 8
Joined: Sun Feb 22, 2015 11:48 am

Now, first of all I'm not entriely sure if this thread is in the correct place. Sorry if it isn't!

I've been teaching my self how to code in C# for application development as of very recently, and I thought making a Twitch Emoticon binder would both be a challenge and a very handy product (Albeit a basic product).
This evening I got a bit of time to work on it and I thought I might as well link it on the forums since it's functional and I know how much you lot like to spam emotes in Cohh's chat.

https://mega.co.nz/#!3p0UEKqI!9UBEtOGsL ... QOSQEpPAUQ

(New Link. Thanks Kalejin for the .rar suggestion! :) )

(Changed to MEGA because of preference. Apologies for the super long URL!)

Basically this miniscule application uses global key event hooks so the F1 - F12 keys can be used as keybinds. You can set these binds by using the list box within the application. The bottom entry box is used to input your emote commands in a simple format of something like this: cohhHi

You can enter your input by either pressing the enter key on your keyboard, or the enter button. The application can be minimised and the keybinds still work. The keybinds are deactivated if you close the application. You can only put it 12 emotes, otherwise it will prompt you with an error form and delete your last input. The other list box with the F1 - F12 keys cannot be edited, this is to simply show you which emote is lined up to which key. Once the emote code has be inputted, you can go onto the twitch chat and press F1 - F12 depending on the emote you want. These emotes are spammable friendly. Such as, if you had the cohhGV emote binded to F1 and you pressed F1 5 times it would show up in chat like this:
cohhGV cohhGV cohhGV cohhGV cohhGV
Image
This is a very basic application, and I will be updating this as I continue to learn C#. I plan to add user settings when I get the time to learn. Thank you for reading, and good luck spamming cohhGV's if you decide to try it out. Love your faces, good vibes to all!

------- Updates -------

Added user settings, which means that your emotes in the list box are saved when you close the application and are restored when you open the application again.

There is a bug where if you have an empty keybind and attempt to use it, the application (And only the application!) will crash. I will take a look at this tonight.

Depending on your browser, you might have problems with the F12 key opening the inspect element window. This is just because your browser is greedy and has stole your F12 keybind. I'll figure out a work around. I've been planning on making it so you can set any key on your keyboard to an emoticon keybind, which will also allow more than 12 keybinds.
User avatar
Kaoschan
Posts: 4
Joined: Tue Feb 10, 2015 10:43 am
Contact:

Thats a very nice tool - thanks for making it!
Snafufui
Posts: 8
Joined: Sun Feb 22, 2015 11:48 am

Thank you very much, mate!

Although I would just like to throw out there for a bit of clarity, because when I tested this application on my laptop just now Chrome stopped the download. I believe this may be because of the use of global key event hooks (I don't think Chrome likes it when you're assigning key binds outside of Chrome?) . I'm going to look into this, because when someone on a forum tells you about his new flashy application... and then Chrome is telling you nuh-uh this doesn't look good, it ends up looking a bit fishy.

If anyone with experience in C# and global event hooks could point me in the right direction, that would be so mother fluffing awesome. Thank you.

Also if you have anyone has any suggestions as to what I could add into the application, I would be very much open to that, and will try to implement it.
crymercy
Posts: 10
Joined: Tue Jan 20, 2015 10:41 am

I'll have to try this out at home. It would be an easy way to use Cohh's twitch emoticons in other streams without having to remember the actual command
Image
Snafufui
Posts: 8
Joined: Sun Feb 22, 2015 11:48 am

Thanks! You can use any emoticon, since you just manually input the emoticon command the once, and then just press the F1 - F12 key it's assigned to. Easy job! Don't worry about spaces between the emote commands in chat, the application already does that for you. :)

If any help is needed, or you encounter a bug just throw a message my way, or on this thread. That would be great help, thanks.
User avatar
Kemony
Posts: 1
Joined: Tue Feb 24, 2015 8:03 pm
Contact:

I may have missed it but how do you change the text you type into the actual list?
Snafufui
Posts: 8
Joined: Sun Feb 22, 2015 11:48 am

You can select the emoticon command on the list and then press the delete key on your keyboard to delete the command, but at the moment I have no way of making it so you can edit it instead of deleting it. I'll write that down as something I need to look into tonight, thanks!
User avatar
Kalejin
Posts: 124
Joined: Mon Feb 03, 2014 3:45 pm
Contact:

Nice application! :)
Like you mentioned, chrome (probably other browsers as well) doesn't want to download .exe directly so you could just throw it in .rar or something.
Also you could forbid entering empty string into list of emotes, it caused confusion (I had F1 as cohhHi, F2 empty string and I wanted to set F2 to something and it was setting F3 instead and I didn't see why) and also it crashes the app when I use that empty emote.
Chceck out my Death Counter & Soundboard for streamers!
Snafufui
Posts: 8
Joined: Sun Feb 22, 2015 11:48 am

Hehe, I haven't had much time to look into it as of recently but I'll take a look at forbidding empty strings being entered. My (rather botched) workaround is just to click on the empty string and then use the delete key. But thanks for the suggestion, and the .rar suggestion too! I'm gonna do that now infact.

Thanks for the help! :)
Brian
Posts: 14
Joined: Thu Dec 12, 2013 2:19 pm
Location: Connecticut, U.S.A.
Contact:

I really like your idea here, would this be something people might be interested in having as a part of the click to insert emotes plugin in BTTV?
Gotta catch em all...
Image
Brian
Posts: 14
Joined: Thu Dec 12, 2013 2:19 pm
Location: Connecticut, U.S.A.
Contact:

This is a cool idea, is this something you guys might like to see incorporated into BetterTTV?
Gotta catch em all...
Image
Snafufui
Posts: 8
Joined: Sun Feb 22, 2015 11:48 am

I just looked it up, and BetterTTV looks awesome! I'd totally make use of that if it was incorporated into it. :)
User avatar
dbtor
Posts: 3
Joined: Fri Jul 25, 2014 9:48 am
Contact:

I love the idea, good work. Great for a first version, and I look forward to things you could add such as editing emotes that are already bound. Setting your own keybindings etc.

It'd be nice if it could minimise to system tray. I don't mind having it open but I'd rather not have it on the taskbar.
Post Reply