I don't post the vast majority of stuff I do, and I don't help others. I know I belong to the more reclusive members of this currently-still-existing sub (which is mostly because I am always way too busy to sit down to properly answer questions on here, even though I want to :P). Or explaining the black magic called git to me cuz damn do I do stupid shit sometimes, and git is still kinda overwhelming at times.Ĭonstructive criticism is something I see too rarely, so I am at least happy when I can give some to people which are far more engaged in the sub than me.īecause let's face it. I know I am happy when I get my mistakes pointed out, or when saints like anonymous1184 restate their reasons fifteen times just because my brain decides to not-get what they mean, or what my flaw is. Do NOT ask me for three-way logic gates as this will literally be 36 times longer□Įdit: If you're going to downvote, at least give a reason why so I can improve - otherwise go do something more constructive with your life□♂️Įdit 2: Fixed the missing NOT(!) prefix to the XNOR code! (Too many code windows open when my therapist rang - got side-tracked - easy mistake)Įdit3: Shortened the expressions and fixed the comments - you try doing a write-up this long when you've got insomnia and everything's the same barring the odd '!' thrown about!Īlways good to hear from you my friend, even if it is pointing out my mistakes - thank you! So, there you go Logic Gates as expressed using hotkeys - do with this as you will.Īll of this is correct to my knowledge at time of posting - let me know if I fucked up or if you have an improvement and I'll gladly fix it - information regarding logic gates translated to AHK from: The 7 Logic Gates by Mohammad Jamiu - credit to the guy for the clear and concise info! It's literally the same code as 'NOR' (above), but we're taking the whole expression and inverting the result with NOT(!)! This is the direct inverse of 'NOR' (above) - it only triggers when either none OR both keys are pressed - pressing either key on its own will return 'False': F1īreathe a sigh of relief here's the last bit of code: CoordMode "ToolTip" 'XNOR' is short for 'Exclusive NOT OR' - you figured that out already, right? Yes, the last step - and the hardest to pronounce too! we're checking the opposite 'F1' NOT being pressed, AND 'F2' being pressed.īy taking both results and checking if either - NOT both - is 'True' then we have our answer.īuckle up buttercup, we're flippin' that on its head with. we're comparing 'F1' being pressed AND 'F2' NOT being pressed, likewise. It's hard to miss the chaos there, but here. The code is a little more complicated for these two as we're checking for more states: CoordMode "ToolTip"į1::Return Disable the key for these examplesį2::Return Disable the key for these examples 'XOR' is short for 'Exclusive OR', which means it only takes into account one or the other, not both - it's exclusive only to one OR the other: F1 We're moving on to more foreign territory now so brace yourselves, it's gonna get. Hello, and welcome back to the post that's too big for one post. If you prefer live chat with other humans:ĮDC Guide to Logic Gates in AHK (No Refunds!) - Part 2 (of 2) Main Stickied Post (Has solutions to common issues).It covers most of the basic concepts of AutoHotkey. Link to AutoHotkey's Command and Syntax Documentation New to AutoHotkey?Ĭheck out the AHK beginners tutorial. Make sure you keep your version of AHK up to date. Requests cannot violate any of the sub's rules.Be upfront and explicit about what the commission work involves.Commission requests must adhere to the rules.Do not post ChatGPT code and ask the community to fix it.Do not post responses generated by ChatGPT or any other type of AI.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |