Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

GlobalGetAtomName/GlobalDeleteAtom from EventGhost?

If you have a question or need help, this is the place to be.
Post Reply
scissors
Posts: 21
Joined: Mon Oct 17, 2011 1:41 pm

GlobalGetAtomName/GlobalDeleteAtom from EventGhost?

Post by scissors »

Hello,

Does anyone know of a way to call the Windows functions GlobalGetAtomName/GlobalDeleteAtom from EventGhost?

GlobalGetAtomName: http://msdn.microsoft.com/en-us/library ... 85%29.aspx
GlobalDeleteAtom: http://msdn.microsoft.com/en-us/library ... 85%29.aspx
cfull1
Experienced User
Posts: 124
Joined: Thu Aug 19, 2010 4:52 am

Re: GlobalGetAtomName/GlobalDeleteAtom from EventGhost?

Post by cfull1 »

use a python script.

Code: Select all

from winappdbg.win32 import GlobalGetAtomName, MAXINTATOM
# print all valid named global atoms to standard output
def print_atoms():
    for x in xrange(0, MAXINTATOM):
        try:
            n = GlobalGetAtomName(x)
            if n == "#%d" % x:      # comment out to print
                continue            # valid numeric atoms
            print "Atom %4x: %r" % (x, n)
        except WindowsError:
            pass
GlobalGetAtomName python example
scissors
Posts: 21
Joined: Mon Oct 17, 2011 1:41 pm

Re: GlobalGetAtomName/GlobalDeleteAtom from EventGhost?

Post by scissors »

I forgot to reply a long time... Thanks for the help. :)
Post Reply