AutoHotkey Community

It is currently May 27th, 2012, 10:31 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: auto run during startup
PostPosted: February 22nd, 2005, 1:36 pm 
Offline

Joined: February 22nd, 2005, 1:20 pm
Posts: 7
Location: singapore
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.
:?: :? sry i amay sound noob

_________________
knowledge = power
I = low power
recharging power


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 22nd, 2005, 1:50 pm 
Offline
User avatar

Joined: August 11th, 2004, 1:47 am
Posts: 5347
Location: UK
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 22nd, 2005, 1:57 pm 
Offline

Joined: February 22nd, 2005, 1:20 pm
Posts: 7
Location: singapore
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


Report this post
Top
 Profile  
Reply with quote  
PostPosted: February 22nd, 2005, 3:26 pm 
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.


Report this post
Top
  
Reply with quote  
 Post subject: Re startup
PostPosted: February 22nd, 2005, 6:35 pm 
Offline

Joined: July 6th, 2004, 10:07 am
Posts: 171
Location: Manchester, England.
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 22nd, 2005, 6:39 pm 
Offline

Joined: July 6th, 2004, 10:07 am
Posts: 171
Location: Manchester, England.
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 22nd, 2005, 6:56 pm 
Offline

Joined: November 13th, 2004, 4:08 am
Posts: 2951
Location: Minnesota
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject: ok
PostPosted: February 23rd, 2005, 12:17 am 
Offline

Joined: February 22nd, 2005, 1:20 pm
Posts: 7
Location: singapore
thx guys i will try

_________________
knowledge = power
I = low power
recharging power


Report this post
Top
 Profile  
Reply with quote  
 Post subject: i hav a qn
PostPosted: February 23rd, 2005, 7:39 am 
Offline

Joined: February 22nd, 2005, 1:20 pm
Posts: 7
Location: singapore
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 23rd, 2005, 8:00 am 
Offline

Joined: November 6th, 2004, 11:03 am
Posts: 170
Location: Salt Lake City, UT
http://www.autohotkey.com/docs/commands/LoopFile.htm ?


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: BrandonHotkey, chaosad, robotkoer, Yahoo [Bot] and 75 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group