Hi Skrommel, could you please look into the problem that we have with tabbed windows too? Would be great if this could be fixed :)
Also, this code perfectly starts Ghoster with a hotkey but does not close Ghoster as it should if it's already running - any idea why not?
^+p::
Process, Exist, Ghoster.ahk
pid=%ErrorLevel%
If pid=0
Run,D:\Downloads\Ghoster.ahk
Else
Process,Close,Ghoster.ahk
Return
And a suggestion: On https://www.donationcoder.com/Software/Skrommel/ it still says "Ghoster v1.0" - maybe you could always (automatically?) write the date besides that when it is updated?
Nice! :)
I now use
^+p::
Process, Exist, Ghoster.exe
pid=%ErrorLevel%
If pid=0
Run,D:\Downloads\Ghoster.exe
Else
WinClose, Ghoster
Return
in my main AHK script and IT WORKS! :) It just takes the focus away from the current window altough the mouse cursor is still above it - how to fix that?
Hi skrommel,
I have a new problem with the external on/off script in my main AHK script. This is the code:
^+p::
Process, Exist, Ghoster.exe
pid=%ErrorLevel%
If pid=0
Run,D:\Downloads\Ghoster.exe
Else
WinClose, Ghoster
Return
Today I found out it still works to enable Ghoster, but not to disable it anymore. It tried several things, then I just moved it to the very top of my AHK script - and it works again! What other command(s) (that I probably added to new scripts above that one) could stop this from working?
I also had problems with Ghoster on multiple screens. My issue was due to the fact that my secondary monitor is to the left of my primary monitor, and I would guess that vermeulen and threeboy.net also have monitors to the left of their primary monitor.
The AHK script can be corrected to work better with multiple screens. Here's a diff-style patch for the AHK script currently on this site. (my full AHK file is attached)
It adds another option (2) to multimon which fixes the problem for me. Everything should work exactly the same way if you don't use that option.
80c80,94
< Gui,Show,X0 Y0 W%A_ScreenWidth% H%A_ScreenHeight%,%applicationname%Window
---
>
> topleftx=0
> toplefty=0
> screenwidth=%A_ScreenWidth%
> screenheight=%A_ScreenHeight%
> If multimon=2
> {
> SysGet,screenwidth,78
> SysGet,screenheight,79
> SysGet,topleftx,76
> SysGet,toplefty,77
> }
> ;Gui,Show,X0 Y0 W%A_ScreenWidth% H%A_ScreenHeight%,%applicationname%Window
> Gui,Show,X%topleftx% Y%toplefty% W%screenwidth% H%screenheight%,%applicationna
me%Window
>
96c110,111
< WinMove,%A_ScreenWidth%,%A_ScreenHeight%,,,%applicationname%Window
---
> ; WinMove,%A_ScreenWidth%,%A_ScreenHeight%,,,%applicationname%Window
> WinMove,%screenwidth%,%screenheight%,,,%applicationname%Window
147c162
< ini=%ini%`n`;multimon=1 or 0 Dim all monitors in a multimonitor system
---
> ini=%ini%`n`;multimon=1 or 0 or 2 Dim all monitors in a multimonitor system - 2 uses alternative method for sizing
223c238
< Gui,99:Add,Text,x+10 yp+10,%applicationname% v1.2
---
> Gui,99:Add,Text,x+10 yp+10,%applicationname% v1.3-yl
226a242
> Gui,99:Add,Text,y+10,- With multi-monitor fix by yl
I'm sure there are people out there who would appreciate skrommel (or anyone else) updating the downloads with new AHK and EXE incorporating this fix.