If you have a problem or need to report a bug please email : support@dsprobotics.com
There are 3 sections to this support area:
DOWNLOADS: access to product manuals, support files and drivers
HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects
USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here
NEW REGISTRATIONS - please contact us if you wish to register on the forum
Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright
Communicate with other programs
4 posts
• Page 1 of 1
Communicate with other programs
Hello,
is it possible to communicate with other programs via Windows messaging?
For example:
SendMessage(Handle, WM_COMMAND, $A004, 0);
with best regards
Dietmar
is it possible to communicate with other programs via Windows messaging?
For example:
SendMessage(Handle, WM_COMMAND, $A004, 0);
with best regards
Dietmar
- radido
- Posts: 12
- Joined: Wed Feb 18, 2009 12:33 pm
- Location: Germany
Re: Communicate with other programs
Hi Everybody,
it has to wait for a response appropriate?
Are there news?
it has to wait for a response appropriate?
Are there news?
- radido
- Posts: 12
- Joined: Wed Feb 18, 2009 12:33 pm
- Location: Germany
Re: Communicate with other programs
Sure - you can do this using Win32API.
Here's some code that should get you going.
Here's some code that should get you going.
- Code: Select all
require 'win32api'
# This finds a window by caption and stores the handle
findWindow = Win32API.new("user32", "FindWindow", ['P','P'], 'L')
handle = findWindow.Call(nil,"Untitled - Notepad")
watch "handle",handle
# This sends a WM_COMMAND (273 = 0x111) message with the ID for File|Open
sendMessage = Win32API.new("user32", "SendMessage", ['L'] * 4, 'L')
sendMessage.Call(handle, 273, 1, 0)
# This gets the caption of a window from a handle
s = ' '*64
getWindowText = Win32API.new("user32", "GetWindowText", ['L','P','L'], 'L')
getWindowText.Call(handle,s,64)
watch "caption",s
-
support - Posts: 151
- Joined: Fri Sep 07, 2012 2:10 pm
Re: Communicate with other programs
Hi everyone,
received is now cleared but one example of the transmitter is still bulged
Please do not leave me hanging
received is now cleared but one example of the transmitter is still bulged
Please do not leave me hanging
- radido
- Posts: 12
- Joined: Wed Feb 18, 2009 12:33 pm
- Location: Germany
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 60 guests