Support

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

For general discussion related FlowStone

Communicate with other programs

Postby radido » Tue Jan 22, 2013 3:32 pm

Hello,
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

Postby radido » Mon Jan 28, 2013 11:47 am

Hi Everybody,

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

Postby support » Mon Jan 28, 2013 5:02 pm

Sure - you can do this using Win32API.

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

User avatar
support
 
Posts: 151
Joined: Fri Sep 07, 2012 2:10 pm

Re: Communicate with other programs

Postby radido » Fri Mar 08, 2013 2:27 pm

Hi everyone,
received is now cleared but one example of the transmitter is still bulged

Please do not leave me hanging :o
radido
 
Posts: 12
Joined: Wed Feb 18, 2009 12:33 pm
Location: Germany


Return to General

Who is online

Users browsing this forum: No registered users and 50 guests