attaching image and emoji

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
selvaam
Posts: 8
Joined: 10 Aug 2022, 13:48

attaching image and emoji

Post by selvaam » 10 Aug 2022, 14:43

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.]
Last edited by gregster on 10 Aug 2022, 14:47, edited 1 time in total.
Reason: Post was split from completely unrelated topic.

swagfag
Posts: 6222
Joined: 11 Jan 2017, 17:59

Re: attaching image and emoji

Post by swagfag » 11 Aug 2022, 18:34

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)

Post Reply

Return to “Ask for Help (v1)”