DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Closing window  (Read 7,897 times)

ClipPete

  • Participant
  • Joined in 2014
  • *
  • Posts: 15
Closing window
« on: September 27, 2014, 01:52 AM »
Hi Folks,

I had CH&S set up to accomplish one particular task. It was working nicely.
The program I was using it with, changed their code and is now giving me problems.

In order to fix the problem I would like to know how I can close the CH&S window using keystrokes?

I know I can open the CH&S window by using the hotkey: Crtl-Alt-W.
What is the hotkey to close the CH&S window?

Right now the only way I can find to close it is by mouse clicking the 'x' in the top right corner.
I don't want to close the program, just the window.

TIA!




mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: Closing window
« Reply #1 on: September 27, 2014, 01:56 AM »
If I make ctrl+alt+W toggle the window closed if it is already showing, would that solve your problem?

ClipPete

  • Participant
  • Joined in 2014
  • *
  • Posts: 15
Re: Closing window
« Reply #2 on: September 27, 2014, 02:03 AM »
If I make ctrl+alt+W toggle the window closed if it is already showing, would that solve your problem?

Yes that would solve my problem! 
If you could do it that would be great.  :)

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: Closing window
« Reply #3 on: September 27, 2014, 02:15 AM »
i will add it for next release (ill try to get a beta out this weekend).

ClipPete

  • Participant
  • Joined in 2014
  • *
  • Posts: 15
Re: Closing window
« Reply #4 on: September 27, 2014, 02:21 AM »
i will add it for next release (ill try to get a beta out this weekend).

Thanks very much mouser, I really appreciate it.   :)

ClipPete

  • Participant
  • Joined in 2014
  • *
  • Posts: 15
Re: Closing window
« Reply #6 on: October 01, 2014, 09:47 PM »
Try beta:

Thanks Mouser for that!
I tried out the code with my script and it is working nicely.

As I was working with my script (AutoHotKey) just now, trying to fix up a couple of other things, I noticed another line in my CH&S code that jumped out at me.
It was: Send, !{F4}

Sure enough when I tried it out, (it was code that I had been using later on in my script) it also was capable of closing CH&S. :)
Usually Alt-F4 will close down a program, but for some reason it just closes the CH&S window (which is exactly what I wanted).

I noticed that the .exe is quite a bit larger than the previous version, so I hope you made a few more adjustments besides the Ctrl-Alt-W.  :)

Thanks again for your help, I really appreciate it.

It took a while before I was able to get your program to copy a few fields and store them so I could later retrieve them for use in Excel (all with keystrokes), but I finally figured it out earlier this year.
Yours was the only clip program I tried that could accomplish this.  :)

Original address: https://www.donationcoder.com/forum/index.php?topic=39079.0