饥荒联机版

饥荒联机版

ThePIT 2015 年 6 月 4 日 上午 4:15
CHAT with Enter key only! one-key CHATTING (AHK Script)
Are you annoyed coz you can't chat and play at the same time?
You died again coz you coudn't move your character?
You want to have simple chatting system withotu extra keys to open/close chat?
Then you r in luck :)

Currently to chat in DST you need 3 separate keys:
Toggle Say -> To open chat
Enter -> To Send your message (you can't change that key in Settings)
Menu Cancel -> To close chat

This simple AutoHotKey script change whole chatting system to work with only one key (Enter).
It toggles Enter key between 2 functions:
- 1st: only opens the chat
- 2nd: sends your message and closes chat after

It works ONLY in DST so you can use enter key and chat outside the game without any problems.

AutoHotKey (AHK) is very simple yet very powerful program which gives you ability to rebind/set macros to all your keyboard/mouse keys. Very often some games force you to use some keys or even don't have option to change Controls at all. With this tool you don't have to worry about that anymore :)

Script is bellow, If it's your first time with AHK here's quick guide for dummies what to do step by step.

IMPORTANT:
In order for script to work you have to set your Controls in DST:
Toggle Say -> PageUP
Menu Cancel -> Home

or edit script to use diffrent keys instead, remember that some of the AHK keys might have strange names, check then on the web before editing! (google "AHK List of keys")

Instruction:
1. Dowload and install AutoHotKey program.
2. Start AutoHotKey.exe or AutoHotKey desktop shortcut
3. R-click green "H" square on the taskbar in the bottom right screen corner.
4. Click "Edit this script" (this should open AutoHotKey.ahk file in Notepad)
5. Delete everything
6. Copy/Paste this:

;------------COPY FROM HERE-------------

;Don't Starve Together 1-key CHAT

#IfWinActive, Don't Starve

Enter::
If var=2
{
Send {Enter down}
Sleep 10
Send {Enter up}
Sleep 10
Send {Home down} ;---Home closes you chat after your msg is sent
Sleep 10
Send {Home up}
var=1
}
else
{
Send {PgUp down} ;---Page Up is responsible to open the chat
Sleep 10
Send {PgUp up}
Sleep 10
Send {PgUp down} ;---It's second time to make sure it will work
Sleep 10
Send {PgUp up}
var=2
}

return

;---------TO HERE----------

7. Save and close notepad.
8. Again - R-click green "H" square on the taskbar in the bottom right screen corner.
9. Click "Reload This Script"
10. Done :)

Now anytime you want use this script just start AutoHotKey.exe or Desktop shortcut.
You can leave it active while playing other games/browsing web coz it only works inside Don't Stave game.

If some1 would like to create mod to work the same way in the game go ahead :) And don't forget to let us know here ;)
最后由 ThePIT 编辑于; 2015 年 6 月 5 日 下午 12:16
< >
正在显示第 1 - 1 条,共 1 条留言
enlightme 2015 年 6 月 4 日 上午 4:19 
Sounds good!
< >
正在显示第 1 - 1 条,共 1 条留言
每页显示数: 1530 50

发帖日期: 2015 年 6 月 4 日 上午 4:15
回复数: 1