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 

auto run during startup

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



Joined: 22 Feb 2005
Posts: 7
Location: singapore

PostPosted: Tue Feb 22, 2005 1:36 pm    Post subject: auto run during startup Reply with quote

can anyone help me on this i cant seem to make a program that make an exe file run automatically on every reboot with ahk or autoit.
how can i ensure the directory is working in every comp.
Question Confused sry i amay sound noob
_________________
knowledge = power
I = low power
recharging power
Back to top
View user's profile Send private message MSN Messenger
Titan



Joined: 11 Aug 2004
Posts: 5068
Location: imaginationland

PostPosted: Tue Feb 22, 2005 1:50 pm    Post subject: Reply with quote

I think you can do it this way on Win2k/XP:

Start > Accessories > System Tools > Scheduled Tasks
Use the wizard to make your script run every time computer starts.
Back to top
View user's profile Send private message Visit poster's website
crovex



Joined: 22 Feb 2005
Posts: 7
Location: singapore

PostPosted: Tue Feb 22, 2005 1:57 pm    Post subject: Reply with quote

i can make the script run manually
but the problem is that i want to make another script to do it for me.(using the startup or regedit)thx any way.
_________________
knowledge = power
I = low power
recharging power
Back to top
View user's profile Send private message MSN Messenger
gogogadgetscott
Guest





PostPosted: Tue Feb 22, 2005 3:26 pm    Post subject: Manage the Programs Run at Windows Startup Reply with quote

Using windows registry create an entry in the Run node.
Code:

App = C:\app.exe
IfExist, %App%
{
    SplitPath, App, PathName, PathDir
    RegWrite, REG_SZ, HKLM, Software\Microsoft\Windows\CurrentVersion\Run, %PathName%, "%App%"
}



For more registry info :: Manage the Programs Run at Windows Startup
http://www.winguides.com/registry/display.php/109/

Quote:
ensure the directory is working in every comp

You will have to be sure the exe is in the same directory on every computer. The above script will only create an entry if the file exists.
Back to top
Dippy46



Joined: 06 Jul 2004
Posts: 171
Location: Manchester, England.

PostPosted: Tue Feb 22, 2005 6:35 pm    Post subject: Re startup Reply with quote

I normally put my boot ahk's or exe's here


%A_Startup% or %A_StartupCommon%
_________________
Simple ideas lie within reach, only of complex minds
Back to top
View user's profile Send private message
Dippy46



Joined: 06 Jul 2004
Posts: 171
Location: Manchester, England.

PostPosted: Tue Feb 22, 2005 6:39 pm    Post subject: Reply with quote

Sorry, I should have been more specific. I have progs that write scripts automatically to %A_Startup%, the progs are changing every time the machine boots. VERY USEFUL, TRUST ME !
_________________
Simple ideas lie within reach, only of complex minds
Back to top
View user's profile Send private message
jonny



Joined: 13 Nov 2004
Posts: 3004
Location: Minnesota

PostPosted: Tue Feb 22, 2005 6:56 pm    Post subject: Reply with quote

Another advantage to putting them in the Startup folder is that they can be easily accessed from the start menu. Also, you can edit the shortcuts in a file manager rather than the clunkier regedit or by Reg commands.
Back to top
View user's profile Send private message
crovex



Joined: 22 Feb 2005
Posts: 7
Location: singapore

PostPosted: Wed Feb 23, 2005 12:17 am    Post subject: ok Reply with quote

thx guys i will try
_________________
knowledge = power
I = low power
recharging power
Back to top
View user's profile Send private message MSN Messenger
crovex



Joined: 22 Feb 2005
Posts: 7
Location: singapore

PostPosted: Wed Feb 23, 2005 7:39 am    Post subject: i hav a qn Reply with quote

is there can any function find the path like if i dont know where is the exe file going to put.
e.g first = C:\program\exe.exe
then i move it to
second=D:\workspace\exe.exe
is there any way to find the location of the file no matter where is it.
any suggest plz
_________________
knowledge = power
I = low power
recharging power
Back to top
View user's profile Send private message MSN Messenger
ranomore



Joined: 06 Nov 2004
Posts: 178
Location: Salt Lake City, UT

PostPosted: Wed Feb 23, 2005 8:00 am    Post subject: Reply with quote

http://www.autohotkey.com/docs/commands/LoopFile.htm ?
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
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