<?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%3AexecuteCodeEx</id>
	<title>Lua:executeCodeEx - 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%3AexecuteCodeEx"/>
	<link rel="alternate" type="text/html" href="https://wiki.cheatengine.org/index.php?title=Lua:executeCodeEx&amp;action=history"/>
	<updated>2026-05-14T16:35:30Z</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:executeCodeEx&amp;diff=7018&amp;oldid=prev</id>
		<title>Ajanuw: Created page with &quot;&lt;b&gt;executeCodeEx(callmethod, timeout, address, {type=x,value=param1} or param1,{type=x,value=param2} or param2,...)&lt;/b&gt; &lt;pre&gt;   callmethod: 0=stdcall, 1=cdecl    timeout: Numb...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.cheatengine.org/index.php?title=Lua:executeCodeEx&amp;diff=7018&amp;oldid=prev"/>
		<updated>2020-09-06T05:59:44Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;b&amp;gt;executeCodeEx(callmethod, timeout, address, {type=x,value=param1} or param1,{type=x,value=param2} or param2,...)&amp;lt;/b&amp;gt; &amp;lt;pre&amp;gt;   callmethod: 0=stdcall, 1=cdecl    timeout: Numb...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;b&amp;gt;executeCodeEx(callmethod, timeout, address, {type=x,value=param1} or param1,{type=x,value=param2} or param2,...)&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  callmethod: 0=stdcall, 1=cdecl&lt;br /&gt;
&lt;br /&gt;
  timeout: Number of milliseconds to wait for a result. nil or -1, infitely. 0 is no wait (will not free the call memory, so beware of it's memory leak)&lt;br /&gt;
&lt;br /&gt;
  address: Address to execute&lt;br /&gt;
&lt;br /&gt;
  {type,value} : Table containing the value type, and the value&lt;br /&gt;
    {&lt;br /&gt;
    type: 0=integer (32/64bit) can also be a pointer&lt;br /&gt;
          1=float (32-bit float)&lt;br /&gt;
          2=double (64-bit float)&lt;br /&gt;
          3=ascii string (will get converted to a pointer to that string)&lt;br /&gt;
          4=wide string (will get converted to a pointer to that string)&lt;br /&gt;
     &lt;br /&gt;
    value: anything base type that lua can interpret&lt;br /&gt;
    }&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
if just param is provided CE will guess the type based on the provided type&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h3&amp;gt;Example:&amp;lt;/h3&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
print( executeCodeEx(0, nil, &amp;quot;MessageBoxA&amp;quot;, 0, {type=3,value=&amp;quot;title&amp;quot;}, {type=3,value=&amp;quot;content&amp;quot;}, 0) )&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Ajanuw</name></author>
		
	</entry>
</feed>