View Single Post
Old 11-24-2017, 11:22 AM   #1243
TonE
Human being with feelings
 
Join Date: Feb 2009
Location: Reaper HAS send control via midi !!!
Posts: 1,923
Default

The easiest way of calling external .exe is defining it as external editor, but if you do not want to do this, there should be a way of running any .exe from lua. Did not test this myself, but I am sure some lua expert here would have useful tips.

The key in action list is something different than anything in the program.
action key: triggers only action
action: can be for example running an .exe, so it will start
what will happen later depends on the .exe, so in your case you have to hit its built in hotkeys again. Normally all hotkeys should work as they did always. Of course you could remove the required hotkeys, so the .exe would immediately do its content. You could split above into two separate actions and two .exe if both cases are important to you. Then combine freely in any custom action in Reaper.

Regarding the menu:

PHP Code:
Borderless full screen CTRL+ALT+F
^!f::
WinGetTitlecurrentWindowA
IfWinExist 
%currentWindow%
{
    
WinSetStyle, ^0xC00000 hides the title bar
    WinMove
, , , 0019201080
    WinWait ahk_class REAPERmidieditorwnd
    DllCall
("SetMenu"uintWinExist(), uint0)  ; Remove menu bar of "last found window"
}
return
 
Borderless full screen CTRL+ALT+G
Some games don't work with the above script, so there's an alternative
^!g::
WinGetTitlecurrentWindowA
IfWinExist 
%currentWindow%
{
   
WinSetStyle, -0x400000 hides the dialog frame
   WinSet
Style, -0x40000 hides the sizebox/thickframe
   WinSet
Style, -0x800000 hides the thin-line border
   WinSet
Style, -0xC00000 hides the title bar
   WinMove
, , , 0019201080 moves the entire window to 0,0 i.eupper left corner.
   
WinWait ahk_class REAPERmidieditorwnd
   DllCall
("SetMenu"uintWinExist(), uint0)  ; Remove menu bar of "last found window" 
}   
return 
TonE is offline   Reply With Quote