Page 1 of 1

attaching image and emoji

Posted: 10 Aug 2022, 14:43
by selvaam
hello Guy,

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
[Mod edit: [code][/code] tags added.]

Re: attaching image and emoji

Posted: 11 Aug 2022, 18:34
by swagfag
native win32 Edits dont support images or emojis. ull have to rewrite ur script to use a different type of control for ur input(either find some ready made libraries on the internet or implement one urself eg with DirectWrite)