Messages - Phoenix232 [ switch to compact view ]

Pages: [1] 2next
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.

2
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]
  1.  
  2. sProgram1 := "notepad.exe"
  3. sProgram2 := "calc.exe"
  4. nSeconds  := 1
  5. SetTimer, Timer, % nSeconds * 1000
  6. Return
  7.  
  8. Timer:
  9. {
  10.     Process, Exist, % sProgram1
  11.     myProgram1PID := ErrorLevel
  12.     Process, Exist, % sProgram2
  13.     myProgram2PID := ErrorLevel
  14.    
  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.

3
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.

4
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

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

Pages: [1] 2next
Go to full version