hi
every time i try to use kbhit()
i get an EAccessViolation
whats wrong with it?
hi
every time i try to use kbhit()
i get an EAccessViolation
whats wrong with it?
Its undefined and should not be used.....
aha.
and what else should be used?
i´m checking out your kb-hooking tutorial on your hp. maby the use of a dll may be the right thing i´m looking for.
is there a simple way to check key-entry on win32?
ps.: by the way... i found a t-shirt with the same cool transformers-sign in a store:-))))
Jeez...this function is popular today...hereOriginally posted by wesentlich
aha.
and what else should be used?
i´m checking out your kb-hooking tutorial on your hp. maby the use of a dll may be the right thing i´m looking for.
is there a simple way to check key-entry on win32?
ps.: by the way... i found a t-shirt with the same cool transformers-sign in a store:-))))
BTW....One day I might get the decepticon sign tatooed on my arm....now that would be a cool tatoo......
wow. nice little function...
thanx
<<BTW....One day I might get the decepticon sign tatooed on my arm....now that would be a cool tatoo......
and turn bad forever.....aaaaahahahahahahaha
> BTW....One day I might get the decepticon sign tatooed on my arm....now that would be a cool tatoo......
Remember, Fordy - having a lame tattoo does NOT make you Petzold, no matter what you may think
-Govtcheez
[email protected]
Originally posted by Govtcheez
> BTW....One day I might get the decepticon sign tatooed on my arm....now that would be a cool tatoo......
Remember, Fordy - having a lame tattoo does NOT make you Petzold, no matter what you may think
LOL
stop lol´ing around in my tread
can´t get your kbhit function running.
allways have a error in ReadConsoleInput(hIn,&ip,1,&dwResult)
error 6 (with GetLastError)... whatever that wants to tell me
looked at msdn, but the code looks allright.
there must be something i have forgotten.
ok. it wants to tell me that the handle is invalid.
what i have made is...
what can i do to get the "gnuf" in my edit-box??Code:HANDLE hIn ; DWORD dwResult; INPUT_RECORD ip; void __fastcall TForm1::Timer1Timer(TObject *Sender) { hIn = GetStdHandle(STD_INPUT_HANDLE); if (hIn==INVALID_HANDLE_VALUE) Edit1->Text="invalid..."; if(!ReadConsoleInput(hIn,&ip,1,&dwResult)) Edit1->Text=GetLastError();//Get event if(ip.EventType == KEY_EVENT)//Is it keyboard? Edit1->Text="gnuf"; }
Hmm...you are running this as a console right?
if console means a win-application... (this funny windows on my screen )... yes.
excuse my disknowledge.
A console is the dos emulator.........the black char based screen that uses int main(void).......
If you are doing this in a full blown windows app than it wont work
oh. i should have known this.
no. i´m not running this as a console.
If this is a window program....you need to filter the WM_KEYDOWN or WM_KEYUP.....
aha
i´ll work on it tomorrow.
thanx