|
Hello.
I was wondering if there is any easy function I could call to input key commands directly into the keyboard buffer. One that I could use for a windows dialog application just like I was typing them in with the keyboard.
Please help!
|
|
|
|
|
|
I was wondering if there is any easy function for controlling the mouse? One that I could use in a windows (dialog) application.
I need the source code for setting the x,y position of the mouse pointer in windows as well as simulation mouse button clicks.
Preferably one that doesn't require 5 pages of strange word in random order, 7 years of university in programming and hours searching the net for lost (if ever existing) header files... Just one I can call like this:
set_mouse_pos(x,y);
and
mouse_button(1);
I can find code examples of how to read mouse anywhere but when it comes to simulation mouse movements, there’s nothing. Please help.
|
|
|
|
|
take a look at SendInput
MSDN says this about SendInput :-
"The SendInput function synthesizes keystrokes, mouse motions, and button clicks."
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
Nish is a BIG fan of Goran Ivanisevic
|
|
|
|
|
Dir forum,
I want to delete some files in system folder likes "c:\\windows\\temporary internet files\\*.*"
But when I use some code like this, it don't run well.
SHFILEOPSTRUCT sh;
sh.hwnd = GetSafeHwnd();
sh.wFunc = FO_DELETE;
sh.pFrom = "c:\\windows\\temporary internet files\0";
sh.pTo = NULL;
sh.fFlags = FOF_NOCONFIRMATION | FOF_SILENT;
sh.hNameMappings = 0;
sh.lpszProgressTitle = NULL;
SHFileOperation (&sh);
Any ideas???
Please help me!
Thank you very much!
|
|
|
|
|
Hi, i need some help with detecting when a CD is inserted or ejected from a drive. I've tried to override get the message handler...
afx_msg BOOL CWnd::OnDeviceChange( UINT nEventType, DWORD dwData );
but it doesn't seem to be called? The docs say that the WM_DEVICECHANGED message is sent to all top level windows? so shouldn't all the apps get this message.
If anyone has any code for this it would be really helpful
Thanks.
Jared Allen.
|
|
|
|
|
Where can get a copy of source code of MPEG2/MPEG4 codec for windows and free of fee?If they are there,please tell me the URL or links.thank you.
Scratch
|
|
|
|
|
I like to write a program to delete some special folder. I try this code but it generate error : "Can not delete file: file system error (1026)".
SHFILEOPSTRUCT sh;
sh.hwnd = GetSafeHwnd();
sh.wFunc = FO_DELETE;
sh.pFrom = "c:\\windows\\temporary internet files\0";
sh.pTo = NULL;
sh.fFlags = FOF_NOCONFIRMATION | FOF_SILENT;
sh.hNameMappings = 0;
sh.lpszProgressTitle = NULL;
SHFileOperation (&sh);
please help me!
Thank you very much!
BUNG
|
|
|
|
|
Hi everybody.
I have to capture Dial-In connections to a server,
Can every body give me a sample code in VC++?
Help me please,
Regards.
|
|
|
|
|
I'm looking for some code that will manage the display of a storyboard
found in most digital film editors like Adobe Premiere, Macromedia Director,
ULead VideoStudio, etc. Anyone seen anything out there?
|
|
|
|
|
Thanks give some code to me.
Mail to : hellopk@163.com
|
|
|
|
|
how to reset the autonumber id when deleting records in a table......meaning how to have the id starting at 1 again
|
|
|
|
|
In Access, first delete the rows, then switch to design mode, change the datatype of the autonumber field to whatever, save the table. Change back and save again!. This can only be done on an empty table (I think), and I am not sure you can do it externally. If it is possible you would need to drop and then create the table using SQL syntax.
Consultant, system/web developer.
IMS Consulting AB, Sweden
|
|
|
|
|
Another way to do it is after deleting the rows compact the database.
Best regards,
Mark
www.mjsoft.co.uk
|
|
|
|
|
I'm looking for code samples for the Navigate2 function. Can anyone point me in the right direction?
|
|
|
|
|
Have you tried the following?
http://msdn.microsoft.com/library/default.asp?url=/workshop/browser/webbrowser/WebBrowser.asp
|
|
|
|
|
Hi there!
I'm looking for the way for the hands off install of the new printer driver on multiple workstations. I've tried to do it myself according to MSDN (AddPrinterDriver, AddPrinter, ...) with no success.
I don't want to invent the wheel any more, so I'll be very thankful for any trick, tip, link, etc. concerning:
1. Ready to use utility for this purpose (if any exists).
2. Article with good explanation of the driver installation process.
3. Tools for INF file processing/interpreting, especially INF file for printer driver.
Thanks in advance.
Regards,
Gennady
|
|
|
|
|
Hi!
Does anybody know where it is possible to obtain a free C++ source code for BCD or String Arithmetic (the last one is even better for me). The problem is I'm developing some Banking SW, so I can't use a floating point arithmetic in it, because it is prohibited by the country law. The only solution I know at the moment is to use the RogueWave RWDecimal<> template class. But the RW library is huge and imho ugly, I don't want to be tied to it. In addition, I need not so much functionality: only '+', '-', '*', and probably '/' operation... Could you help?
PS: Of course, it is possible to start writing the necessary class from scratch, but better is to take somebody's code and adjust it for my needs.
Best Regards,
Dmitry Leonov
|
|
|
|
|
Hi there,
If you have some source code to lock some key
in the keyboard, F1 .. F12 and Ctrl and Alt and Shift,
please send it to me!
Thank you very much!
|
|
|
|
|
I have searched this forum but havent come up with any useful results. I simply want to be able to read the input from a bitmap file, nothing fancy, I dont want to display bitmaps, just be able to access the value of a pixel at (x,y).
Any ideas/ places I can learn more about this/ code I can use?
Any help is appreciated...
cbb@andrew.cmu.edu
Cassidy
|
|
|
|
|
Is it true that bitmaps are just a collection of paired bytes? When you open a bitmap (in hex format), you can see the "lines" that comprise to sequence of on/off bits.
Try creating a small 4x4 or 16x16 bitmap with known values:
0110 = 0x06
1001 = 0x09
0101 = 0x05
1111 = 0x0F or if adventerous,
0101010101010101
1010101010101010
0101010101010101
...
(checkerboard pattern)
then you can use byte-size arithmetic to access "x,y" value. x*sizeof(byte)+y*sizeof(byte)
and check against known values for your template bitmap.
Sorry if too abstract, but this may be a lead that you could use.
John
|
|
|
|
|
One of our customers is going to translate the Windows application that we have written for him. The easiest way to achieve this would be for me to send him the resource file. Once translated, I would only have to rebuild the application using this file.
Unfortunately, most of our customers do not have the Visual Studio installed, nor has this customer. Does anyone know a standalone application (preferabely freeware) that would allow one to edit resource (.rc) files in a similar way as in Visual Studio?
|
|
|
|
|
You can directly edit the resources in binaries with VC on NT. Assuming your customer has VC and NT, of course. That way you don't have to rebuild anything.
--Mike--
http://home.inreach.com/mdunn/
#include "witty_sig.h"
your with and
|
|
|
|
|
Another option is to use a program such as ResHacker, which allows you to modify the resources without Visual Studio. It should be avaliable at:
|
|
|
|
|
Sorry, let me try that address again:
http://rpi.net.au/~ajohnson/resourcehacker/
The rest of my message mentioned the Win32 API functions you can use to modify the resources of a binary file at runtime:
BeginUpdateResource
EndUpdateResource
The only problem with these is that the format of the String Table is anything but easy to work out. I certainly couldn't find any documentation for it!
------------------------
Derek Waters
derek@lj-oz.com
|
|
|
|