|
Might be a mistake during your copy-pate of the example code but it looks like you're missing
[DllImport("User32.dll")]
static extern void mouse_event(MouseFlags dwFlags, int dx, int dy, int dwData, UIntPtr dwExtraInfo);
|
|
|
|
|
My guess is that you are missing the click. The reason why is that the coordinates sent to the mouse event MUST match the coordinates that the mouse is actually at. If not, windows ignores the event altogether. I would open Spy++ and make sure that all your messages are being sent identically as when you do it manually. I also didn't check your SendMessage syntax/data, so you may have done that wrong as well. If you fix the mouse_event problem and it still doesn't work, let me know and I will check the other. Good luck,
Sounds like somebody's got a case of the Mondays
-Jeff
|
|
|
|
|
Just checked it out, the mouse click event works, my problem is that the shift key is not being depressed.
Does my shift code look ok?
|
|
|
|
|
What happens if you just send the SHIFT key (0x10)? I also wonder if, since you are sending a specific shift key, if you have to set bit 24 on the lparam sent with SendMessage. In the past I have also had instances when I had to use PostMessage for an application to receive the keystroke. If I were you I would go through the following progression:
1. Try using SendMessage (up + down) for something simple (like an 'a' 0x41).
2. Try using PostMessage (up + down) for something simple
3. Try using keybd_event (up + down) for something simple
If none of the above messages were received by your target application (and the last win32 error is not from your calls to the methods), then post your results so I can help some more. Otherwise, continue using the message type (Send, Post, or event) that worked from steps 1-3:
4. Modify your messages to send the Shift key (if it doesn't work, try sending the left or right specific shift keys; if you still get nothing, use Spy++ to see EXACTLY what each parameter is being set to, and mimick exactly those params)
After you complete these steps, you should be able to get your code working. Here is a reference for WM_KEYDOWN[^] if you need it. Let me know if this helps,
Sounds like somebody's got a case of the Mondays
-Jeff
|
|
|
|
|
|
Hi
I search an ORM tool for C# (working with ADO.NET) which supports obfuscation.
I tried NHibernate, but it does not support obfuscation.
Anyone knows one ?
Thanks !
|
|
|
|
|
A large portion of ORM tools use reflection - so obviously if you start obfuscating property names then things will break.
First time I've heard someone ask this so I have no idea how Diamond Binding stacks up (and I have to admit I'm curious). In an ideal world the obfuscator would pick up all string references to types in config and sort it out.
Give it a try and let me know how it goes
|
|
|
|
|
hi
i want to save MsWord document to sql server database as binary type.
i want when user like see document, it extract from database to disk (*.doc), then load into my app and display it's content (with images and tables and ...), but how to do ?
thanks
|
|
|
|
|
|
Hey guys,
I'm using FreePDF for quite a while now to print directly to pdf. It seems there is a possibility to create a printer and bind a server or process to it to grab the PostScript output of it and do some stuff with it afterwards. A few weeks ago I saw something similiar on the site of my VoIP provider: A fax printer which can fax directly (nothing new but programmed in .NET).
So I'm curious if somebody know how to create the printer and connect with a service to it. Could come in handy sometimes (I think here in the direction of archives or so)
Thanks in advance.
Christoph
|
|
|
|
|
It's so easy when you think hard enough. I was just sitting at work when it hits me. FreePDF just uses a redirected printer port to redirect all the Post Script output to a program. So simple
BR
Christoph
|
|
|
|
|
hi .
can any one know a free or opensource pdf library that support Unicode?
sepel
|
|
|
|
|
Why don't you google for something like that? You will get a ton of results in 5 seconds. Whereas you have to wait here. And don't cross-post. It's very rude, and it makes people not care to help you.
I'm going to become rich when I create a device that allows me to punch people in the face over the internet.
"If an Indian asked a programming question in the forest, would it still be urgent?" - John Simmons / outlaw programmer
|
|
|
|
|
i searched internet befor.
sepel
|
|
|
|
|
I highly doubt that. I found serveral libs in less than a minute.
I'm going to become rich when I create a device that allows me to punch people in the face over the internet.
"If an Indian asked a programming question in the forest, would it still be urgent?" - John Simmons / outlaw programmer
|
|
|
|
|
i searched one week befor .i found some library but only one support unicode;
or sum of them had not any documantion or they had incomplete document or example.
i think that found any one hear who work with them.
[some of pdf library^]
sepel
|
|
|
|
|
sepel wrote: sum of them had not any documantion or they had incomplete document or example
You may not expect a complete shrink-wrap product for free. Take the hints from various downloads and work on it.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
sepel wrote: i searched internet befor.
Now go try it again, you will be amazed at the advancements Google has made over the last 10 years!
|
|
|
|
|
leppie wrote: you will be amazed at the advancements Google has made over the last 10 years!
Good one
I'm going to become rich when I create a device that allows me to punch people in the face over the internet.
"If an Indian asked a programming question in the forest, would it still be urgent?" - John Simmons / outlaw programmer
|
|
|
|
|
racy
sepel
|
|
|
|
|
Hi All
I create BackUp DataBase But The Permission IS Not Allow me To Restor This BackUp .
Who I Can Change The Permission for the Sql Server2005?
Thanks For Any Body Hellp me
Thaer
|
|
|
|
|
You ought to logon with a sa or an equivalent privileged account to use database backup/restore operations.
You may like to check out these troubleshooting tips:
http://www.databasejournal.com/features/mssql/article.php/1547551[^]
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
hi
every one. any one can help me where can i find tutorials on Asterisk.net.

|
|
|
|
|
|
Hello...
I get an error if I try to serialize CultureInfo using XmlSerializer.
Are there any ways to serialize CultureInfo ?
Thx...
|
|
|
|