MCPcopy Create free account
hub / github.com/ActiveState/code / execute

Method execute

recipes/Python/577654_DDE_Client/recipe-577654.py:170–177  ·  view source on GitHub ↗

Execute a DDE command.

(self, command, timeout=5000)

Source from the content-addressed store, hash-verified

168 DDE.FreeDataHandle(hDdeData)
169
170 def execute(self, command, timeout=5000):
171 """Execute a DDE command."""
172 pData = c_char_p(command)
173 cbData = DWORD(len(command) + 1)
174 hDdeData = DDE.ClientTransaction(pData, cbData, self._hConv, HSZ(), CF_TEXT, XTYP_EXECUTE, timeout, LPDWORD())
175 if not hDdeData:
176 raise DDEError("Unable to send command", self._idInst)
177 DDE.FreeDataHandle(hDdeData)
178
179 def request(self, item, timeout=5000):
180 """Request data from DDE service."""

Callers 15

__serveMethod · 0.45
recipe-577601.pyFile · 0.45
fetch_answerFunction · 0.45
_connectMethod · 0.45
_testFunction · 0.45
execute_sqlFunction · 0.45
Gen_PassFunction · 0.45
_find_last_idMethod · 0.45
_pollMethod · 0.45
sendMethod · 0.45
recipe-577001.pyFile · 0.45
getStatsFunction · 0.45

Calls 1

DDEErrorClass · 0.85

Tested by

no test coverage detected