Search found 14 matches

by jvzuck
Tue Aug 25, 2020 5:13 am
Forum: Mac OSX
Topic: Global keyboard hook
Replies: 35
Views: 22573

Re: Global keyboard hook

So, this did NOT work for me, either by running as admin OR by editing plist. There's something strange that happens when doing an event tap that's not working in a standalone executable. $5 to whomever solves it! Jonathan So I got it working with admin permissions no need to do anything in Accessib...
by jvzuck
Mon Aug 24, 2020 6:38 pm
Forum: Mac OSX
Topic: Global keyboard hook
Replies: 35
Views: 22573

Re: Global keyboard hook

Thanks! Lots of interesting code to study there! I see that you're using a different technique to capture keys. I'm using an event tap because i'm trying to capture the numeric keypad as separate from the main number keys so I still have miles to go before I sleep, apparently. It makes no sense to m...
by jvzuck
Mon Aug 24, 2020 12:36 pm
Forum: Mac OSX
Topic: Global keyboard hook
Replies: 35
Views: 22573

Re: Global keyboard hook

Argh! CGEventTapCreate is working perfectly when I run the program from within the IDE but it's returning a NULL (ie not creating the tap) when I tried to run as a complied executable. My app has permissions but still no tap is being created. There doesn't appear to be a built in error handler for t...
by jvzuck
Mon Aug 24, 2020 10:15 am
Forum: Mac OSX
Topic: Global keyboard hook
Replies: 35
Views: 22573

Re: Global keyboard hook

Is there are good article here on preparing a PBasic app for others. I'm totally new to developing for Mac so I've never even heard of an app "bundle." When I install things, it often seems as though it's just a single file that's being copied into the applications directory so I naively a...
by jvzuck
Mon Aug 24, 2020 12:30 am
Forum: Mac OSX
Topic: Global keyboard hook
Replies: 35
Views: 22573

Re: Global keyboard hook

Where am I setting the App ID? Sorry, if this seems elementary. i haven't had to do that before.
by jvzuck
Sun Aug 23, 2020 10:23 pm
Forum: Coding Questions
Topic: Accessibility Permissions on Mac - HELP!
Replies: 0
Views: 708

Accessibility Permissions on Mac - HELP!

So, I have an app that is working perfectly finally, when run from within the IDE but when I compile to an app and run it. the app uses system wide hotkeys so, it asked for PureBasic to have accessibility permissions and, when granted, everything worked. Now, I'm making the executable and everything...
by jvzuck
Sun Aug 23, 2020 1:37 pm
Forum: Mac OSX
Topic: SendKey ?
Replies: 14
Views: 6445

Re: SendKey ?

Yes, of course. Thanks. My programming skills are VERY rusty!
by jvzuck
Sat Aug 22, 2020 8:02 pm
Forum: Mac OSX
Topic: SendKey ?
Replies: 14
Views: 6445

Re: SendKey ?

I found the include files online but it's strange I cannot find them on my Mac, having installed XCode and all. Final question, your code bring the target application to the foreground. Is there a way to send keys to an application in the background. Let's say you're running a Keynote presentation a...
by jvzuck
Sat Aug 22, 2020 7:27 pm
Forum: Mac OSX
Topic: SendKey ?
Replies: 14
Views: 6445

Re: SendKey ?

So great! Thanks!
Where are the include files of which you speak: events.h and IOLLEvent.h

Presumably, if I wanted to do Command+Shit, I would just AND them, right?
Jonathan
by jvzuck
Sat Aug 22, 2020 4:24 am
Forum: Mac OSX
Topic: SendKey ?
Replies: 14
Views: 6445

Re: SendKey ?

Shardik, Do you believe this code should still work under Catalina? I'm getting an "invalid memory access." That make sense? Jonathan Eidos, thank you for the description of your intended project. Unfortunately I have no QuarkXpress to code a customized solution, but I have tried to find a...
by jvzuck
Fri Aug 21, 2020 2:06 pm
Forum: Mac OSX
Topic: Global keyboard hook
Replies: 35
Views: 22573

Re: Global keyboard hook

did this question ever get answered?
by jvzuck
Fri Aug 21, 2020 1:57 pm
Forum: Coding Questions
Topic: SendKeys on MAC
Replies: 2
Views: 916

SendKeys on MAC

I need to send keystrokes (ie Command+Shift+A) to an application window on MacOS. There are appear to be many examples of doing this on Windows but none for Mac. Is there code out there I have overlooked? Thanks!
Jonathan
by jvzuck
Sat Aug 15, 2020 11:16 pm
Forum: Coding Questions
Topic: Stream Deck Plugin
Replies: 3
Views: 946

Re: Stream Deck Plugin

Fair question. Ideally, I'd like to do things like automate Outlook, for example, that I think will work much better from PB
by jvzuck
Sat Aug 15, 2020 6:13 pm
Forum: Coding Questions
Topic: Stream Deck Plugin
Replies: 3
Views: 946

Stream Deck Plugin

Looking to create a couple Stream Deck plugins, using PB. NOT looking to learn socket programming. Any chance someone has already done this? If not, is anyone interested in making a few bucks to code up a template and share it with the community? I'm interested in both Windows and Mac. Apparently, y...