<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.cheatengine.org/index.php?action=history&amp;feed=atom&amp;title=Lua%3AsendMessage</id>
	<title>Lua:sendMessage - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.cheatengine.org/index.php?action=history&amp;feed=atom&amp;title=Lua%3AsendMessage"/>
	<link rel="alternate" type="text/html" href="https://wiki.cheatengine.org/index.php?title=Lua:sendMessage&amp;action=history"/>
	<updated>2026-05-02T05:31:24Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.32.0</generator>
	<entry>
		<id>https://wiki.cheatengine.org/index.php?title=Lua:sendMessage&amp;diff=7002&amp;oldid=prev</id>
		<title>Ajanuw: Created page with &quot;&lt;p&gt; &lt;b&gt;sendMessage(hwnd, msg, wparam, lparam)&lt;/b&gt;: result - Sends a message to a window. Those that wish to use it, should know how to use it (and fill in the msg id's yoursel...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.cheatengine.org/index.php?title=Lua:sendMessage&amp;diff=7002&amp;oldid=prev"/>
		<updated>2020-08-28T01:01:37Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;p&amp;gt; &amp;lt;b&amp;gt;sendMessage(hwnd, msg, wparam, lparam)&amp;lt;/b&amp;gt;: result - Sends a message to a window. Those that wish to use it, should know how to use it (and fill in the msg id&amp;#039;s yoursel...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;p&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;sendMessage(hwnd, msg, wparam, lparam)&amp;lt;/b&amp;gt;: result - Sends a message to a window. Those that wish to use it, should know how to use it (and fill in the msg id's yourself)&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-sendmessage&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
local WM_IME_CHAR = 0x0286&lt;br /&gt;
local hWnd = 0x000406E0&lt;br /&gt;
&lt;br /&gt;
local text = &amp;quot;hello&amp;quot;&lt;br /&gt;
&lt;br /&gt;
for i=1,#text do&lt;br /&gt;
  local c = string.sub(text, i, i)&lt;br /&gt;
  local wParam = textToShortCut(c)&lt;br /&gt;
  local lParam = textToShortCut(c)&lt;br /&gt;
  sendMessage( hWnd, WM_IME_CHAR, wParam, lParam )&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Ajanuw</name></author>
		
	</entry>
</feed>