Jump to content

Recommended Posts

Posted

ok... i used this with notepad.exe and it work

just changed it to your file name

$_File = "\hl2.exe"

RunWait(@ComSpec & ' /c ' & 'dir "' & @HomeDrive & $_File & '" /a :h /b /s' & ' > "' & @TempDir & '\dir.txt"', '', @SW_HIDE)
    Sleep(2000)
    
    
    $hFile = FileOpen(@TempDir & "\dir.txt", 0)
    
; Check if file opened for reading OK
    If $hFile = -1 Then
        MsgBox(0, "Error", "Unable to open file.")
    EndIf
    
    $sLine = FileReadLine($hFile)
    
    If not FileExists($sline) then
    ;mouse click the next position
    ; run... install.. bla bla
    EndIf
    
; for testing
    MsgBox(0,"test", $sLine )

did this work???

8)

NEWHeader1.png

Posted (edited)

My mistake, it found the file and output the path to the message box at the end. Awesome code! B)

I also tried setting $_File to a folder and it worked like a charm!

I will play with this a bit further. Thank you so much for your help, so far!

Edited by buymeapc
Posted

OK, the code Valuater provided me works like a charm, but I'm still having trouble.

I don't know how to relate his code to the Steam gui.

If I find Counter Strike: Source listed in the program folder, how do I tell the mouse to click on Couter Strike: Source in the list in the gui?

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
×
×
  • Create New...