|
ya i knw .NET Framework doesn't support this. I am using same dll and using this i am able to install hooks and also able to get the events on pressing of keys.
But i want to install the hooks for a particular application, so is there any method that give me this functionality or is there any way to get the application name on which we have pressing keys, so that i can do something on events if hooks comes from a particular application.
|
|
|
|
|
you can do this only by using native dlls.....
If you already installed the hooks successfully then the task is much simply accomplished by just getting the active application by getting the active window.
Get the handle of the ActiveWindow. you can refer this page.link[^]
Determine the application from the handle and map the current mouse and keyboard events to this application.
Have a Happy Coding.....
|
|
|
|
|
thanks for your reply. I think this will help me ...
thanks a lot dear ...
|
|
|
|
|
|
Hi,
In this code for example:
double Start =1;
double Jump =0.2;
double End = 2;
List<double> m_List = new List<double>();
for(double Num = Start ; num<=End;Num+=Jump)
m_List.Add(num);
i want to get the numbers 1 , 1.2 , 1.4 , 1.6 , 1.8 , 2
But im getting 1 , 1.2 ,1.4 ,1.5999999 ,1.79999999 ,1.99999999
How can i fix it?
(The numbers can be in 2e-04,300,6e-8 for example)
|
|
|
|
|
have a look at decimal[^] that might be better for you
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
you can use math() function to convert e.g 1.5999999 to 1.6 using math.ceil or math.floor
|
|
|
|
|
|
Hi,
How to pass parameters to a Access database using oledb provider and enterprise library. We used below code to update category table which has two colums ID and CategoryName. The code runs successfully without any errors but the table row remains unchanged. What could be the problem
Database db = DatabaseFactory.CreateDatabase("MyDemoConnection");
DbCommand dbCommand = db.GetSqlStringCommand("Update Category SET CategoryName = @CategoryName WHERE ID = @ID");
db.AddInParameter(dbCommand, "@ID", DbType.Int32,(int) 1);
db.AddInParameter(dbCommand, "@CategoryName", DbType.String, "Just a Change");
int i = db.ExecuteNonQuery(dbCommand);
<connectionStrings>
<add name="MyDemoConnection"
connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:\db1.mdb;User Id=admin;Password=;"
providerName="System.Data.OleDb"/>
</connectionStrings>
It would be great if any one can redirect me to the exact way
modified on Friday, August 21, 2009 7:21 AM
|
|
|
|
|
Here there is a simple solution.
Life is a stage and we are all actors!
|
|
|
|
|
Dear All, yet i have tried different methods to import data from excel to SQL SERVER Table.
i have used COM,OleDB.
what are the best way to export all excel format files ".xls,xlsx" to SQL 2k and 2k5?
Abdul Rahaman Hamidy
Database Developer
Kabul, Afghanistan
|
|
|
|
|
Generally speaking, it is best to first save the excel file as a delimited text file, or xml file, in Excel itself.
If that is not an option, you could try to convert it in your application first, and only then try to import it into your database.
You can try to import directly from the Excel file, but the code will be sensitive to version changes of Excel (it will work for Excel 2003 but not for Excel 2007 for example)
Another option is ODBC.
My advice is free, and you may get what you paid for.
|
|
|
|
|
|
Well, if a network connection exists, you can use it. You can't just hijack another app to find it tho
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
To Senior Programmer...
Please Help Me...
I Have Task make application Digital Mark Reader...
Please Help Me...
I Don't Have Idea...
|
|
|
|
|
Well, if its course work talk to your tutor, if its a task at work talk to your manager, and if its a job you bid for and won tell your client you are told lies and you have no idea what you are doing.
Nobody is going to provide code for you.
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
It's funny, your profile says your are from the USA.
Why I don't have a clue of what you are trying to achieve after reading your question?
Surely you master the English well enough to ask a meaningful question?
A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station....
_________________________________________________________
My programs never have bugs, they just develop random features.
|
|
|
|
|
dear all,
i am about to begin a project in VOIP and it will be P2P based.Here i am just trying to implement VOIP using simple microphone and speakers.
Can anyone help me by giving sample source code.
thanks in advanced
|
|
|
|
|
If you'd like the source code to do VOIP, I recommend going over to the job site and hiring someone to write it.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Hey budy his question was a litle bit foolish ....... but I was also trying to do VOIP(first on Local
area ...... then in advance on the WAN ) ........ I have no idea about socket programming but I am reading more abt them and asking questions here .......... But you should have told me like that ........ It will b nice 4 him .... Thanks
|
|
|
|
|
Hey budy ......... try to google on the net ........ and you can also search the MSDN library
|
|
|
|
|
I have a repeater that I am dynamically generating controls for based on some DB data using a class inheriting ITemplate. I am currently generating a checkbox and a textbox for each row in the DB which is working fine. The problem is that I want the textbox to be invisible until the user clicks the checkbox corresponding to the adjacent textbox. I have wired up the click changed event, but I cannot access the textbox only the checkbox. Should I use a Delegate or some other method of enabling and disabling the visibility of the textbox.
|
|
|
|
|
I ended up using javascript to hide and unhide the textbox.
|
|
|
|
|
As a final year project I am interested in doing p2p voip.But I have no idea how to start the project.Plz provide me some sample tutorial or research pages rather than links.
Looking for your positive response.
|
|
|
|
|
Well, all you need for that, is code to compress voice and deliver it over the web. Search for audio compression, not voip.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|