Jump to content

step 2 failure


Recommended Posts

I am completely new at this (or anything like this) and am trying to teach myself autoit using the help files.

the problem is this. I can open a notepad window with: Run("notepad.exe") the problem happens when i try to replace "notepad.exe" with the .exe file that i am trying to automate for. the location of the .exe is c:\program files\game company\game\kicker.exe but, when I put Run("c:\program files\game company folder\game folder\kicker.exe") and run the script, nothing happens.

I know the file path is correct, and its only one line of code that only fails when i change the path ... I am getting frustrated, can anyone help? Why won't it work?

on another note, does anyone know of a really good tutorial? (by really good I mean something that a total idiot could use to become an autoit guru)

Link to comment
Share on other sites

I am completely new at this (or anything like this) and am trying to teach myself autoit using the help files.

the problem is this. I can open a notepad window with: Run("notepad.exe") the problem happens when i try to replace "notepad.exe" with the .exe file that i am trying to automate for. the location of the .exe is c:\program files\game company\game\kicker.exe but, when I put Run("c:\program files\game company folder\game folder\kicker.exe") and run the script, nothing happens.

I know the file path is correct, and its only one line of code that only fails when i change the path ... I am getting frustrated, can anyone help? Why won't it work?

on another note, does anyone know of a really good tutorial? (by really good I mean something that a total idiot could use to become an autoit guru)

Welcome to AutoIt! :)

Try the AutoIt 1-2-3 tutorial linked in my sig.

As for your Run() function, try providing the working directory parameter:

$sDir = "c:\program files\game company folder\game folder"
$sEXE = $sDir & "\kicker.exe"
Run($sEXE, $sDir)

:lmao:

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
Share on other sites

Welcome to AutoIt! :)

Try the AutoIt 1-2-3 tutorial linked in my sig.

As for your Run() function, try providing the working directory parameter:

$sDir = "c:\program files\game company folder\game folder"
$sEXE = $sDir & "\kicker.exe"
Run($sEXE, $sDir)

:lmao:

WOW! that was a fast response! ... i'll try it (although i don't fully understand it lol)
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...