Compiled script disappears from taskbar after opening Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
paquirl
Posts: 53
Joined: 28 Aug 2017, 13:36

Compiled script disappears from taskbar after opening

17 Jan 2020, 13:21

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??
paquirl
Posts: 53
Joined: 28 Aug 2017, 13:36

Re: Compiled script disappears from taskbar after opening

17 Jan 2020, 13:33

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.
paquirl
Posts: 53
Joined: 28 Aug 2017, 13:36

Re: Compiled script disappears from taskbar after opening

17 Jan 2020, 13:34

It works great on my computer. But when I compile and try on a colleague's computer it disappears from taskbar.
paquirl
Posts: 53
Joined: 28 Aug 2017, 13:36

Re: Compiled script disappears from taskbar after opening

17 Jan 2020, 14:31

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.
paquirl
Posts: 53
Joined: 28 Aug 2017, 13:36

Re: Compiled script disappears from taskbar after opening

17 Jan 2020, 14:48

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.
paquirl
Posts: 53
Joined: 28 Aug 2017, 13:36

Re: Compiled script disappears from taskbar after opening

17 Jan 2020, 15:26

I also don't think antivirus kills it because other hotkeys work fine on other computers.
swagfag
Posts: 6222
Joined: 11 Jan 2017, 17:59

Re: Compiled script disappears from taskbar after opening

17 Jan 2020, 16:19

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
paquirl
Posts: 53
Joined: 28 Aug 2017, 13:36

Re: Compiled script disappears from taskbar after opening

17 Jan 2020, 16:29

We dont have admin access to see that folder or install anything like that.
User avatar
telanx
Posts: 68
Joined: 10 Jan 2020, 14:31

Re: Compiled script disappears from taskbar after opening

17 Jan 2020, 20:02

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
paquirl
Posts: 53
Joined: 28 Aug 2017, 13:36

Re: Compiled script disappears from taskbar after opening

20 Jan 2020, 10:32

> 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??
guest3456
Posts: 3469
Joined: 09 Oct 2013, 10:31

Re: Compiled script disappears from taskbar after opening

20 Jan 2020, 10:49

does the compiled version work on your machine?

paquirl
Posts: 53
Joined: 28 Aug 2017, 13:36

Re: Compiled script disappears from taskbar after opening

22 Jan 2020, 10:19

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.
paquirl
Posts: 53
Joined: 28 Aug 2017, 13:36

Re: Compiled script disappears from taskbar after opening  Topic is solved

22 Jan 2020, 13:41

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!

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: macromint, peter_ahk, Rauvagol, Spawnova, wineguy and 292 guests