Author Topic: Notify Icon  (Read 11805 times)

Offline Panda

  • Global Moderator
  • Bot Destroyer
  • *****
  • Posts: 476
  • Computer Science Undergraduate (nerd)
    • View Profile
Notify Icon
« Reply #15 on: January 16, 2010, 05:45:46 PM »
That is to detect whether the mouse is in the right place or not.

Offline bacillus

  • Bot Overlord
  • ****
  • Posts: 907
    • View Profile
Notify Icon
« Reply #16 on: January 16, 2010, 05:55:26 PM »
On further inspection, it looks like the rec block might be a good idea to put around the whole method (I assume that this is what prevents the code being exectued multiple times in the same timeframe. Could hint at threading issues...)

What are the triggers of this method? It looks like it triggers on the mouse moving, when it should be on the mouse being clicked.
"They laughed at Columbus, they laughed at Fulton, they laughed at the Wright brothers. But they also laughed at Bozo the Clown."
- Carl Sagan

Offline Panda

  • Global Moderator
  • Bot Destroyer
  • *****
  • Posts: 476
  • Computer Science Undergraduate (nerd)
    • View Profile
Notify Icon
« Reply #17 on: January 16, 2010, 05:59:43 PM »
That is just the name of the sub, that doesn't effect the triggers, it was what it was called originly

Offline bacillus

  • Bot Overlord
  • ****
  • Posts: 907
    • View Profile
Notify Icon
« Reply #18 on: January 16, 2010, 06:02:45 PM »
Okay, I'm still in the dark about the role MSG plays. Is it there for debug purposes or does it play another role?
"They laughed at Columbus, they laughed at Fulton, they laughed at the Wright brothers. But they also laughed at Bozo the Clown."
- Carl Sagan

Offline Panda

  • Global Moderator
  • Bot Destroyer
  • *****
  • Posts: 476
  • Computer Science Undergraduate (nerd)
    • View Profile
Notify Icon
« Reply #19 on: January 16, 2010, 06:06:10 PM »
MSG is the part where the information about the mouse is stored, then that is checked against the different constants about the different states of the mouse.

Offline bacillus

  • Bot Overlord
  • ****
  • Posts: 907
    • View Profile
Notify Icon
« Reply #20 on: January 16, 2010, 06:10:26 PM »
I see. That leaves button unreferenced, and the name would imply that it carries some information regarding the button clicked...
"They laughed at Columbus, they laughed at Fulton, they laughed at the Wright brothers. But they also laughed at Bozo the Clown."
- Carl Sagan

Offline Panda

  • Global Moderator
  • Bot Destroyer
  • *****
  • Posts: 476
  • Computer Science Undergraduate (nerd)
    • View Profile
Notify Icon
« Reply #21 on: January 16, 2010, 06:18:48 PM »
It is still something to do with the "X" value changing incorectly.
« Last Edit: January 16, 2010, 06:19:03 PM by Panda »

Offline bacillus

  • Bot Overlord
  • ****
  • Posts: 907
    • View Profile
Notify Icon
« Reply #22 on: January 16, 2010, 06:45:34 PM »
What is the range of expected and actual values?
"They laughed at Columbus, they laughed at Fulton, they laughed at the Wright brothers. But they also laughed at Bozo the Clown."
- Carl Sagan

Offline Panda

  • Global Moderator
  • Bot Destroyer
  • *****
  • Posts: 476
  • Computer Science Undergraduate (nerd)
    • View Profile
Notify Icon
« Reply #23 on: January 16, 2010, 06:57:07 PM »
From MSG: I am expecting 514 which is what I get without the simulation running, but when the simulation is running I get 428.
From X: I am expecting 7680 which, again, is what I get without the simulation running but, again, I get the different result of 6432.602.

Outside VB6, running it normally, I dont know what the results are, I just know that they change

Offline bacillus

  • Bot Overlord
  • ****
  • Posts: 907
    • View Profile
Notify Icon
« Reply #24 on: January 16, 2010, 07:06:50 PM »
A pure guess, but could it be that the 'actual' simulation size somehow changes the perceived values?
"They laughed at Columbus, they laughed at Fulton, they laughed at the Wright brothers. But they also laughed at Bozo the Clown."
- Carl Sagan

Offline Panda

  • Global Moderator
  • Bot Destroyer
  • *****
  • Posts: 476
  • Computer Science Undergraduate (nerd)
    • View Profile
Notify Icon
« Reply #25 on: January 16, 2010, 07:08:50 PM »
I was thinking that, I might check that now.

Offline bacillus

  • Bot Overlord
  • ****
  • Posts: 907
    • View Profile
Notify Icon
« Reply #26 on: January 16, 2010, 07:12:22 PM »
Could you post the X-calculation code, or is that black-boxed?
"They laughed at Columbus, they laughed at Fulton, they laughed at the Wright brothers. But they also laughed at Bozo the Clown."
- Carl Sagan

Offline Panda

  • Global Moderator
  • Bot Destroyer
  • *****
  • Posts: 476
  • Computer Science Undergraduate (nerd)
    • View Profile
Notify Icon
« Reply #27 on: January 16, 2010, 07:14:41 PM »
We have a winner, it does it according to the size of the feild, now I need to find a way around this

Offline bacillus

  • Bot Overlord
  • ****
  • Posts: 907
    • View Profile
Notify Icon
« Reply #28 on: January 16, 2010, 07:30:51 PM »
Is there a way to reference the window/desktop size instead of the sim? It could also be an accidental reference...
"They laughed at Columbus, they laughed at Fulton, they laughed at the Wright brothers. But they also laughed at Bozo the Clown."
- Carl Sagan

Offline Panda

  • Global Moderator
  • Bot Destroyer
  • *****
  • Posts: 476
  • Computer Science Undergraduate (nerd)
    • View Profile
Notify Icon
« Reply #29 on: January 16, 2010, 07:39:01 PM »
Thats exactly what I am thinking, I need to find a way then to reference the desktop or find out a way to... I have no idea.