473,395 Members | 1,676 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,395 software developers and data experts.

Console: Mouse Movements

Greetings,

Is there a way to use the mouse in a console application? ... such as
detecting what row/col a mouse was clicked, whether the left middle or right
mouse button and whether the mouse button is down while a mouse moves?
There doesn't appear to be any built-in capabilities in C#, but I was
wondering if there is a way to do so via p-invoke. In any case, I've google
for quite some time and it appears to be hard to find any direct
information. I see references to people specifying mouse input via the
console, but I don't see a concrete use of someone actually using the mouse
with the console.
Thanks,
Shawn

http://www.zenofdotnet.com
Nov 23 '05 #1
2 2339
I have no idea but a suggestion.
Try INK SDK...
"Shawn B." <le****@html.com> wrote in message
news:u8**************@TK2MSFTNGP09.phx.gbl...
Greetings,

Is there a way to use the mouse in a console application? ... such as
detecting what row/col a mouse was clicked, whether the left middle or
right mouse button and whether the mouse button is down while a mouse
moves? There doesn't appear to be any built-in capabilities in C#, but I
was wondering if there is a way to do so via p-invoke. In any case, I've
google for quite some time and it appears to be hard to find any direct
information. I see references to people specifying mouse input via the
console, but I don't see a concrete use of someone actually using the
mouse with the console.
Thanks,
Shawn

http://www.zenofdotnet.com

Nov 23 '05 #2
I am not sure if the mouse events work the same in console as they do in
forms but here is some info on mouse events in forms.

http://msdn.microsoft.com/library/de...deltatopic.asp

So if this answer covers what you already knew.

"Shawn B." wrote:
Greetings,

Is there a way to use the mouse in a console application? ... such as
detecting what row/col a mouse was clicked, whether the left middle or right
mouse button and whether the mouse button is down while a mouse moves?
There doesn't appear to be any built-in capabilities in C#, but I was
wondering if there is a way to do so via p-invoke. In any case, I've google
for quite some time and it appears to be hard to find any direct
information. I see references to people specifying mouse input via the
console, but I don't see a concrete use of someone actually using the mouse
with the console.
Thanks,
Shawn

http://www.zenofdotnet.com

Nov 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: simo | last post by:
I'm looking to make an app to record my mouse movements and play them back. It will essentially be for unit testing websites, so I suppose it could be done using one of the wxPython MSIE ActiveX...
0
by: Stephen Williams | last post by:
I am migrating a VB 6 PictureBox control to VB.NET. In VB 6, this control modified its border style during the mouse down and up events to provide user feedback that it was selected. Once...
1
by: Jonny | last post by:
Hi all, Does anyone know how to capture the Windows Keys (I know that they are out of the ascii key range) and how to capture and record Mouse movements? Thanks, /Jonny
1
by: John | last post by:
Hi all: I have an application that hides itself and displays an icon in the system tray. Is it possible for this application to detect keystrokes and/or mouse movements while hidden/minimized....
1
by: Benny Raymond | last post by:
In my attempt to make a macro recording program where i can then playback mouse movements i'm running into a big problem: I'm trying to simulate the movement of the mouse to a point on the...
2
by: Klaus Jensen | last post by:
Hi! I need an ASP.net control, which makes it possible for the user to define imagemaps. I show an image, the user can define areas (polygons would be nice, but just rectangles is ok), and I...
3
by: madhuri.eerupula | last post by:
Hi. How to simulate(automatic) mouse movements and click operation using c#. Actually, i got pixels in the face (face tracking) right now and i need to move mouse(automatically, without using...
2
by: bryan rasmussen | last post by:
Hi, I've been looking at autohotkey to do some different usability hacks for windows http://www.autohotkey.com/ one of the benefits of this language is it allows one to catch keyboard usage,...
2
by: DanAusitn | last post by:
Good morning folk, a quick question to anyone who can help. i am working on a program and i am using the below code to simulate mouse movement to certain co-ords, but the thing is the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...

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.