View Single Post
  #2   Spotlight this post!  
Unread 07-11-2010, 01:57
biojae's Avatar
biojae biojae is offline
Likes Omni drives :)
AKA: Justin Stocking
FTC #5011 (BOT SQUAD) && FTC#72(Garage bots)&& FRC#0399 (Eagle Robotics)
Team Role: College Student
 
Join Date: Oct 2008
Rookie Year: 2008
Location: Lancaster
Posts: 276
biojae is a jewel in the roughbiojae is a jewel in the roughbiojae is a jewel in the rough
Re: Computer playing Bejeweled Blitz project

MSDN is your friend

http://msdn.microsoft.com/en-us/libr...8VS.85%29.aspx


This function allows you to move the mouse:
Code:
BOOL WINAPI SetCursorPos(
  __in  int X,
  __in  int Y
);
it is in the file: User32.dll
X and Y are absolute coordinates on the screen
with 0,0 being the upper left corner of the screen

It returns a boolean value.

It is a similar call to get the cursor's position
Code:
BOOL WINAPI GetCursorPos(
  __out  LPPOINT lpPoint
)

typedef struct {
  LONG x;
  LONG y;
} POINT;
I do not know how to use the labview library call node, but this should help.
__________________
FTC Team 72 - No site
FRC Team 399 - http://www.team399.org
2010 Rockwell Collins Innovation in Control Award - (Use of the CAN bus, among other reasons) Phoenix, Arizona!
Reply With Quote