|
do a google search for "build your own arcade controls". Also search for MAME. There are a bunch of people into doing things like this, and you will find most of them by some form of the above searches. Their goals are not exactly yours, but they can help you out a lot anyway.
For starters why are likely to recomend that you not use the lpt port (though they can tell you how to make it work), as there is hardware designed for this purpose, most likely (but not always) with the drivers you need already made! Just a matter of figuring out what to buy and what to make.
|
|
|
|
|
Ok, ill do that, thanks for a point in the right direction
|
|
|
|
|
The standard left and right buttons generate well-known window messages.
The wheel does so too.
How about the back/forward buttons?
Anyone has any idea how to write code to capture events from those two.
Be well
|
|
|
|
|
|
Is WM_XBUTTONDOWN what you need ? Never used a 5 button mouse, so im shooting in the dark here...
Best way is probably to fire-up Spy++ on some app's instance, and press the 4/5th buttons n' see what Spy++ shows you...
Bikram Singh
|
|
|
|
|
Thank you both.
I have try to implement the WM_XBUTTONDOWN through PreTranslateMessage but the message itself is undeclared and aborts compilation.
It should be obvious but the documentation is taking me nowhere.
Any thoughts?
|
|
|
|
|
You need a newer version of the SDK files.
Give Google a try sometime!
#define WM_XBUTTONDOWN 0x020B
#define WM_XBUTTONUP 0x020C
#define WM_XBUTTONDBLCLK 0x020D
#define MK_XBUTTON1 0x0020
#define MK_XBUTTON2 0x0040
Bikram Singh
|
|
|
|
|
I'll give google a try, worry not
Thanks again Bikram, you are the man.
Be well.
|
|
|
|
|
Hello,
I've the following problem, I like to have to system-wide keyboard shortcuts
(I know how to do that) that to the follwowing thing:
If I press shortcut_1 I like to copy the actual Excel cell-data into the clibboard
change to my application and paste it there.
If I press shortcut_2 I like to copy the actual data from my application and paste
it into the actual excel cell.
How to I automate Excel to achive my goals.
Thank you
Mario
|
|
|
|
|
I think visual basic would allow you to achieve your goals more easily. vb6 is the best to use, you can create extended functions to their tools to improve their use-ability. If you have bought microsoft visual studio package, you'll find it with that.
|
|
|
|
|
char open[80];<br />
<br />
cin >> open;<br />
<br />
if(open != "!")<br />
{<br />
}
when I type ! for open it still does whatever is in the if statement...
PLZ help!!!
THX
|
|
|
|
|
chars (null terminated strings) are being compared with strcmp . This will return 0, when the strings compared are equal.
if(strcmp(open, "!") == 0)
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
THX for the quick reply (under 1 minute after posting)
|
|
|
|
|
also try this
if(open != '!')
{
// Do something here
}
|
|
|
|
|
If you used open[0] it would look at the first element of the array which is what I suspect you wanted. Using open simply uses the poitner to the start of the array.
Elaine
The tigress is here
|
|
|
|
|
why my programcompiles but crash
could someone show me the steps
i have the 4 images that am gonna use
dia::ins()
{
CBitmapButton* blah;
}
help please thanks
|
|
|
|
|
|
Check out my Example 12 at my MFC EXamples page at www.railjonrogut.com
Rail
|
|
|
|
|
does it work for Bitmap with lots of colors like
thoses the resource editor cant open ?
|
|
|
|
|
Hi there,
Suppose you have lost Classwizard's data about some of the classes on your project, how do you rebuild ClassWizard's information?
|
|
|
|
|
Delete .CLW file.... then launch class wizard and it will let you add the files again
Jaime
|
|
|
|
|
Gracias amigo!
dNimrod#X
________________________
|
|
|
|
|
How do I make a specific word inside an list box green?
Source Code:
--------------------------------------------------------
CString tempString = "";
tempString.Format("You currently have $%s%d with you.", tempString, cash);
CListBox * tempBox = (CListBox *)(this->GetDlgItem(IDC_LIST));
tempBox->AddString(tempString);
--------------------------------------------------------
I want the word you to be green, what do I do?
Thanks.
|
|
|
|
|
|
I've already looked at that tutorial. The problem is I already have a list box set up, and if I try to change it to fixed or variable, my messages won't show up.
Is there like a command like colorRGB[255,123,210]
Uhh, thanks.
|
|
|
|