avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Wednesday December 1, 2021, 4:24 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Phoenix232 [ switch to compact view ]

Pages: [1]
@Phoenix232: If you don't require further help on this, do you mind if I move this to the Finished section?

Not at all. Sorry for the late response.

At any rate, here's an AHK snippet demonstrating how to do it with process names.  This can be easily adapted to work with window titles instead.

Code: Autohotkey [Select]
  2. sProgram1 := "notepad.exe"
  3. sProgram2 := "calc.exe"
  4. nSeconds  := 1
  5. SetTimer, Timer, % nSeconds * 1000
  6. Return
  8. Timer:
  9. {
  10.     Process, Exist, % sProgram1
  11.     myProgram1PID := ErrorLevel
  12.     Process, Exist, % sProgram2
  13.     myProgram2PID := ErrorLevel
  15.     If ( myProgram2PID )
  16.     {
  17.         Process, Close, % myProgram1PID
  18.     }
  19.     Else
  20.     {
  21.         If ( ! myProgram1PID )
  22.         {
  23.             Run, % sProgram1
  24.         }
  25.     }
  26. }
  27. Return

This is pretty close of what I was thinking. It's amazing how many lines of code you used to do this. No matter how much I tried I couldn't make it run and even if I could I don't think it would be close to have few lines like yours do. Thank you very much for this.

The idea is to close/kill Program 1 as Program 2 starts and then when Program 2 is closed, Program 1 is started again. Thinking this might be an easy task I've been trying to modify some scripts I found here but without at any success at all because I'm really new at AHK.

Could it be the tooltip? What game are you running?

:) Yes! It was the tooltip. Try the latest version.

Yes! It works perfectly now! With all the games and programs I tested. Thank you very much!  :P

I have been using a simple FTP server on my phone and then I connect to it using Total Commander/FileZilla/WinSCP.

It must be the volume mixer starting... Try the updated version. It keeps SndVol.exe running, and I added a menu option to show the volume mixer. And an option to change the hotkey.

Unfortunately it's still minimizes the game when I press the button, but wraith808's solution solved the problem.

PS.: I'm not sure if this is relevant or not, but I'm using Windows 7 instead of 10.

Maybe the latest version is better? It minimizes the volume mixer window.

I've tried it with YouTube in full screen, and that works OK. What programs have you problems with?

Yes, it works perfectly. Thank you very much. :DDDD

EDIT: It still minimizes games, for some weird reason.

Thank you very much for that. It's gonna help me a lot.

Just a quick question: It minimizes some full screen programs, but I guess that's kind of expected. Would it be possible to not make it do that? Anyways, the program works perfectly. :D

I think it would be possible to do this with AHK, but I'm not sure because I have no knowledge whatsoever about it. The idea is to mute the focused windows with a key press and unmute it after pressing the same key again, maybe using a key combination or one of the function keys.

Pages: [1]