I can't seem to get this code to work, I was under the impression I was doing this correctly.
from ctypes import *
kernel32 = windll.kernel32
string1 = "test"
string2 = "test2"
kernel32.MessageBox(None,
string1,
string2,
MB_OK)
** I tried to change it to MessageBoxA as suggested below ** ** Error I get :: **
Traceback (most recent call last):
File "C:\<string>", line 6, in <module>
File "C:\Python26\Lib\ctypes\__init__.py", line 366, in __getattr__
func = self.__getitem__(name)
File "C:\Python26\Lib\ctypes\__init__.py", line 371, in __getitem__
func = self._FuncPtr((name_or_ordinal, self))
AttributeError: function 'MessageBoxA' not found