Old 02-08-2019, 06:23 AM   #481
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 8,460
Default

Never ever change existing behaviour, someone will most likely complain. Lesson learned. (j/k )
nofish is offline   Reply With Quote
Old 02-08-2019, 09:06 PM   #482
Breeder
Human being with feelings
 
Breeder's Avatar
 
Join Date: Nov 2010
Location: Croatia
Posts: 1,928
Default

Quote:
Originally Posted by nofish View Post
Never ever change existing behaviour, someone will most likely complain. Lesson learned. (j/k )
Welcome to a fragile world of software development. I once heard a perfect term for it: "wild, wild west"
Breeder is offline   Reply With Quote
Old 02-09-2019, 12:23 AM   #483
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 5,503
Default

"It's not a bug, it's a feature."
X-Raym is offline   Reply With Quote
Old 02-27-2019, 03:20 AM   #484
juliansader
Human being with feelings
 
Join Date: Jul 2009
Posts: 2,369
Default

I just got around to installing the new SWS, and I'm surprised to see that it suddenly gained a whole lot of Win32-related API functions such as BR_Win32_GetForegroundWindow -- which were the very raison d'être for the ReaScriptAPI extension. Why the duplication?
juliansader is offline   Reply With Quote
Old 02-27-2019, 04:35 AM   #485
Breeder
Human being with feelings
 
Breeder's Avatar
 
Join Date: Nov 2010
Location: Croatia
Posts: 1,928
Default

Quote:
Originally Posted by juliansader View Post
I just got around to installing the new SWS, and I'm surprised to see that it suddenly gained a whole lot of Win32-related API functions such as BR_Win32_GetForegroundWindow -- which were the very raison d'être for the ReaScriptAPI extension. Why the duplication?
Are we in some kind of competition?

I coded it a while back, like 2 years ago, but it was decided back then it shouldn't be made public. But things change so I asked nofish to commit it. Why duplication? It's not duplication - it's SWS - an extension most people have installed so no need to trouble the user with installing additional things. Or are there any other win32 functions in SWS? To be honest, I have no idea...I already used these API for my private scripts and it was easier to ask for a commit then to rewrite them.

I also like my style because it is the exact replica of win32 api function names etc (not to mention I tested the hell out of them so I know they work on both win and OSX)...so we old C++ coders can easily find our way around
Breeder is offline   Reply With Quote
Old 02-27-2019, 05:01 AM   #486
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 5,503
Default

@juliansader
Can the BR functions interact with yours ?

Anyway, your extensions is already widely spread thx to reapack I guess, and you provide way more functions, so I'll stick with them :P
X-Raym is offline   Reply With Quote
Old 02-27-2019, 05:07 AM   #487
Breeder
Human being with feelings
 
Breeder's Avatar
 
Join Date: Nov 2010
Location: Croatia
Posts: 1,928
Default

Quote:
Originally Posted by X-Raym View Post
@juliansader
Can the BR functions interact with yours ?
They should be able to...it's normal win32 API and both BR_ and JS_ functions are just wrappers for it. It also seems they both use void* type for HWND so there shouldn't be any problems in passing hwnd pointers around.
Breeder is offline   Reply With Quote
Old 02-27-2019, 07:09 AM   #488
Edgemeal
Human being with feelings
 
Edgemeal's Avatar
 
Join Date: Apr 2016
Location: ASU`ogacihC
Posts: 1,062
Default

Quote:
Originally Posted by Breeder View Post
I also like my style because it is the exact replica of win32 api function names etc (not to mention I tested the hell out of them so I know they work on both win and OSX)...so we old C++ coders can easily find our way around
+1, Using the same names was a no brainer!
Edgemeal is offline   Reply With Quote
Old 02-28-2019, 07:27 AM   #489
Vagelis
Human being with feelings
 
Join Date: Oct 2017
Location: Larisa, Greece
Posts: 201
Default

Excuse me for posting here but i don't know a better place to ask something specifically about the cycle actions editor.

What i'm trying to do in Cycle actions editor is to mimic the behaviour of Cubase where i can toggle 2 actions with a key.But specifically when i toggle the actions, i want them to get armed so i can trigger them with the mouse click.

In the cycle actions editor i tried the following steps. On top i added toggle arm of next action,then the first action i want to arm..
Then a step and again toggle arm of next action and after that the second action i want to arm..

But each time i toggle the next action with a key it triggers the action and doesn't arm it.

Am i doing something wrong or it's not possible yet to do this with the cycle actions editor?
Maybe the action Toggle arm of next action isn't yet recognised from the cycle actions editor?

I think this would be very useful to have for multiple actions and would save a lot of space on the toolbars.

Thanks a lot in advance!! (and sorry for my poor English)

Edit: If there is a better place in the forum to ask about it i 'd be happy to post there and delete this post here.

Last edited by Vagelis; 02-28-2019 at 07:37 AM.
Vagelis is offline   Reply With Quote
Old 02-28-2019, 03:26 PM   #490
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 8,460
Default

@Vagelis

As (it seems to me) your question doesn't specifically concern a SWS pre-release version (which this thread is intended for), a better place would be the thread about official SWS releases.

https://forum.cockos.com/showthread.php?t=29640

edit:
Or a new thread in General discussion / Q&A (as there usually also hang out SWS users.)

Last edited by nofish; 02-28-2019 at 03:32 PM.
nofish is offline   Reply With Quote
Old 02-28-2019, 04:44 PM   #491
Vagelis
Human being with feelings
 
Join Date: Oct 2017
Location: Larisa, Greece
Posts: 201
Default

Thanks a lot for your response nofish.

I tried in the general discussion couple of days ago, but i didn't get any answer from a SWS user.
So i thought that here was the right place to ask but i was wrong and i'm sorry for the mess, i will try again tommorow in the SWS thread.

Also I could delete the previous post if it's a problem.
Vagelis is offline   Reply With Quote
Old 02-28-2019, 05:03 PM   #492
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 8,460
Default

No problem or mess at all.
nofish 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 05:51 AM.


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