473,414 Members | 1,843 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

Make mouse click

134 100+
is there a way to make the mouse "click"

the reason is i want to make an app that will automatically click on something

thanks
Jun 11 '07 #1
6 2751
ilikepython
844 Expert 512MB
is there a way to make the mouse "click"

the reason is i want to make an app that will automatically click on something

thanks
You're using the Windows API right? Try this function.
Jun 11 '07 #2
lumpybanana247
134 100+
You're using the Windows API right? Try this function.
thanks for the reply, but "LPINPUT" was undeclared.

i included "Winuser.h and "Windows.h"
i also put User32.lib in the library directorys.

thanks again
Jun 12 '07 #3
ilikepython
844 Expert 512MB
thanks for the reply, but "LPINPUT" was undeclared.

i included "Winuser.h and "Windows.h"
i also put User32.lib in the library directorys.

thanks again
Hmm, I'm not sure what's the problem so could you please post the code that you used.
Jun 12 '07 #4
lumpybanana247
134 100+
the only thing i did was added "
UINT SendInput(
UINT nInputs,
LPINPUT pInputs,
int cbSize
);
"
into my script (with nothing much in it) just to see if it worked
Jun 12 '07 #5
ilikepython
844 Expert 512MB
the only thing i did was added "
UINT SendInput(
UINT nInputs,
LPINPUT pInputs,
int cbSize
);
"
into my script (with nothing much in it) just to see if it worked
nInputs, pInputs, and cbSize are parameters. You need to pass them to the function. Did you declare them?
Jun 12 '07 #6
lumpybanana247
134 100+
nInputs, pInputs, and cbSize are parameters. You need to pass them to the function. Did you declare them?
o- i see, thanks a lot
Jun 14 '07 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: punkin | last post by:
I am trying to catch mouse position on the entire screen by dynamically generating mouse click event at every 100 ms. My code only works for IEs but not any Netscape or Gecko-based browsers. The...
1
by: ajay | last post by:
I have following code for a slide menu but i twiked it to work for a single level menu. Open it in a Browser to get a clear picture. I have 2 Qs 1) How to make first entry as non-link. i.e i...
6
by: Selden McCabe | last post by:
I have a form with a bunch of image buttons. When the user moves the mouse over a button, I want to do two things: 1. change the Imagebutton's picture, and 2. make another control visible. I'm...
12
by: SJ | last post by:
Hope someone can help me out there I'm struggling with a particular problem... I have a form with many tab pages. On one tab page I've got a button which when clicked with a mouse adds items...
1
by: Per Larsson | last post by:
Hi all! I am working with a project and want to make a form that is semi transparent, and transparent to mouse clicks. (Se through and click through.) The form shall be visible but opaque and the...
5
by: Nick | last post by:
Hey guys, I have 2 events on a windows forms datagrid, the mouse move as well as the double click events. What's happening is that when I double click on a row in the grid, the mouse move event...
2
by: scott_gui | last post by:
I am creating a Windows application: The mouse event <Double-Button-1> has a conflict when the <Button-1> event also has a binding. Double clicks will first perform the single click action. This...
0
by: marko svaco | last post by:
Hi, I have .Net VB and have worked with it, so I now some stuff in general. It woud be great if someone could help me, or give me some advice. I'm visiting a web page, so all the buttons and so...
3
by: Techsatish | last post by:
how to make a mouseup event called only once during a double click event? here double click is made on a tree node in a tree control. I have the code inside mouseup event....in runtime the...
12
by: Morten Snedker | last post by:
I open a file for input. Each line is handled individually. Every time a line has been handled I wish to wait for ˝ second before reading the next. Am I doing it right or wrong ? (I think it's...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.