473,804 Members | 3,732 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2352
I have no idea but a suggestion.
Try INK SDK...
"Shawn B." <le****@html.co m> wrote in message
news:u8******** ******@TK2MSFTN GP09.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
3098
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 widgets, but I'd like it to work on other platforms and not just in web browsers. Anyone got any ideas for how this could be done? I guess if reading/writing mouse movements is difficult, I could limit
0
2697
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 selected its position was adjusted in accordance with the mouse move events. After migrating it to VB.NET I tried setting the PictureBox class's BorderStyle to Fixed3D or FixedSingle during the Mouse Down event. However, doing so seems to prevent...
1
1998
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
1687
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. So the application is not loaded and visible, so mouse movements on the form won't work, I need the program to be able to detect mouse movement on the system level. Thanks in advance.
1
19246
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 screen. With my current code the mouse is only moving in the X direction and not in the Y direction (however my debug line is telling me that it's trying to move in the Y as well). I've read everything I could find online, tried some hacky ways of...
2
2353
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 can access these areas, save them and use them to generate imagemaps. It is to be used with maps, where the client can add information to areas of
3
34833
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 mouse manually) i.e., simulate mouse click operation using those pixels in c#. I think we can use robot() class in java , to achieve this, but how can we do this using c#. Hope you understand my problem and get bck to me asap. thanx bye
2
4790
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, joystick usage, and mouse usage inputs very easily at a global level or at application levels by watching applications for events within the applications. I was wondering if there were any python libraries that provided
2
1434
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 co-ords 0 , 0 refer to the position at the very top left of the monitor. what i want is for the co-ords 0 , 0 to refer to the top left in my form so the mouse clicks and movements stay inside the form.
0
9706
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10082
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9157
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7621
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6854
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5652
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4301
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3821
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2993
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.