Currently I make a call to a program with the command as the parameter. The
device is on a USB to com port cable and issues the infrared flash. I have
the procedure issue three cycles with a brief sleep command between or I get
a device not available. My only real option would be to get the device
manufacturer to help with a direct com port procedure to repeat the specific
flash while mouse press. I understand the task but I probably need help from
whoever makes the smart-linc device
Your suggestions from all you guys is greatly appreciated.

Gary

-----Original Message-----
From: Tracy Pearson [mailto:[email protected]] 
Sent: Wednesday, January 05, 2011 10:11 AM
To: [email protected]
Subject: RE: running multiple apps

Kurt Wendt wrote on 2011-01-05: 
> Hey Gary,
> 
> As for the volume thing. Wouldn't it be possible for you to hit a 
> control - and hit it continuously - to control the sound. Meaning, 
> maybe clear the keyboard typeahead after each hit - and yet, keep on 
> polling for the input - or a mouse button press. Then, hopefully you 
> could do the continuous control - even though the signal you send out 
> is discreet.
> -----Original Message-----
> From: Gary Jeurink
> Sent: Tuesday, January 04, 2011 2:21 PM
> 
> I also need to probably learn C# so I can make my own com port calls 
> to turn Volume up and down on the stereo. My current function from 
> foxpro will send 1-call per push rather than Continuous until 
> released. This may be more of a device limitation than a program 
> inadequacy. I'm using A smarthome pc to ir linc.. I'm calling a 
> program with the command attribute... Over and over for something like
volume...

Gary,

In the mouse down event, enable a timer. On the Mouse Up event, disable the
timer.
This timer will fire the even you need.

[btnVolumeDown.MouseDown]
   THISFORM.tmrVolumeDown.Started = .T.
   THISFORM.tmrVolumeDown.Enabled = .T.

[btnVolumeDown.MouseUp]
   THISFORM.tmrVolumeDown.Enabled = .F.

[tmrVolumeDown.Timer]
   IF THIS.Started = .T. OR THIS.Enabled = .T.
      {adjust volume}
   ENDIF
   THIS.Started = .F.

[VolumeDown.Init]
   ADDPROPERTY(THIS, "Started", .F.)


The Started property added and used ensures at least 1 process will go
through for a single click. No code will go in the btnVolumeDown click
event.

HTH,
Tracy



Tracy Pearson
PowerChurch Software








_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/a1e01c20783e433c851f0d1f5ae88...@livingroom
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to