Community
    • Login
    1. Home
    2. Popular
    Log in to post
    • All Time
    • Day
    • Week
    • Month
    • All Topics
    • New Topics
    • Watched Topics
    • Unreplied Topics

    • All categories
    • Darren HoylandD

      Fanuc macro B

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      3
      0 Votes
      3 Posts
      69 Views
      PeterJonesP
      A GitHub user Poualedesmon just uploaded FANUC_KAREL_UDL to the collection. I don’t know if that was @darren-hoyland or someone else, but it’s now publicly available for download from the Collection, per the same instructions in the README as linked earlier.
    • Thorin SchmidtT

      Confusing/Frustrating folding behavior

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      3
      0 Votes
      3 Posts
      116 Views
      Thorin SchmidtT
      @PeterJones Thanks for the keyboard shortcut. I’m embarrassed to say I never considered that approach. But here are some function blocks. I’m doing this quick and dirty right now, so forgive the inelegant code. (This is for a character generator for an obscure RPG you probably haven’t heard of) def get_bonus(self, score): if score > 18: return "+4" elif score > 16: return "+3" elif score > 14: return "+2" elif score > 12: return "+1" elif score > 8: return "+0" else: return "-1" def roll(self, n=1, d=6): total = 0 for i in range(n): total += randint(1, d) return total #CLASS FUNCTIONS def choose_class(self): print( """First, choose your character's class by entering the letter of your choice: WARRIORS MAGICIANS SPECIALISTS -------- --------- ----------- A) Amazon F) Elementalist K) Hunter B) Barbarian G) Lyrist L) Thief C) Centaur H) Nymph D) Noble I) Priest E) Spearman J) Sorceror """) while True: self.code = "" self.code = input("Your Choice [A-L]: ")[0].upper() if self.code in "ABCDEFGHIJKL": break match self.code: case "A": self.char_class = "Amazon" self.primary = Stat.SKILL self.secondary = Stat.GRACE case "B": self.char_class = "Barbarian" self.primary = Stat.MIGHT self.secondary = Stat.WILL case "C": self.char_class = "Centaur" self.primary = Stat.MIGHT self.secondary = Stat.SKILL case "D": self.char_class = "Noble" self.primary = Stat.LUCK self.secondary = Stat.OTHER case "E": self.char_class = "Spearman" self.primary = Stat.SKILL self.secondary = Stat.WILL case "F": self.char_class = "Elementalist" self.primary = Stat.WILL self.secondary = Stat.WITS case "G": self.char_class = "Lyrist" self.primary = Stat.GRACE self.secondary = Stat.LUCK case "H": self.char_class = "Nymph" self.primary = Stat.GRACE self.secondary = Stat.LUCK case "I": self.char_class = "Priest" self.primary = Stat.WILL self.secondary = Stat.LUCK case "J": self.char_class = "Sorceror" self.primary = Stat.WILL self.secondary = Stat.WITS case "K": self.char_class = "Hunter" self.primary = Stat.SKILL self.secondary = Stat.WITS case "L": self.char_class = "Thief" self.primary = Stat.WITS self.secondary = Stat.LUCK case _: # Default action if no other case matches print("ERROR") exit()
    • decrepit-old-geekoidD

      Can't make a keyboard macro for a shortcut in Notepad++ v6.9.2

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      3
      0 Votes
      3 Posts
      70 Views
      PeterJonesP
      I unzipped the v6.9.2, and looked a bit: docMonitor was one of Don’s old plugins that he didn’t bother continuing development on when he moved Notepad++ from sourceforge to GitHub, because the feature of updating files every few seconds is already built into Notepad++, even in the old v6.9.2. DSpellCheck.dll and SpellChecker.dll are two different spell-checker plugins. There’s no reason to have both. DSpellCheck allows either the Hunspell dictionary, or the Aspell dictionary (which is what ShellChecker.dll uses), or Windows’ built in spell-checking files (which is what Word and similar use). There’s no reason to have both, even in the old v6.9.2. It is possible to add a keyboard shortcut to any of NppTextFX commands – use the Settings > Shortcut Mapper, go to Plugin Commands, and look for the TextFX command (like Convert quotes to "), and you can Modify those to have a keystroke for that single command I verified that even the most-recent NppUISpy here has the 32-bit version (..._UNI.zip) which, if you unzip the DLL into your plugins directory, will allow you to use UISpy even on your old Notepad++. And I confirmed that the macro syntax was enough the same that the FAQ’s section on manually editing the macro will allow you to embed for example, for my portable v6.9.2, with the plugins I installed, UISpy told me TextFX > TextFX Characters > Convert quotes to ’ was at 22030 (it will almost certainly be at a different ID for you, because I didn’t grab all the same plugins that you had). But for me, I could then have a macro that would do the Select All then Convert quotes to ’ with the following macro source: <Macro name="AllSingleQuote" Ctrl="no" Alt="no" Shift="no" Key="0"> <Action type="0" message="2013" wParam="0" lParam="0" sParam="" /> <Action type="2" message="0" wParam="22030" lParam="0" sParam="" /> </Macro> so after saving that, and restarting Notepad++, I had a new macro which would correctly run the NppTextFX command. So it’s possible to do what you want in Notepad++ v6.9.2. But I still highly recommend uninstalling the outdated, insecure version, grab the most recent 64-bit version, and bring yourself into the 2020s.
    • Vitalii DovganV

      NppExec v0.8.11 has been released!

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      3
      5 Votes
      3 Posts
      377 Views
      Vitalii DovganV
      NppExec v0.8.12.1 has been released! Glory to Ukraine! Glory to the heroes! improved: now WarningAnalyzer automatically removes “” around a file path/name fixed: the Console Output Filters dialog did not clear WarningAnalyzer’s cache improved: now Highlight’s [I], [B], [U] have Italic, Bold and Underline style Get it here: https://github.com/d0vgan/nppexec/releases/tag/NppExec_v08121
    • Jairo FlorezJ

      v8.7 Search Results Missing

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      18
      0 Votes
      18 Posts
      6k Views
      henriknorenH
      @xomx thanks a bunch