Conditional statement request

x64 Replacement/Alternative to Microsoft's IntelliMouse application.
Forum rules
Please read the forum rules before posting for the first time.
The more information you can provide, the quicker and more accurately someone can help.
NOTE: To reduce spam, new users can not post links or images until they have at least 4 posts.
Post Reply
User avatar
Kukurykus
Fanatic
Posts: 260
Joined: Sat Jul 02, 2016 1:15 pm

Conditional statement request

Post by Kukurykus » Mon Sep 30, 2019 4:41 pm

1) Please add to simkeys IF command that would be used only for 3 Windows keys: CapsLock, NumLock and ScrollLock. They all are either enabled or disabled (what often can be displayed on keyboard). If you do something like if(CL) or if(NL) or else if(SL) we could have conditional statements. I know once you said conditions would be hard to implement, but in this case I think that's very easy. For example:

{if(SL):wait(1){ctrl}v}




2) You could do it also for clipboard, so either it's empty or filled:

{if(CB):wait(1){ctrl}v}

btw it could be great to have clipboard content could be pasted or read:

{if(CB):wait(1){CBP}}

{if(CB=='abc'):wait(1){CBP}}




3) internal XMBC environment variables (overall or app/process specific):

{env:'var','abc'}

{if({env:'var'}):{ctrl}v}

It could be cleared by {env:'var', ''}

{if({env:'var'=='abc'}):{ctrl}v}




If you do the 1st item, then it's okey for now. When you have time 2nd is good too, later maybe 3rd? :D
HAMA Roma, Rapoo 3920P
Windows 10 x64, Intel i5-4670K @ 3.40GHz, 8GB,
Intel(R) HD Graphics 4600, Intel SSD 179 GB HDD

User avatar
phil
Site Admin
Posts: 6037
Joined: Sun Apr 06, 2003 11:12 pm

Re: Conditional statement request

Post by phil » Mon Sep 30, 2019 8:43 pm

Sorry no chance. The simkey is already too complex. I'm not about to implement a custom language parser, syntax checker and all that guf, never mind then having to run it too! If you want to do this, build an autohoteky script or any other complied script and call it from XMBC.
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9, Logitech MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, Intel i5-9600k, Asus Z390-ROG, 16GB DDR4,
nVidia GeForce GTX 970, Evo 970 500Gb NVME, 2x2TB WD Black (RAID1)

User avatar
Kukurykus
Fanatic
Posts: 260
Joined: Sat Jul 02, 2016 1:15 pm

Re: Conditional statement request

Post by Kukurykus » Mon Sep 30, 2019 8:52 pm

I use already Autohotkey script I wrote myself that is triggered by XMBC (thx. to .exe), and as I remember it has only 2 short lines. Maybe in Autohotkey it's easy, but not in language you use together with XMBC, but checking just status of those 3 buttons from first point maybe won't be so complex. Also hard to understand by users. else / else if wouldn't be needed. But okey, maybe in some future then or at all.
HAMA Roma, Rapoo 3920P
Windows 10 x64, Intel i5-4670K @ 3.40GHz, 8GB,
Intel(R) HD Graphics 4600, Intel SSD 179 GB HDD

Post Reply