Page 1 of 1
GetKeyState_(#VK_
Posted: Mon Sep 27, 2010 10:02 am
by cajomi
How would I do this?
Johannes
Re: GetKeyState_(#VK_
Posted: Mon Sep 27, 2010 11:25 pm
by WilliamL
I don't know what GetKeyState_(#VK_ does but maybe the commands used after ExamineKeyboard() would be helpful. Something like Key=KeyboardPushed(KeyID) in the manual?
Re: GetKeyState_(#VK_
Posted: Tue Sep 28, 2010 8:14 am
by cajomi
May be, I explain it a bit longer:
I have long program (77 000 lines). The use of API is reduced as far as possible, but complety not.
The of GetKeyState_(#VK_....) and GetAsyncKeyState_(#VK_....) is very important, I use it for the mouse.
Now I translate the program to the MAC version (MAC and Intel) and I have a problem:
how do I translate the API function?
Johannes
Re: GetKeyState_(#VK_
Posted: Tue Sep 28, 2010 5:09 pm
by WilliamL
Re: GetKeyState_(#VK_
Posted: Wed Sep 29, 2010 6:01 pm
by michel51
Yes, William is right.
Try the example in the Link, it works. I've tested
Re: GetKeyState_(#VK_
Posted: Thu Sep 30, 2010 12:04 pm
by cajomi
By me, it doesnt work.
When I put the message
ImportC"/System/Library/Frameworks/Carbon.framework/Carbon"
it give an error next line:
Grundpfad.s=GetCurrentDirectory()
Requester says:
"Error is ...type mismatch"
I have test it a bit: Same error every line, I have put it in.
Any idea?
Re: GetKeyState_(#VK_
Posted: Thu Sep 30, 2010 6:44 pm
by michel51
cajomi wrote:By me, it doesnt work.
When I put the message
ImportC"/System/Library/Frameworks/Carbon.framework/Carbon"
it give an error next line:
Grundpfad.s=GetCurrentDirectory()
Requester says:
"Error is ...type mismatch"
I have test it a bit: Same error every line, I have put it in.
Any idea?
Try
Code: Select all
ImportC "/System/Library/Frameworks/Carbon.framework/Carbon"
I think, there is missing a <space> after 'ImportC'.
Re: GetKeyState_(#VK_
Posted: Fri Oct 01, 2010 6:02 am
by cajomi
no, it is the same.
By the way:
I have only mac x 10.4
Johannes
Re: GetKeyState_(#VK_
Posted: Sun Oct 03, 2010 11:12 pm
by Niffo
Copy/paste code from Safari to PB does not work. It works from FireFox.
Re: GetKeyState_(#VK_
Posted: Mon Oct 04, 2010 4:19 am
by WilliamL
Copy text from Safari and paste it into TextEdit, then copy text from TextEdit then paste to PB and you won't have the errors.
Re: GetKeyState_(#VK_
Posted: Thu Oct 07, 2010 9:15 am
by cajomi
Endimport
were missing!!!!!
Johannes