Jump to content

Cant get a file to run...


Recommended Posts

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
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...