Old 10-24-2023, 12:27 PM   #1
LarrySeyer
Human being with feelings
 
LarrySeyer's Avatar
 
Join Date: Sep 2006
Location: Bastrop, Tx
Posts: 162
Default Intel vs. M1 reaper commands

To switch focus on an Intel Mac I use the following command:

reaper.BR_Win32_SetForegroundWindow(reaper.GetMain Hwnd())

Does anyone know what command to use on an Mac M1 Arm machine?

Thanks!
LarrySeyer is offline   Reply With Quote
Old 10-24-2023, 12:38 PM   #2
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,630
Default

Should be the same.
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish

On vacation for the time being...
Meo-Ada Mespotine is offline   Reply With Quote
Old 10-24-2023, 10:15 PM   #3
LarrySeyer
Human being with feelings
 
LarrySeyer's Avatar
 
Join Date: Sep 2006
Location: Bastrop, Tx
Posts: 162
Default

Quote:
Originally Posted by Meo-Ada Mespotine View Post
Should be the same.
I get an error when running this code on an M1 but no error on an Intel Mac.

I am not running in 'Rosetta' mode.... just pure Arm.

Is it still the same?

L
LarrySeyer is offline   Reply With Quote
Old 10-24-2023, 10:18 PM   #4
cfillion
Human being with feelings
 
cfillion's Avatar
 
Join Date: May 2015
Location: Québec, Canada
Posts: 4,970
Default

Quote:
Originally Posted by LarrySeyer View Post
I get an error
What is the error? If it's "attempt to call a nil value", that means SWS is not present. Install the ARM64 build.
cfillion is offline   Reply With Quote
Old 10-26-2023, 07:54 AM   #5
LarrySeyer
Human being with feelings
 
LarrySeyer's Avatar
 
Join Date: Sep 2006
Location: Bastrop, Tx
Posts: 162
Default

Quote:
Originally Posted by cfillion View Post
What is the error? If it's "attempt to call a nil value", that means SWS is not present. Install the ARM64 build.
The Arm build is installed.

I will double check and post an update. Thank you.
LarrySeyer is offline   Reply With Quote
Old 10-28-2023, 07:00 PM   #6
LarrySeyer
Human being with feelings
 
LarrySeyer's Avatar
 
Join Date: Sep 2006
Location: Bastrop, Tx
Posts: 162
Default

The error I got was:

"attempt to call a nil value (field 'BR_Win32_SetForegroundWindow')"

I am running the Arm versions of everything.

HOWEVER...

After looking at the app, I noticed it was set to 'open in Rosetta' mode.

I unchecked that and now the error does not happen.

Good to know...

Thanks for your help!
LarrySeyer is offline   Reply With Quote
Old 10-28-2023, 09:43 PM   #7
cfillion
Human being with feelings
 
cfillion's Avatar
 
Join Date: May 2015
Location: Québec, Canada
Posts: 4,970
Default

Quote:
Originally Posted by LarrySeyer View Post
I am running the Arm versions of everything.

HOWEVER...

After looking at the app, I noticed it was set to 'open in Rosetta' mode.
When running under Rosetta you need the x86_64 version.
cfillion is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 08:28 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.