for this script i have using for only text message can you any one help me for attaching image and emoji
Code: Select all
File=;Change this to what ever directory is being shared with the other computer.
Name:=A_UserName ;Comment this if you want to choose your own name in the chat. This is just to make things more simple.
;InputBox, Name, Username, Please enter a username. ;Uncomment this to choose your own name.
Gui, Color, FF8040
FileRead, Data, %File%
Gui, Add, Edit, ReadOnly -BackgroundTrans +Border vTextData w515 h500, %Data%
Gui, Add, Edit, vTextInput x10 y515 w400 h100,
Gui, Add, Button, gSend x415 y515 w95 h100, Send
Gui, Show,, Network E-Chatter
WinGet Gui_ID, ID, A
SetTimer, ParseData, 500
Return
Send:
$Enter::
Gui, Submit, Nohide
IfWinNotActive, Network E-Chatter
{
Send, {Enter}
Return
}
If (TextInput = "/del log")
{
FileDelete, %File%
FileAppend,, %File%
GuiControl,, TextInput,
Return
}
FileAppend, %name%:`n%TextInput%`n`n, %File%
GuiControl,, TextInput,
Return
ParseData:
FileRead, Data, %File%
If (Data <> LastData)
{
GuiControl,, TextData, %Data%
GuiControl Focus, TextData
ControlGetFocus ClassLog, ahk_id %Gui_ID%
ControlSend %ClassLog%, ^{End}, ahk_id %Gui_ID%
GuiControl Focus, TextInput
TrayTip, New message!
Sleep 500
TrayTip
}
LastData=%Data%
return