GetKeyState_(#VK_
GetKeyState_(#VK_
How would I do this?
Johannes
Johannes
Re: GetKeyState_(#VK_
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?
MacBook Pro-M1 (2021), Tahoe 26.1, PB 6.30b2
Re: GetKeyState_(#VK_
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
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_
Maybe #6 in this thread? http://www.purebasic.fr/english/viewtop ... 19&t=43583
MacBook Pro-M1 (2021), Tahoe 26.1, PB 6.30b2
Re: GetKeyState_(#VK_
Yes, William is right.WilliamL wrote:Maybe #6 in this thread? http://www.purebasic.fr/english/viewtop ... 19&t=43583
Try the example in the Link, it works. I've tested
michel51
Mac OS X Snow Leopard (10.6.8 ) Intel
PureBasic V 5.21(x64), V 5.22beta
Mac OS X Snow Leopard (10.6.8 ) Intel
PureBasic V 5.21(x64), V 5.22beta
Re: GetKeyState_(#VK_
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?
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_
Trycajomi 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?
Code: Select all
ImportC "/System/Library/Frameworks/Carbon.framework/Carbon"
michel51
Mac OS X Snow Leopard (10.6.8 ) Intel
PureBasic V 5.21(x64), V 5.22beta
Mac OS X Snow Leopard (10.6.8 ) Intel
PureBasic V 5.21(x64), V 5.22beta
Re: GetKeyState_(#VK_
no, it is the same.
By the way:
I have only mac x 10.4
Johannes
By the way:
I have only mac x 10.4
Johannes
Re: GetKeyState_(#VK_
Copy/paste code from Safari to PB does not work. It works from FireFox.
Last edited by Niffo on Mon Oct 04, 2010 8:00 am, edited 1 time in total.
Niffo
Re: GetKeyState_(#VK_
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.
MacBook Pro-M1 (2021), Tahoe 26.1, PB 6.30b2
Re: GetKeyState_(#VK_
Endimport
were missing!!!!!
Johannes
were missing!!!!!
Johannes


