Old 06-23-2019, 08:56 AM   #721
Sexan
Human being with feelings
 
Sexan's Avatar
 
Join Date: Jun 2009
Location: Croatia
Posts: 2,416
Default

Still did not find the solution, same issue even with reaper.JS_WindowMessage_Intercept.

It responds only after second mouse click, just like modifiers

Code:
local reaper_cursors =  {
                          {187,"MOVE"},  -- MOVE
                          {185,"DRAW"},  -- DRAW
                          {417,"EDGE L"},  -- LEFT EDGE
                          {418,"EDGE R"},  -- RIGHT EDGE
                          {184,"FADE L"},  -- FADE RIGHT
                          {105,"FADE R"},   -- FADE LEFT
                        }

function project_mouse_info()
    local cur_cursor = reaper.JS_Mouse_GetCursor()
    for i = 1, #reaper_cursors do
        local cursor = reaper.JS_Mouse_LoadCursor( reaper_cursors[i][1] )
        if cur_cursor == cursor then
          return reaper_cursors[i][2]
        end
    end
end

local detail = project_mouse_info()
if detail == "EDGE L" or detail == "EDGE R" then
              reaper.JS_WindowMessage_Intercept(track_window, "WM_LBUTTONDOWN", false)
            elseif not mouse.detail then
              reaper.JS_WindowMessage_PassThrough(track_window, "WM_LBUTTONDOWN", false)
            end
Anyone has some ideas?Am I doing something wrong?
Sexan is offline   Reply With Quote
Old 06-23-2019, 09:02 AM   #722
Lokasenna
Human being with feelings
 
Lokasenna's Avatar
 
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,029
Default

Quote:
Originally Posted by jangoux View Post
I still havent been able to run this script. Getting this now:

Area_51_class.lua:7: unexpected symbol near '<'
That error usually means you downloaded it as HTML (a web page) rather than a Lua script - if memory serves, Safari is particularly frustrating for doing this.
Lokasenna is online now   Reply With Quote
Old 06-23-2019, 10:04 AM   #723
doppelganger
Human being with feelings
 
Join Date: Feb 2017
Posts: 344
Default

Quote:
Originally Posted by Lokasenna View Post
That error usually means you downloaded it as HTML (a web page) rather than a Lua script - if memory serves, Safari is particularly frustrating for doing this.
mozilla firefox is guilty too, when downloading from github through context menu -> save Link As..

Saves script file with .lua extension, but inside HTML.
doppelganger is offline   Reply With Quote
Old 06-23-2019, 12:42 PM   #724
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Posts: 2,453
Default

Yeah, very annoying. But to be honest, it is Github that is failing miserably here. They should just provide a simple file download. Instead, I always have to download the whole archive as zip. Huge misconception in design...
__________________
My Reascripts forum thread | My Reascripts on GitHub | Stephan Römer - film composer
If you wish to donate for my scripts: please consider an organization like: animal shelter, doctors without borders, UNICEF, etc...
_Stevie_ is offline   Reply With Quote
Old 06-23-2019, 12:52 PM   #725
Lokasenna
Human being with feelings
 
Lokasenna's Avatar
 
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,029
Default

Quote:
Originally Posted by _Stevie_ View Post
Yeah, very annoying. But to be honest, it is Github that is failing miserably here. They should just provide a simple file download. Instead, I always have to download the whole archive as zip. Huge misconception in design...
They are providing a file download - right-click, Save Link As...

It's the browser that's screwing up by just deciding that any link must be an HTML file.
Lokasenna is online now   Reply With Quote
Old 06-23-2019, 12:59 PM   #726
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Posts: 2,453
Default

Really? Ah, well, then pretty much every browser I’m using is screwing up.
Safari, Firefox, Opera.
__________________
My Reascripts forum thread | My Reascripts on GitHub | Stephan Römer - film composer
If you wish to donate for my scripts: please consider an organization like: animal shelter, doctors without borders, UNICEF, etc...
_Stevie_ is offline   Reply With Quote
Old 06-23-2019, 01:07 PM   #727
Lokasenna
Human being with feelings
 
Lokasenna's Avatar
 
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,029
Default

Quote:
Originally Posted by _Stevie_ View Post
Really? Ah, well, then pretty much every browser I’m using is screwing up.
Safari, Firefox, Opera.
For Safari, at least, it's been a known bug for years and years that they don't seem to care about fixing.

I don't have a Mac to try with, but on Windows and Linux most browsers' "Save As..." boxes will let you choose the format to save in. If there's an All Files or Plain Text option, picking that and making sure the file is saved with a .lua extension will usually work.
Lokasenna is online now   Reply With Quote
Old 06-23-2019, 01:11 PM   #728
Lokasenna
Human being with feelings
 
Lokasenna's Avatar
 
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,029
Default

Also, don't try to download using the links you see when browsing through a repo on Github - those link to Github's file viewer. If that's where you're having trouble, open the file and then use the Raw button at the top-right for a link to the actual file:

Lokasenna is online now   Reply With Quote
Old 06-23-2019, 01:16 PM   #729
Sexan
Human being with feelings
 
Sexan's Avatar
 
Join Date: Jun 2009
Location: Croatia
Posts: 2,416
Default

Managed to solve my issue with the help of nappies.

Long story short intercept must be in constant loop (which I did not do ). I thought I can just trigger it with mouse click and that's it, but no
Sexan is offline   Reply With Quote
Old 07-02-2019, 07:59 AM   #730
ferropop
Human being with feelings
 
ferropop's Avatar
 
Join Date: Jan 2016
Posts: 436
Default

Reboot!
ferropop is online now   Reply With Quote
Old 07-03-2019, 08:25 AM   #731
Sexan
Human being with feelings
 
Sexan's Avatar
 
Join Date: Jun 2009
Location: Croatia
Posts: 2,416
Default

I'm here but I have tournament with my company in few days so we are in preparation mode. There are many updates but many bugs so I wont publish it before I fix them (about 10 days)
Sexan is offline   Reply With Quote
Old 07-03-2019, 08:08 PM   #732
ferropop
Human being with feelings
 
ferropop's Avatar
 
Join Date: Jan 2016
Posts: 436
Default

Quote:
Originally Posted by Sexan View Post
I'm here but I have tournament with my company in few days so we are in preparation mode. There are many updates but many bugs so I wont publish it before I fix them (about 10 days)
Haha just boosting the thread Sexan, you take the time you need
ferropop is online now   Reply With Quote
Old 07-06-2019, 06:34 AM   #733
zookthespook
Human being with feelings
 
Join Date: Mar 2015
Posts: 518
Default

i have managed to just draw the AS .. but no success with cut paste or move yet.
I am presuming i have note installed some component
While installing the lua package from your github, i opened the RAW lua files and saved them and further loaded them into reaper via Load script command
the files i downloaded are -
Area_51 class, core , functions , input and mouse.
SWS -2.10
Js_api-989
Reaper-5.979/x64
Windows10

Quote:
Error: Area_51_functions.lua:7: bad argument #1 to 'GetMediaItemInfo_Value' (MediaItem expected)

Stack traceback:
Area_51_core.lua:14: in function 'crash'
[C]: in field 'GetMediaItemInfo_Value'
Area_51_functions.lua:7: in function 'move_items_envs'
Area_51_core.lua:440: in function 'zone'
Area_51_class.lua:119: in method 'track'
Area_51_class.lua:178: in function 'Track'
Area_51_class.lua:182: in function 'Draw'
Area_51_core.lua:1030: in function <C:\Users\Sameeruddin\Desktop\Area_51_core.lua:998 >
[C]: in function 'xpcall'
Area_51_core.lua:997: in function <C:\Users\Sameeruddin\Desktop\Area_51_core.lua:996 >

Reaper: 5.979/x64
Platform: Win64

Update- I held the number 1 or 2 key and realised it could drag around the item along the AS , but only when i make the selection beyond the item and drag it from the empty space.
Is it becuase some mouse modifiers are coinciding while clicking and dragging ?.

Last edited by zookthespook; 07-06-2019 at 06:41 AM.
zookthespook is offline   Reply With Quote
Old 07-08-2019, 10:21 AM   #734
JonasHAnd
Human being with feelings
 
Join Date: Apr 2015
Posts: 45
Default

Quote:
Originally Posted by Sexan View Post
I'm here but I have tournament with my company in few days so we are in preparation mode. There are many updates but many bugs so I wont publish it before I fix them (about 10 days)
Hi Sexan,
may I ask, have you looked into the translation to mac any more, I'm still eager to try your script here

Thanks!
JonasHAnd is offline   Reply With Quote
Old 07-08-2019, 02:57 PM   #735
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Posts: 2,453
Default

He's busy with other things and will return as soon as he can.
__________________
My Reascripts forum thread | My Reascripts on GitHub | Stephan Römer - film composer
If you wish to donate for my scripts: please consider an organization like: animal shelter, doctors without borders, UNICEF, etc...
_Stevie_ 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 09:42 AM.


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