Compiled script disappears from taskbar after opening Topic is solved
Compiled script disappears from taskbar after opening
I have created working hotkeys that I have compiled and taken to a colleague's computer for them to use. Works fine. But this newest one I did when they click OPEN , the autohotkey tray icon shows up but disappears after a couple seconds. Hotkey does not work because of this. Any ideas??
Re: Compiled script disappears from taskbar after opening
Code: Select all
#C::
Send, +{F8}
Sleep, 4000
Send, ZD00
Sleep, 500
Send, {F2}
Sleep, 500
Send, LOCL
Sleep, 250
Send, {TAB}
Sleep, 250
Send, {TAB}
Sleep, 250
Send, {SPACE}
Sleep, 100
Send, {F3}
Sleep, 500
Send, {F5}
Sleep, 500
Send, 4
Sleep, 250
Send, {F3}
Sleep, 1000
Send, ^s
return
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
Re: Compiled script disappears from taskbar after opening
It works great on my computer. But when I compile and try on a colleague's computer it disappears from taskbar.
-
- Posts: 4412
- Joined: 29 Mar 2015, 09:41
- Contact:
Re: Compiled script disappears from taskbar after opening
Try to search it in hidden icons window:
![Image](https://i.imgur.com/znNJS3e.png)
![Image](https://i.imgur.com/znNJS3e.png)
Re: Compiled script disappears from taskbar after opening
It disappears entirely and therefore won't function because it is not apparently open and running anymore. We open it and it appears and then a few seconds later it disappears. Not in hidden either. It's gone.
-
- Posts: 4412
- Joined: 29 Mar 2015, 09:41
- Contact:
Re: Compiled script disappears from taskbar after opening
Perhaps his antivirus kills your script.
Re: Compiled script disappears from taskbar after opening
We all run the same stuff here. It's a big company. Everyone in this department runs same stuff. We have no control over changing antivirus or any other program. I have compiled other hotkey that works fine on a team of 4 people. It's strange this one is not working the same way. It just disappears. Tried it on a couple different computers. Works fine on mine.
Re: Compiled script disappears from taskbar after opening
I also don't think antivirus kills it because other hotkeys work fine on other computers.
-
- Posts: 4412
- Joined: 29 Mar 2015, 09:41
- Contact:
Re: Compiled script disappears from taskbar after opening
Doesn't make any sense.
Re: Compiled script disappears from taskbar after opening
check the windows event logs to see whether the script is crashing
add an OnExit handler, logging the exit reason to see if the script is shutting down cleanly, and if so, why
add an OnExit handler, logging the exit reason to see if the script is shutting down cleanly, and if so, why
Re: Compiled script disappears from taskbar after opening
We dont have admin access to see that folder or install anything like that.
Re: Compiled script disappears from taskbar after opening
Try reducing the code to find cause. use this to try whether it works.
Code: Select all
#C::
Send, +{F8}
Sleep, 4000
Send, ZD00
Sleep, 500
return
Re: Compiled script disappears from taskbar after opening
> I started from scratch and did the code fresh and new.
> Everyone in the office is running same antivirus, etc.
> This code works great on my machine.
> Compiled version will not work on other machines because the hotkey appears and then disappears from the taskbar.
> Other compiled scripts stay in taskbar on other machines. Just this one disappears.
WHY??
> Everyone in the office is running same antivirus, etc.
> This code works great on my machine.
> Compiled version will not work on other machines because the hotkey appears and then disappears from the taskbar.
> Other compiled scripts stay in taskbar on other machines. Just this one disappears.
WHY??
Re: Compiled script disappears from taskbar after opening
does the compiled version work on your machine?
Re: Compiled script disappears from taskbar after opening
I'm wondering if it is not working due to the hotkey I've chosen. I am going to test each line or two as someone above suggested, and also will test using more unusual hotkeys that are not pre-determined already by Windows 10.
Re: Compiled script disappears from taskbar after opening Topic is solved
Making the hotkey simply F7 got this to work on a colleague's machine. Not sure why my machine didn't kill the script like others, but in any case, one must choose hotkeys wisely!