Capturing mouse click events

This will be an archive of the Yahoo Adept Software Group messages

Capturing mouse click events

Postby keith.given@kagrobotics.com » Mon Sep 15, 2008 5:00 pm

Hi All,

I have a simple program that I wrote to provide a graphical interface
for I/O on an all V+ system. I wrote it a few weeks ago and it worked
fine. I have just come back to it and for some reason the program is
not receiving the mouse events. I have enabled the button events to
receive mouse clicks, and the connect events to know when a PC has
connected to force a graphics redraw.

I am using a SmartControler CX and am talking thru a switch to a
toshiba laptop running AdeptWindowsPC 3.0 G1 under XP Pro with
service pack 3 installed.

The controller is running V+ 16.4 D1

I don't know if this helps or not but this is a new laptop and I
cannot connect directly to the adept controller. (my laptop
continuously thinks that the cable is disconnected then re-connected
then disconnected over and over every 5 - sec) However this was the
case when I wrote and tested the program weeks ago and it worked fine
then.

Does anyone know what could cause the events to not be recognized?
I used iostat immediately after the FOPEN command where I specified
the events to be monitored and it returned a 1 (success) yet no
events are receieved.

And if anyone knows anything about the connect disconnect issue that
would be appreciated also.

Thanks,

Keith Given
keith.given@kagrobotics.com
 
Posts: 6
Joined: Wed Feb 20, 2008 5:00 pm

Re: [adept_software] Capturing mouse click events

Postby juergen.bosse@robo-technology.de » Mon Sep 15, 2008 5:00 pm

givenkeith schrieb:
>
> Hi All,
>
> I have a simple program that I wrote to provide a graphical interface
> for I/O on an all V+ system. I wrote it a few weeks ago and it worked
> fine. I have just come back to it and for some reason the program is
> not receiving the mouse events. I have enabled the button events to
> receive mouse clicks, and the connect events to know when a PC has
> connected to force a graphics redraw.
>
> I am using a SmartControler CX and am talking thru a switch to a
> toshiba laptop running AdeptWindowsPC 3.0 G1 under XP Pro with
> service pack 3 installed.
>
> The controller is running V+ 16.4 D1
>
> I don't know if this helps or not but this is a new laptop and I
> cannot connect directly to the adept controller. (my laptop
> continuously thinks that the cable is disconnected then re-connected
> then disconnected over and over every 5 - sec) However this was the
> case when I wrote and tested the program weeks ago and it worked fine
> then.
>
> Does anyone know what could cause the events to not be recognized?
> I used iostat immediately after the FOPEN command where I specified
> the events to be monitored and it returned a 1 (success) yet no
> events are receieved.
>
> And if anyone knows anything about the connect disconnect issue that
> would be appreciated also.
>
> Thanks,
>
> Keith Given
>
>=20=20
juergen.bosse@robo-technology.de
 
Posts: 132
Joined: Tue Jul 09, 2002 5:00 pm

Re: Capturing mouse click events

Postby keith.given@kagrobotics.com » Mon Sep 15, 2008 5:00 pm

Thanks Juergen (Adept God) for your speedy response

I do have gigabit ethernet. However, i have dedicated that port to
Adept controllers so is there a way to force the port too only 100M?

I tried all three buttons.
I am not trying to capture keyboard events but will try a quick
change to see if they can be captured.
Definitely not the writeonly issue.
And I will try a separate FSET command.

I am currious because the program did work as-is before and I did not
make any changes. (at least not intentionally)
I wrote and tested it in a day but never made long term use of the
program. I was going to implement it today but it is not working.

I'll get back to you after I try the separate FSET

Thanks,

Keith


--- In adept_software@yahoogroups.com, Juergen Bosse
wrote:
>
> Hi Keith,
>
> that is strange. 16.4D1 is a good version (although 16.4D2 is
slightly
> better).
>
> A CX shouldn't have the connect/disconnect problem, either, I would
more
> expect that of a AWC board with 13.0F7 or some other version which
is
> not XP-compatible. If the switch cures it, then I rather expect
this to
> be a negotiation issue with the CX misinterpreting the 1000 Mbit
> request. Your new laptop certainly has GBit ethernet, doesn't it.
>
> However, I can't see how these two problems are related. It is
> suspicious, though.
>
> Ok, we need to narrow this down a bit:
> - do you correctly receive other events (keyboard, connect)?
> - have you tried all three mouse buttons?
> - have you made sure you don't have a /WRITEONLY in your FOPEN?
There is
> no error message if you do such nonsense...
> - have you tried putting the /EVENT statements into a separate FSET
> instruction?
>
> Actually I think the FSET (lun) "/EVENT ...." might help you here.
I
> never specify the events in the FOPEN, only in the FSET.
>
> Let us know,
> Juergen
>
> PS: And thanks for posting all the hardware and version info right
away!
> Although it takes some of the fun out of the game :-)
>
>
> givenkeith schrieb:
> >
> > Hi All,
> >
> > I have a simple program that I wrote to provide a graphical
interface
> > for I/O on an all V+ system. I wrote it a few weeks ago and it
worked
> > fine. I have just come back to it and for some reason the program
is
> > not receiving the mouse events. I have enabled the button events
to
> > receive mouse clicks, and the connect events to know when a PC has
> > connected to force a graphics redraw.
> >
> > I am using a SmartControler CX and am talking thru a switch to a
> > toshiba laptop running AdeptWindowsPC 3.0 G1 under XP Pro with
> > service pack 3 installed.
> >
> > The controller is running V+ 16.4 D1
> >
> > I don't know if this helps or not but this is a new laptop and I
> > cannot connect directly to the adept controller. (my laptop
> > continuously thinks that the cable is disconnected then re-
connected
> > then disconnected over and over every 5 - sec) However this was
the
> > case when I wrote and tested the program weeks ago and it worked
fine
> > then.
> >
> > Does anyone know what could cause the events to not be recognized?
> > I used iostat immediately after the FOPEN command where I
specified
> > the events to be monitored and it returned a 1 (success) yet no
> > events are receieved.
> >
> > And if anyone knows anything about the connect disconnect issue
that
> > would be appreciated also.
> >
> > Thanks,
> >
> > Keith Given
> >
> >
>
> --
>
_____________________________________________________________________
>
> Juergen Bosse
> Robo-Technology GmbH Sitz der Gesellschaft: Puchheim
> Benzstrasse 12 Amtsgericht München HRB 140072
> 82178 Puchheim Geschäftsf.: Jürgen Bosse, Jörn
Bosse
> Germany
>
> Tel: +49-89-8006390 http://www.robo-technology.de
> Fax: +49-89-807917 juergen.bosse@...
> Mob: +49-171-5178540
>
_____________________________________________________________________
>
keith.given@kagrobotics.com
 
Posts: 6
Joined: Wed Feb 20, 2008 5:00 pm

Re: Capturing mouse click events

Postby keith.given@kagrobotics.com » Mon Sep 15, 2008 5:00 pm

Juergen,

The separate FSET did not help.

The KEYPRESS events ARE received but still no BUTTON events are
received.

Keith

--- In adept_software@yahoogroups.com, Juergen Bosse
wrote:
>
> Hi Keith,
>
> that is strange. 16.4D1 is a good version (although 16.4D2 is
slightly
> better).
>
> A CX shouldn't have the connect/disconnect problem, either, I would
more
> expect that of a AWC board with 13.0F7 or some other version which
is
> not XP-compatible. If the switch cures it, then I rather expect
this to
> be a negotiation issue with the CX misinterpreting the 1000 Mbit
> request. Your new laptop certainly has GBit ethernet, doesn't it.
>
> However, I can't see how these two problems are related. It is
> suspicious, though.
>
> Ok, we need to narrow this down a bit:
> - do you correctly receive other events (keyboard, connect)?
> - have you tried all three mouse buttons?
> - have you made sure you don't have a /WRITEONLY in your FOPEN?
There is
> no error message if you do such nonsense...
> - have you tried putting the /EVENT statements into a separate FSET
> instruction?
>
> Actually I think the FSET (lun) "/EVENT ...." might help you here.
I
> never specify the events in the FOPEN, only in the FSET.
>
> Let us know,
> Juergen
>
> PS: And thanks for posting all the hardware and version info right
away!
> Although it takes some of the fun out of the game :-)
>
>
> givenkeith schrieb:
> >
> > Hi All,
> >
> > I have a simple program that I wrote to provide a graphical
interface
> > for I/O on an all V+ system. I wrote it a few weeks ago and it
worked
> > fine. I have just come back to it and for some reason the program
is
> > not receiving the mouse events. I have enabled the button events
to
> > receive mouse clicks, and the connect events to know when a PC has
> > connected to force a graphics redraw.
> >
> > I am using a SmartControler CX and am talking thru a switch to a
> > toshiba laptop running AdeptWindowsPC 3.0 G1 under XP Pro with
> > service pack 3 installed.
> >
> > The controller is running V+ 16.4 D1
> >
> > I don't know if this helps or not but this is a new laptop and I
> > cannot connect directly to the adept controller. (my laptop
> > continuously thinks that the cable is disconnected then re-
connected
> > then disconnected over and over every 5 - sec) However this was
the
> > case when I wrote and tested the program weeks ago and it worked
fine
> > then.
> >
> > Does anyone know what could cause the events to not be recognized?
> > I used iostat immediately after the FOPEN command where I
specified
> > the events to be monitored and it returned a 1 (success) yet no
> > events are receieved.
> >
> > And if anyone knows anything about the connect disconnect issue
that
> > would be appreciated also.
> >
> > Thanks,
> >
> > Keith Given
> >
> >
>
> --
>
_____________________________________________________________________
>
> Juergen Bosse
> Robo-Technology GmbH Sitz der Gesellschaft: Puchheim
> Benzstrasse 12 Amtsgericht München HRB 140072
> 82178 Puchheim Geschäftsf.: Jürgen Bosse, Jörn
Bosse
> Germany
>
> Tel: +49-89-8006390 http://www.robo-technology.de
> Fax: +49-89-807917 juergen.bosse@...
> Mob: +49-171-5178540
>
_____________________________________________________________________
>
keith.given@kagrobotics.com
 
Posts: 6
Joined: Wed Feb 20, 2008 5:00 pm


Return to Yahoo Software Group Archive

Who is online

Users browsing this forum: No registered users and 4 guests