GIDForums  

Go Back   GIDForums > Computer Programming Forums > MS Visual C++ / MFC Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 25-Mar-2005, 10:09
Padek78 Padek78 is offline
New Member
 
Join Date: Mar 2005
Posts: 2
Padek78 is on a distinguished road

Automatic mouse moving and clicking


Hello!

This is my first post here . I am very beginer in C++ but obviously fully motivated to be an expert someday . In my work we use Visual Studio, but as I said I'm learning at the moment and I have some problem that should be solve in the shortest possible time (a little bit short for learning C++ ) and that I would like to describe:

We have an application which controls devices. In each of this device the telephone numbers must be replaced with another one which are stored in let say MS Excell in one column. The application has a "call in" button that gives you access to one particular device (for changing telephon numbers). But real problem is that there is quite a lot of this devices - to be more precise - a couple of thousands... . And I thought that if I made a program which automaticaly does what normally is being done manually it would be quite relief not to do it manually for let say three month .

So now the case:
How to write a code (what methods and their implementation) which simulates changes of coordinates of a mouse pointer and clicks.

I will run an let's name it : "call in application" and put it's window on a certain place on the screen and then run my own program which automaticaly set mouse pointer to a coordinates of the "call-in" button of "call in application" and click it, then wait for let say 20 seconds and goes to the different coordinates to click another button and so on

Pleeeeease help!
  #2  
Old 28-Mar-2005, 20:10
Max Payne's Avatar
Max Payne Max Payne is offline
Regular Member
 
Join Date: Apr 2004
Location: 3° 08 North 101° 42 East
Posts: 332
Max Payne is a jewel in the roughMax Payne is a jewel in the roughMax Payne is a jewel in the rough
hi,

I'm not sure on how to do with moving and mouse click, but if you want click on a button, use PostMessage and WM_CLICK message to click a button, and chack out hooking a window to get its child.
__________________
When you say "I wrote a program that crashed Windows," people just stare at you blankly and say "Hey, I got those with the system, for free." Linus Torvalds
  #3  
Old 28-Mar-2005, 23:50
Padek78 Padek78 is offline
New Member
 
Join Date: Mar 2005
Posts: 2
Padek78 is on a distinguished road
Thanks man but unfortunately it's not a case with a button . I know how to do that with clicking a button, but it must be fully automatic - just run a program and enjoy the work it does for you... (sth like that)

If only I could do that with normal Windows' calculator it would be great base for resolving my problem. I mean I start windows' calculator and put it in certain place on a screen. Then start my program which automaticaly clicks let say 5 + 3 = 8 , with some specifies timers between clicks. If I could do that with calculator I could use the same mechanism only with coordinates and timers changed a little bit to the application I have to use.

What is strange is the fact that I can't find any answer to my question on the internet . Maybe I can't searching properly... :-? , but google is on hot believe me
 
 

Recent GIDBlogToyota - 2008 September Promotion by Nihal

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 15:49.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.