Execute a DDE command.
(self, command, timeout=5000)
| 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.""" |
no test coverage detected