Search found 35 matches

by robertfern
Mon Feb 10, 2025 6:49 pm
Forum: Mac OSX
Topic: AESendMessage
Replies: 18
Views: 14002

Re: AESendMessage

Yes I've seen both. I still need help. Also I'm not interested in running an AppleScript, but learning how to send the raw AppleEvents like in the post from Wilbert
by robertfern
Thu Jan 30, 2025 7:35 pm
Forum: Mac OSX
Topic: AESendMessage
Replies: 18
Views: 14002

Re: AESendMessage

Can anyone help with my original question?
by robertfern
Thu Jan 16, 2025 11:21 pm
Forum: Tricks 'n' Tips
Topic: [WINDOWS ONLY] Launch Windows "File properties" dialog
Replies: 13
Views: 3782

Re: [WINDOWS ONLY] Launch Windows "File properties" dialog

Shardik had already had a version for mac on this topic
https://www.purebasic.fr/english/viewtopic.php?p=467833#p467833
it is the second example in his post.

It can also be done by running an AppleScript
Code is from Piero.

EnableExplicit

Structure daResults : Out.s : Err.s : ExC.w ...
by robertfern
Thu Jan 16, 2025 12:52 am
Forum: Bugs - Mac OSX
Topic: DesktopWidth(0) returns wrong value
Replies: 3
Views: 5814

Re: DesktopWidth(0) returns wrong value

From what I understand, visibleFrame is the screen size with the menubar height and doc height removed.
I think!
by robertfern
Thu Jan 16, 2025 12:48 am
Forum: Mac OSX
Topic: AESendMessage
Replies: 18
Views: 14002

Re: AESendMessage

OK, but I still would like to know how to send an AppleEvent with data attached. SO I can use the same process to handle other programs and events.
I don't need an aletrnative way to do this. I want to KNOW how it gets done so I can LEARN.
by robertfern
Wed Jan 15, 2025 9:21 pm
Forum: Tricks 'n' Tips
Topic: [WINDOWS ONLY] Launch Windows "File properties" dialog
Replies: 13
Views: 3782

Re: [WINDOWS ONLY] Launch Windows "File properties" dialog

I do have the Macintosh version to open file info windows, if you are interested?
by robertfern
Wed Jan 15, 2025 7:33 pm
Forum: Mac OSX
Topic: AESendMessage
Replies: 18
Views: 14002

Re: AESendMessage

Nice, but I already knew how to do that, but I want to be able to send the AppleEvents directly like the examples here.


** EDIT **

What are the "~" (tilde) character doing in your string concatinations?
by robertfern
Wed Jan 15, 2025 12:19 am
Forum: Mac OSX
Topic: AESendMessage
Replies: 18
Views: 14002

Re: AESendMessage

How does one send an AppleEvent to the Finder?
and also how does one send the data to go with the event?
Such as tell application "Finder" to get selection
then get the first item of the selection
and then tell application "Finder" to open information window of I
Applescript is

tell application ...
by robertfern
Mon Jan 13, 2025 11:06 pm
Forum: Bugs - Mac OSX
Topic: DesktopWidth(0) returns wrong value
Replies: 3
Views: 5814

DesktopWidth(0) returns wrong value

I have a Dell UltraSharp U3417W monitor. Its screen resolution is 3440w x 1440h.
On PureBasic 6.12 LTS, DesktopWidth(0) returns 1440, same as DesktopHeight(0)

Result = ExamineDesktops()
WinWidth.l = DesktopWidth(0) : WinHeight.l = DesktopHeight(0)
Debug "WindWidth = " + WinWidth
Debug "WinHeight ...
by robertfern
Sun Jan 12, 2025 9:09 pm
Forum: Coding Questions
Topic: Is StartVectorDrawing() thread safe on Mac?
Replies: 3
Views: 1720

Re: Is StartVectorDrawing() thread safe on Mac?

The bug is, it doesn't redraw till the thread completes. It should redraw after every StartVectorDrawing()-StopVectorDrawing() loop

Haven't tested on PC yet

** EDIT ** Tested on PC, It works great!
by robertfern
Sun Jan 12, 2025 7:50 pm
Forum: Coding Questions
Topic: Is StartVectorDrawing() thread safe on Mac?
Replies: 3
Views: 1720

Is StartVectorDrawing() thread safe on Mac?

I have a small program that draws the Recamån series on a Canvas Gadget.
The drawing routines are in a thread. A loop occurs to draw each segment followed by a StopVectorDrawing().
On the Mac, the drawings of each segment don't appear until the entire thread is finished.
I can post the entire ...
by robertfern
Sat Dec 28, 2024 10:11 pm
Forum: Announcement
Topic: [GAME] Swap'em! Winter Wonderland
Replies: 5
Views: 7850

Re: [GAME] Swap'em! Winter Wonderland

Darn, I wish you compiled it for Mac also!
by robertfern
Mon Dec 23, 2024 4:03 pm
Forum: Coding Questions
Topic: Clear/erase arrays/structures
Replies: 6
Views: 860

Re: Clear/erase arrays/structures

If by reset, you mean set all values back to zero, you can use FillMemory like so...
mylen.l = 100
Dim MyArray.l(mylen)
...
; use array
...
; reset array
FillMemory(@ MyArray(), mylen -1, 0, #PB_Long)
by robertfern
Wed Nov 27, 2024 7:48 pm
Forum: Mac OSX
Topic: runprogram
Replies: 20
Views: 14533

Re: runprogram

Where does someone get the program "here"?

Also, because you piped the output to test.txt, you can't get any output from the readProgramString command.
by robertfern
Wed Nov 06, 2024 8:43 pm
Forum: Bugs - IDE
Topic: [PB 6.12] IDE locks up running console program
Replies: 6
Views: 4322

Re: [PB 6.12] IDE locks up running console program

It locks up on me also.
I am still on Ventura