Close Console Window Command?

Discussion in 'General Discussion' started by Jacob Adjani, Jul 4, 2019.

  1. Jacob Adjani

    Jacob Adjani Captain

    Joined:
    Jul 22, 2016
    Messages:
    47
    Likes Received:
    30
    Hey all,

    Finally got around to trying to setup the console command hotkeys - not sure if I'm having a "doh" moment here or not... but... does anyone know if there is a tag/word/code that you can add to your command string to have the console window close after executing the primary command?

    e.g. if I setup CTRL-F1 to be the "di" command... how do I get the console window to close after executing the "di"?

    Better still, anyone know if there is a way to have them execute in an "echo off" manner... as in, no need to even see the console window at all?

    Any assistance offered would be most welcome!
     
    #1
    zaphodikus likes this.
  2. Phantom 3

    Phantom 3 Lieutenant

    Joined:
    Jul 16, 2020
    Messages:
    18
    Likes Received:
    28
    Anyone got this one figured out?
     
    #2
    zaphodikus likes this.
  3. zaphodikus

    zaphodikus Captain

    Joined:
    Oct 1, 2016
    Messages:
    471
    Likes Received:
    226
    Was just about to ask:
    1. Why is there no command you can add to close the console in these hotkeys?
    2. Why only 4 hotkeys. Based on screen sizes real estate, it is a simplistic way to limit creativity.
    Why did we put 4 edit boxes on screen at once instead of having a drop-list type system or even a row of damn buttons, which would have cut down the UI work immensely and made this possible.

    Hopes
     
    #3
  4. Xango2000

    Xango2000 Captain

    Joined:
    Jun 15, 2016
    Messages:
    385
    Likes Received:
    202
    I'm tempted to write a mod for when I'm working on debugging, maybe post it so others can dowload it
     
    #4
    Kassonnade likes this.
  5. zaphodikus

    zaphodikus Captain

    Joined:
    Oct 1, 2016
    Messages:
    471
    Likes Received:
    226
    Would love to see that. I did a Java Scripting demo at work today, to show how to debug a common mistake, and yeah I duffed it like 4 times in a row, completely unrehearsed mistakes. It was a laugh, but it worked the charm. Especially since we don't use and know Java much, always good to have a small win.

    Right now, just getting more up to date on Custom Scenarios and more of the game possibilities. Need to install the EPD Playfield designer tool and see how well it works at helping figure stuff out too. EPD also has a mod of it's own, but not sure what the EPD mod does yet. My gripe with EPD is that it does everything in one huge box, so it's totally confusing to the point of being useless to someone who wants to separate concerns and NOT abstract the structure of a customisation task away too much.
     
    #5
    Kassonnade likes this.
  6. zaphodikus

    zaphodikus Captain

    Joined:
    Oct 1, 2016
    Messages:
    471
    Likes Received:
    226
    #6
    Kassonnade likes this.
  7. Kassonnade

    Kassonnade Rear Admiral

    Joined:
    May 13, 2017
    Messages:
    2,816
    Likes Received:
    4,111
    @zaphodikus : I use the EPD to strip a playfield template until it's a minimal barebones file, then I add up my own stuff with it so I'm sure I will not get one of these stupid indentation errors the yaml is prone to. It's also a great tool to get the proper syntax right the first time, to have working examples. After that I can work directly in the file, where I put comments and separators between the different elements for clarity.
     
    #7
    zaphodikus likes this.
  8. Myrmidon

    Myrmidon Rear Admiral

    Joined:
    Mar 26, 2016
    Messages:
    1,729
    Likes Received:
    2,058
    its ESC but it is internal and you can not modify it nor use it as a key.
     
    #8
  9. zaphodikus

    zaphodikus Captain

    Joined:
    Oct 1, 2016
    Messages:
    471
    Likes Received:
    226
    I'm also coming around to the whole idea that using a scenario to do edits is cleaner. Keeping the intent and each group of edits separated yet related is the bit that is getting slightly tricky. It almost calls for a meta-language or DSL to sit on top of the various config files and sections to keep things easy to manage. I am going to see if creating branches in git and having a branch for each scenario works better.

    Still need the "command" to exit the console at the end of CTRL-F1 thru CTRL-F4.
     
    #9
    Kassonnade likes this.
  10. Kassonnade

    Kassonnade Rear Admiral

    Joined:
    May 13, 2017
    Messages:
    2,816
    Likes Received:
    4,111
    Hey ! I found at least 1 console command that was not listed anywhere, just by trying common windows & DOS & general "console commands" :

    clear

    Hahahaha... :D
     
    #10
    zaphodikus likes this.
  11. zaphodikus

    zaphodikus Captain

    Joined:
    Oct 1, 2016
    Messages:
    471
    Likes Received:
    226
    @Kassonnade you do dig out the good ones. Going to finally update the ancient Tutorial I helped write ages ago, to add "clear", just because it feels useful to add it now.
     
    #11
    Kassonnade likes this.
  12. zaphodikus

    zaphodikus Captain

    Joined:
    Oct 1, 2016
    Messages:
    471
    Likes Received:
    226
    This is going to feel like a mega necro... but I have terrible back pain today, terrible, and so I'm feeling bombproof.

    Did we ever get a resolution on how to make these shortcuts do anything and close the console afterwards, It feels like I might just as well install Autohotkey, because that would actually do the job, I'm missing something or I'm just being dense or both.
     
    #12

Share This Page