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 

RESOLVED Change AutoHotkey.ahk script prevents startup-WHY?

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
geor



Joined: 16 Jun 2008
Posts: 45

PostPosted: Mon Jun 16, 2008 3:34 pm    Post subject: RESOLVED Change AutoHotkey.ahk script prevents startup-WHY? Reply with quote

I set AHK to run @ Startup.

If i comment out part of the original AutoHotkey.ahk script that runs @ Startup, like so:


;#z::Run www.autohotkey.com

or

; #z::Run www.autohotkey.com ( does a space matter ?)

then AHK does not start,
as evidenced by the fact that it's not listed as a running process in Sysinternals Process Explorer -
but it is listed if I don't comment it out.

I did replace " www.autohotkey.com " w/ C:\Program Files\Internet Explorer\IEXPLORE.EXE ,
which believe it or not, Win+Z is my own previous hotkey to fire up IE7,
and that works ok.

For my education in AHK & scripting, I need/want to know WHY ???

WHY when things work, and even more importantly, WHY when they don't ?

Thanks to whoever can help enlighten me Smile

************************

Hold on ! before posting, whilst reviewing this just now, an idea struck -

it doesn't load @ startup because there is no longer any script to load & run,
because i commented it out !! ??

is this true ?
i hope i'm developing some reasoning abilities here Shocked


Last edited by geor on Tue Jun 17, 2008 1:03 pm; edited 1 time in total
Back to top
View user's profile Send private message
ggwwtt
Guest





PostPosted: Mon Jun 16, 2008 4:03 pm    Post subject: Reply with quote

it runs but then it goes away.

If you don't have any hotkeys you have to use "persistant" or some damn key word I don't remember cause I've never needed...
Back to top
PurloinedHeart



Joined: 04 Apr 2008
Posts: 209
Location: Canada

PostPosted: Mon Jun 16, 2008 5:14 pm    Post subject: Reply with quote

Code:

#Persistent
Back to top
View user's profile Send private message
geor



Joined: 16 Jun 2008
Posts: 45

PostPosted: Mon Jun 16, 2008 5:42 pm    Post subject: Reply with quote

Thanks, folks ! It works !

I erased both commands from AutoHotkey.ahk script,
added the #persistent,
and it starts up - it's in the system tray, ready to edit.

Love it when the understanding comes.

Now I need to know what I'm not doing correctly with the

, max parameter?

> http://www.autohotkey.com/forum/viewtopic.php?t=32780

Thx again Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
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