Old 11-30-2019, 12:58 PM   #1
spk77
Human being with feelings
 
Join Date: Aug 2012
Location: Finland
Posts: 2,585
Default Questions for the scripters using macOS

1. Does reaper.gfx.init work on macOS?

The code below works on my computer (Win 8.1, Reaper v.5.99, single monitor). It moves the script window to new_x, new_y
Code:
gfx.init("", current_w, current_h, 0, new_x, new_y) -- move window to new position
I'm trying to figure out why moving a script window from a script doesn't work on macOS with 2 monitors. (see user todoublez's posts on page 4, #137->https://forum.cockos.com/showthread.php?t=203446&page=4)
gfx.init is called periodically to move the script window to a new position
Quote:
Originally Posted by spk77 View Post
@todoublez
Quote:
Originally Posted by todoublez View Post
I just test it again,
I couldnt drag it without touching the window title.
I tried to drag it, but nothing happened T_T.
Thanks for the testing!
Drag'n drop feature is activated only when left clicking on the script window (not on the title bar):


Going back to work now - I'll be back in 5 hours.


2. Does reaper.my_getViewport work on macOS? What does it return on multi-monitor setup?

The code below returns 0, 0, 1920, 1080 on my PC - it's working correctly
Code:
screen_left, screen_top, screen_right, screen_bottom = reaper.my_getViewport(0, 0, 0, 0, 0, 0, 0, 0, false)
spk77 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 03:09 PM.


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