Custom Behavior, need help

Comments about any other application I have on my website.
Please don't post about XMBC or Inpout32 here - use the correct forum!
Forum rules
Please post to the correct forum, otherwise your post may not be seen.
Before posing, be sure to read and respect the forum rules
Post Reply
User avatar
LiquidMX
Dedicated
Posts: 52
Joined: Sun Oct 09, 2011 11:55 am

Custom Behavior, need help

Post by LiquidMX »

Hello

I run into wall from my laziness.

What i'm after is, custom function/behavior, or not so custom, it's just me who doesn't know how to set it up properly.

One operation will be under 4th button of a mouse.

4th muse button = 4MB
targeted application (Lightroom) for which this behavior is needed = targetApp.

Is it possible to make this behavior, when im working in Lightrrom with brushes or spot removals, i need to press SPACE key (and keep it pressed) and drag image with Left Mouse Button (LMB).

So what im after is, press and hold 4th mouse button , do the dragging , release 4th button and cancel pressed space and release LMB.
And if i leave (roll mouse out of targetApp window, or if i press any mouse button outside of window of this application (loose focus)) Ligtroom app, this will trigger cancellation of aformentioned behavior.

I try to demonstrate in known language to me, unfortunately not applicable to such execution.


var 4MB = {SPACE}{LMB};

4mb.onPress = function():Void{
dragCanvasImage;
}
4mb.onRelease = function():Void{
KEY.Space.Release;
LMB.Release;
}
if(targetApp.Focus == "Lost Focus"){
// kill/Clear current state of 4MB, to the released state
KEY.Space.Release;
LMB.Release;
}
//code to detect app bounds and mouse position is larger than text inside if()
// so i used simpler notation
if(Mouse.position leave targetApp boundaries){
// kill/Clear current state of 4MB, to the released state
KEY.Space.Release;
LMB.Release;
}


Best Regards
Tom
Predator x34 3440x1440@95Hz,Asus Z-87 Pro, 2x Titan X SLI, Seasonic 1000W Plat,i7-4790k@4.7GHz, Hyper X Beast OC 32 GB, Sound Blaster Z,2x Plextor PX-256M6Pro 256 GB,3x Evo 850 1TB,EKWB Water cooled
Windows 7 Ultimate x64

http://www.liquid.pl
User avatar
phil
Site Admin
Posts: 7627
Joined: Sun Apr 06, 2003 11:12 pm

Re: Custom Behavior, need help

Post by phil »

Something like
Add a profile for lightroom
On the 45h button select "Simulated keystrokes"
In there type {LMB}SPACE}
And select method 3 (during).

That should be it!
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, AMD Ryzen 5900x, MSI x570 Tomahawk, 32GB DDR4,
nVidia RTX 2070s, Evo 970 1Tb NVME, 2x2TB WD Black (RAID1)
User avatar
LiquidMX
Dedicated
Posts: 52
Joined: Sun Oct 09, 2011 11:55 am

Re: Custom Behavior, need help

Post by LiquidMX »

thanks, i know i tryed it before and it didnt work for me, i had option 8 selected, which was working , but wasn't perfect.

Cheers mate
Predator x34 3440x1440@95Hz,Asus Z-87 Pro, 2x Titan X SLI, Seasonic 1000W Plat,i7-4790k@4.7GHz, Hyper X Beast OC 32 GB, Sound Blaster Z,2x Plextor PX-256M6Pro 256 GB,3x Evo 850 1TB,EKWB Water cooled
Windows 7 Ultimate x64

http://www.liquid.pl
User avatar
phil
Site Admin
Posts: 7627
Joined: Sun Apr 06, 2003 11:12 pm

Re: Custom Behavior, need help

Post by phil »

So is it working now? or not?
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, AMD Ryzen 5900x, MSI x570 Tomahawk, 32GB DDR4,
nVidia RTX 2070s, Evo 970 1Tb NVME, 2x2TB WD Black (RAID1)
Post Reply