- Upvotes Received
- 2
- Posts with Upvotes
- 1
- Upvoting Members
- 2
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
4 Posted Topics
Re: the code goes like this: [code] try { Runtime rt = Rintime.getRuntime() ; Process p = rt.exec("Program.exe") ; InputStream in = p.getInputStream() ; OutputStream out = p.getOutputStream (); InputSream err = p,getErrorStram() ; //do whatever you want //some more code p.destroy() ; }catch(Exception exc){/*handle exception*/} [/code] | |
Re: I dont get it, whats the problem? | |
Re: [QUOTE=Chainsaw]If you are using Windows, you want to check out: GetKeyState(); // checks state of a single key GetKeyboardState(); // checks state of all 256 keys GetAsynchKeyState(); // checks real-time CURRENT state of a single key. So, you'd call one of those to get the key state(s) you care about, … | |
Re: hay if ur using the win32 API then use vertical keys like VK_UP so ur code will look like this: [code] LRESULT CALLBACK MessageHandler(HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam) { switch(message) { .... case WM_KEYDOWN: if(wparam == VK_UP) keyUp = true ; if(wparam == VK_DOWN) keyDown = true … |
The End.