Welcome to Dream.In.Code
Become a C++ Expert!

Join 137,394 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 2,149 people online right now. Registration is fast and FREE... Join Now!




How can i click a button programmatically;

 
Reply to this topicStart new topic

How can i click a button programmatically;

jharris
18 Sep, 2006 - 08:09 AM
Post #1

New D.I.C Head
*

Joined: 18 Sep, 2006
Posts: 4


My Contributions
I want help.How can i click a button to onother aplication programmatically.Please give me a code a example..
User is offlineProfile CardPM
+Quote Post

Amadeus
RE: How Can I Click A Button Programmatically;
18 Sep, 2006 - 08:43 AM
Post #2

g++ -o drink whiskey.cpp
Group Icon

Joined: 12 Jul, 2002
Posts: 12,230



Thanked: 40 times
Dream Kudos: 25
My Contributions
This will be dependant on what you mean by 'another application'. Do you mean you wish to write program that clicks (or simulates a click) a button in an application that you have not written? If so, this may still be possible, depending if the second application has an API available, or if you have access to the source code. Can you provide an example?
User is offlineProfile CardPM
+Quote Post

jharris
RE: How Can I Click A Button Programmatically;
18 Sep, 2006 - 09:01 AM
Post #3

New D.I.C Head
*

Joined: 18 Sep, 2006
Posts: 4


My Contributions
QUOTE(Amadeus @ 18 Sep, 2006 - 09:43 AM) *

This will be dependant on what you mean by 'another application'. Do you mean you wish to write program that clicks (or simulates a click) a button in an application that you have not written? If so, this may still be possible, depending if the second application has an API available, or if you have access to the source code. Can you provide an example?


Thanks for your interest.The second application has an api available.It is an application that has two buttons with label "Click me" but i can't click on it.If you don't understand please give me a mail to send you the application>>24 kb

This post has been edited by jharris: 18 Sep, 2006 - 09:10 AM
User is offlineProfile CardPM
+Quote Post

DeeViLiSh
RE: How Can I Click A Button Programmatically;
18 Sep, 2006 - 09:09 AM
Post #4

D.I.C Head
Group Icon

Joined: 25 Jul, 2006
Posts: 175



Thanked: 1 times
Dream Kudos: 575
My Contributions
It should be possible if you know the program's name.

Btw, what attachment are you talking about? o.o
User is offlineProfile CardPM
+Quote Post

jharris
RE: How Can I Click A Button Programmatically;
18 Sep, 2006 - 09:13 AM
Post #5

New D.I.C Head
*

Joined: 18 Sep, 2006
Posts: 4


My Contributions
QUOTE(DeeViLiSh @ 18 Sep, 2006 - 10:09 AM) *

It should be possible if you know the program's name.

Btw, what attachment are you talking about? o.o

sorry i can't attach the aplication.the name of application is:"hts".It is an application challenge that i have to solve.Do you want to mail you...
User is offlineProfile CardPM
+Quote Post

born2c0de
RE: How Can I Click A Button Programmatically;
18 Sep, 2006 - 09:53 AM
Post #6

printf("I'm a %XR",195936478);
Group Icon

Joined: 26 Nov, 2004
Posts: 3,935



Thanked: 34 times
Dream Kudos: 2800
Expert In: 80x86 Assembly, C/C++, VB6, VB.NET, C#, J2SE, Win32 API, Reversing

My Contributions
This has been somewhat answered in this thread.
User is offlineProfile CardPM
+Quote Post

Amadeus
RE: How Can I Click A Button Programmatically;
18 Sep, 2006 - 09:59 AM
Post #7

g++ -o drink whiskey.cpp
Group Icon

Joined: 12 Jul, 2002
Posts: 12,230



Thanked: 40 times
Dream Kudos: 25
My Contributions
I think the user may be referring to writing a program that would simulate a mouse click in a third party application (like MS Access for example) which would fire the appropriate actions in that application.
User is offlineProfile CardPM
+Quote Post

jharris
RE: How Can I Click A Button Programmatically;
18 Sep, 2006 - 10:54 PM
Post #8

New D.I.C Head
*

Joined: 18 Sep, 2006
Posts: 4


My Contributions
Ok guys thanks i find it.I made the programm in c++
User is offlineProfile CardPM
+Quote Post

born2c0de
RE: How Can I Click A Button Programmatically;
19 Sep, 2006 - 06:50 AM
Post #9

printf("I'm a %XR",195936478);
Group Icon

Joined: 26 Nov, 2004
Posts: 3,935



Thanked: 34 times
Dream Kudos: 2800
Expert In: 80x86 Assembly, C/C++, VB6, VB.NET, C#, J2SE, Win32 API, Reversing

My Contributions
It would be great if you could post the code here so that it might help someone else who might have the same problem or might be interested in this.
User is offlineProfile CardPM
+Quote Post

violent_crimson
RE: How Can I Click A Button Programmatically;
19 Sep, 2006 - 04:02 PM
Post #10

New D.I.C Head
*

Joined: 31 Aug, 2006
Posts: 36


My Contributions
another one...
User is offlineProfile CardPM
+Quote Post

Reply to this topicStart new topic
Time is now: 12/5/08 02:42AM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month