Hyflex Posted April 8, 2007 Posted April 8, 2007 Why in= the script below doesnt it load up PreCast.exe wen i press home, i want precast to load and the current program to close Help pls... Global $Paused = False HotKeySet("{HOME}", "Start") Opt('MouseClickDelay', 0) $PreCast = IniRead(@ScriptDir&"scripts\config\Config.ini", "Scripts" , "PreCast" , "0") While 1 Sleep(10) WEnd Func Start() While 1 If $PreCast = "1" Then Run( "PreCast.exe", @ScriptDir&"scripts") Sleep(10) EndIf Exit WEnd EndFunc
xcal Posted April 8, 2007 Posted April 8, 2007 (edited) Run('c:\path\to\the\file.exe') edit - btw, if the way you had it would work, you'd be missing a slash since @ScriptDir doesn't have a trailing slash (ex: Run(@ScriptDir & '\file.exe')) Edited April 8, 2007 by xcal How To Ask Questions The Smart Way
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now