Old Today, 07:25 AM   #121
fundorin
Human being with feelings
 
fundorin's Avatar
 
Join Date: Feb 2014
Location: Russia
Posts: 184
Default

First one isn't a bug. It's, actually, a very handy behaviour.
There is tons of software which minimizes to tray via [x] close button.
fundorin is offline   Reply With Quote
Old Today, 08:10 AM   #122
Justin
Administrator
 
Justin's Avatar
 
Join Date: Jan 2005
Location: NYC
Posts: 10,476
Default

Quote:
Originally Posted by goldenarpharazon View Post
There are a couple of outstanding reliability bugs in OSCII-bot itself too if they could be dealt with as well? Thanks
See
1. https://forum.cockos.com/showthread.php?t=189074 (duplicate of https://forum.cockos.com/showthread.php?t=172325 )
and
2. https://forum.cockos.com/showthread.php?t=172324
Yeah #1 is a feature, and #2 is now fixed in git. Edit: #2 also now fixed in v0.6.

Last edited by Justin; Today at 08:31 AM.
Justin is offline   Reply With Quote
Old Today, 08:34 AM   #123
Justin
Administrator
 
Justin's Avatar
 
Join Date: Jan 2005
Location: NYC
Posts: 10,476
Default

Quote:
Originally Posted by fundorin View Post
Is there a way to run some code on midi port reopen?
In v0.6, just released:
Code:
(tmp = get_device_open_time(dev)) > dev_last_time ? (
  dev_last_time = tmp;
  printf("reinitializing dev\n"); // executes on initial open and any subsequent re-opens
  // ... midisend(dev);
);
Justin is offline   Reply With Quote
Old Today, 08:43 AM   #124
mschnell
Human being with feelings
 
mschnell's Avatar
 
Join Date: Jun 2013
Location: Germany
Posts: 3,465
Default

Quote:
Originally Posted by fundorin View Post
First one isn't a bug. It's, actually, a very handy behaviour.
It would be nice if minimizing could be triggered in an unattended system, e.g. via a command line parameter or a line in a script.

-Michael
__________________
www.boa-sorte.de
mschnell is offline   Reply With Quote
Old Today, 08:53 AM   #125
fundorin
Human being with feelings
 
fundorin's Avatar
 
Join Date: Feb 2014
Location: Russia
Posts: 184
Default

In which section of the script should I put this code?
I want slStartup() function to run on midi port reopen.
When placed in to @init section, code run just once, on start of the oscii-bot, or when "script reload" is pressed.
Am I wrong, thinking that "dev" variable is an alias for device name? Tried leaving it as dev and renaming to my midi device in alias.

Code:
(tmp = get_device_open_time(midi_in)) > dev_last_time ? (
  dev_last_time = tmp;
  printf("reinitializing dev\n"); // executes on initial open and any subsequent re-opens
  slStartup();
  // ... midisend(dev);
);
fundorin is offline   Reply With Quote
Old Today, 08:55 AM   #126
Justin
Administrator
 
Justin's Avatar
 
Join Date: Jan 2005
Location: NYC
Posts: 10,476
Default

Quote:
Originally Posted by fundorin View Post
In which section of the script should I put this code?
I want slStartup() function to run on midi port reopen.
When placed in to @init section, code run just once, on start of the oscii-bot, or when "script reload" is pressed.
Am I wrong, thinking that "dev" variable is an alias for device name? Tried leaving it as dev and renaming to my midi device in alias.

Code:
(tmp = get_device_open_time(midi_in)) > dev_last_time ? (
  dev_last_time = tmp;
  printf("reinitializing dev\n"); // executes on initial open and any subsequent re-opens
  slStartup();
  // ... midisend(dev);
);
@timer preferably
Justin is offline   Reply With Quote
Old Today, 10:00 AM   #127
fundorin
Human being with feelings
 
fundorin's Avatar
 
Join Date: Feb 2014
Location: Russia
Posts: 184
Default

-del-
fundorin is offline   Reply With Quote
Old Today, 11:42 AM   #128
goldenarpharazon
Human being with feelings
 
Join Date: Feb 2016
Posts: 66
Default

Quote:
Originally Posted by mschnell View Post
It would be nice if minimizing could be triggered in an unattended system, e.g. via a command line parameter or a line in a script.

-Michael
Verrei has already given a command line solution to this at
https://forum.cockos.com/showpost.ph...40&postcount=3
One could imagine doing the same with other "windows automation" type tools.
goldenarpharazon 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 02:00 PM.


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