Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help a newb figure this out

Status
Not open for further replies.

TheRealAmaD

Technical User
Nov 1, 2004
4
GB
Right 'ho,

I've been on MSDN etcetera and I found that the code (albeit very simple :) ) To move the cursor on screen is:

BOOL SetCursorPos(

int X,
int Y
);

And so I made an application with the following code half expecting it to work:

#include <iostream>
using namespace std;

int main()
{
return 0;
}

BOOL SetCursorPos(

int 400,
int 500
);

As you can see, this script has no structure, no anything, and the author has no clue :(

All I want to do is move the cursor to that position (and after the initial move, probably more)

Can anyone help me please :)
 
>And so I made an application with the following code half expecting it to work

Forums like these aren't the best way to learn an entire language from scratch. Give a hoot - read a book.

/Per

www.perfnurt.se
 
Code:
BOOL SetCursorPos(      

    int X,
    int Y
);
looks like the declaration of a function that sets the cursor position.

To actually set the cursor position, you should call this function.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top