AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

how do I find and disable an ahk file that has #NoTrayIcon
Goto page 1, 2  Next
 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
azure



Joined: 07 Jun 2007
Posts: 694

PostPosted: Thu Jul 05, 2007 4:28 am    Post subject: how do I find and disable an ahk file that has #NoTrayIcon Reply with quote

how do I find and disable an ahk file that has #NoTrayIcon parameter?
Back to top
View user's profile Send private message
SKAN



Joined: 26 Dec 2005
Posts: 8688

PostPosted: Thu Jul 05, 2007 6:46 am    Post subject: Re: how do I find and disable an ahk file that has #NoTrayIc Reply with quote

azure wrote:
how do I find and disable an ahk file that has #NoTrayIcon parameter?


Ambiguous! Did you mean:
How to detect and exit a running AHK script that has no tray icon ?

Question Rolling Eyes
Back to top
View user's profile Send private message Send e-mail
azure



Joined: 07 Jun 2007
Posts: 694

PostPosted: Thu Jul 05, 2007 7:03 am    Post subject: Reply with quote

yeap Smile
Back to top
View user's profile Send private message
SKAN



Joined: 26 Dec 2005
Posts: 8688

PostPosted: Thu Jul 05, 2007 7:47 am    Post subject: Reply with quote

Not an easy task, I guess. Sad
You have to get a list of PID's for all running AHK scripts and use TrayIcons() to ascertain whether it has a Tray icon Exclamation

Rolling Eyes
Back to top
View user's profile Send private message Send e-mail
Guest






PostPosted: Thu Jul 05, 2007 7:57 am    Post subject: Reply with quote

CTRL+ALT+DEL opens the windows task manager..... under Processes locate AutoHotkey.exe and select End Process
Back to top
azure



Joined: 07 Jun 2007
Posts: 694

PostPosted: Thu Jul 05, 2007 10:17 am    Post subject: Reply with quote

Anonymous wrote:
CTRL+ALT+DEL opens the windows task manager..... under Processes locate AutoHotkey.exe and select End Process


but in case of multiple ahk files running there is no way to determine which is which
Back to top
View user's profile Send private message
Helpy
Guest





PostPosted: Thu Jul 05, 2007 11:29 am    Post subject: Reply with quote

So you have to kill them until the annoying one is ended, and restart the others... Sad
Back to top
Kisan



Joined: 05 Jul 2007
Posts: 4

PostPosted: Thu Jul 05, 2007 5:32 pm    Post subject: Reply with quote

Not sure if this is what you were looking for but it's in the FAQ.
http://www.autohotkey.com/docs/FAQ.htm#close
Back to top
View user's profile Send private message AIM Address MSN Messenger
micaman



Joined: 05 Jul 2007
Posts: 4

PostPosted: Thu Jul 05, 2007 5:52 pm    Post subject: Reply with quote

um addition to this my ctrl+alt+del is actually shut off each time I try to open it due to a line my brother added so i can't shut if off that way does anyone know how to get around that?

also note that each one is hidden.
Back to top
View user's profile Send private message
engunneer



Joined: 30 Aug 2005
Posts: 8255
Location: Maywood, IL

PostPosted: Thu Jul 05, 2007 6:49 pm    Post subject: Reply with quote

you can write an ahk script to search out other ahk scripts and process, Close them. just be sure to compile it, since otherwise, it will close itself

otherwise, use the pskill command (you have to download the pstools package)


I seem to remember a brother vs. brother prank script discussion a while back, I wonder if you are the target brother.
_________________

(Common Answers)
Back to top
View user's profile Send private message Visit poster's website
micaman



Joined: 05 Jul 2007
Posts: 4

PostPosted: Fri Jul 06, 2007 1:50 pm    Post subject: Reply with quote

sadly i am... also i sorta am new at this auto hot key thing... so i don't know how to find it.
Back to top
View user's profile Send private message
engunneer



Joined: 30 Aug 2005
Posts: 8255
Location: Maywood, IL

PostPosted: Fri Jul 06, 2007 4:52 pm    Post subject: Reply with quote

tested:
Code:

Loop
{
Process, Close, autohotkey.exe
If (ErrorLevel = 0)
  break
}


This will close al UNCOMPILED ahk scripts, including itself. If it is a compiled AHK script, you will need to know the name of it...


PSTools - http://www.microsoft.com/technet/sysinternals/utilities/PsTools.mspx
_________________

(Common Answers)
Back to top
View user's profile Send private message Visit poster's website
micaman



Joined: 05 Jul 2007
Posts: 4

PostPosted: Sat Jul 07, 2007 4:26 pm    Post subject: Reply with quote

ok um i found on my desktop an autohotkey program i think it is complied cause it says Mcwall.exe does that mean it is compiled?
Back to top
View user's profile Send private message
Sukarn



Joined: 16 Jun 2007
Posts: 35

PostPosted: Sat Jul 07, 2007 4:45 pm    Post subject: Reply with quote

micaman wrote:
ok um i found on my desktop an autohotkey program i think it is complied cause it says Mcwall.exe does that mean it is compiled?


If its a .exe then its compiled.
Back to top
View user's profile Send private message
micaman



Joined: 05 Jul 2007
Posts: 4

PostPosted: Sat Jul 07, 2007 5:03 pm    Post subject: Reply with quote

good so it is complied now how do i close and note, it is hidden and i can't use ctrl+alt+del
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group