Jump to content

h3xl3y

Members
  • Posts

    12
  • Joined

  • Last visited

Everything posted by h3xl3y

  1. OK, i got it i need path too Run('"' & $app & '" "' & $Temp & $file & '"')
  2. the output is filename error - 0 MsgBox(0, "Info", $file & @lF) and from this code i see that $file is the name i want if i get the same name from $file as i did from $CmdLine[1] then why is not working ?
  3. No nothing ConsoleWrite appear in black in the code, not blue
  4. Sorry that was an typo, because i modified it a few times and didn't notice it was wrong but it is not working with space
  5. does not output anything i need to include something to work?
  6. I have this script that was working before i added unpacking #include <Misc.au3> ;For Do-Until _IsPressed #include <File.au3> #include <Array.au3> $app = "app.exe" $app1 = "splash.exe" $extract = "D:\Extract" $Temp = "D:\Temp\" $Source = $CmdLine[1] If $CmdLine[0] == 1 Then DirCreate( $Temp ) RunWait('"'& $extract & '\7z.exe"' & ' x "' & $Source & '" ' & "-y -o" & '"' & $Temp & '"', "", @SW_HIDE) Run( $app1 ) Do Sleep(1) Until _IsPressed( "20" ) ;Space Local $search = FileFindFirstFile($Temp & '*.*') If $search = -1 Then exit 0 Local $file = FileFindNextFile($search) FileClose($search) Run('"' & $app & '" "' & $file & '"') ProcessClose( $app1 ) While ProcessExists( $app ) Sleep(500) WEnd ProcessWaitClose( $app ) DirRemove( $Temp, 1) Exit 0 EndIf It all works good until $file should be completed Before i had $CmdLine[1] instead of $file Run('"' & $app & '" "' & $CmdLine[1] & '"')
  7. Tis is the line i used before, and works for uncompressed files of course without the unzip line Run('"' & $app & '" -nogui -loadbin "' & $CmdLine[1] & '"') But with the unzip part from the first post doesn't work anymore I changed $CmdLine[1] with $file $file = "D:\Temp\*.cue" and other variations, but no luck
  8. That it's not working for me. My program is not associated because is portable.
  9. I tried to look at this but it seems that is used more to run a program and what i try to do is open the extracted file with other application like opening a .cue file with Daemon Tools sorry that if i was not clear enough in my previous post
  10. Hi I am trying to open a file that can have different extension (.cue,.img) and name from a folder with a program I can extract it to a folder but can't open it after But i can open the file in that program if i don't extract it (if it is launched uncompressed) The bad thing is that i have to keep my files compressed for space reasons Searched everywhere but always find some different code that could work so i don't even know now which method is best So far i have this $app = "program.exe" $app1 = "splash.exe" $windows = "program window" $Source = $CmdLine [1] $Dest = "D:\Temp\" If $CmdLine[0] == 1 Then RunWait('"'&@ScriptDir & '\7z.exe"' & ' x "' & $Source & '" ' & "-y -o" & '"' & $Dest & '"', "", @SW_HIDE) _MouseTrap(@DesktopWidth, @DesktopHeight, @DesktopWidth, @DesktopHeight) Run( $app1 ) Do Sleep(1) Until _IsPressed( "20" ) ProcessClose( $app1 ) Run('"' & $app & '" "' & $CmdLine[1] & '"') WinWait ( $windows ) WinActivate ( $windows ) While ProcessExists( $app ) Sleep(500) WEnd Exit 0 EndIf If someone know how to do it please help Thanks
  11. Ok. Sorry Mod, didn't read the rules until now but when did a search on Google did see similar questions answered, maybe it was in the past, new forum rules...
  12. Hi I made a script for Yabause emulator and it works fine for it's purpose The problem is that it eats 10-12% CPU tried to add Sleep(100) but it does not exit from the script then #include $app = "yabause.exe" $app2 = "D:\mGalaxy\mGalaxy.exe" $windows = "Qt Yabause v0.9.12 - A Beautiful And Under-rated Saturn Emulator" $windows2 = "Select your iso/cue/bin file" If $CmdLine[0] == 1 Then Run( $app ) _MouseTrap(@DesktopWidth, @DesktopHeight, @DesktopWidth, @DesktopHeight) WinWaitActive( $windows ) Send("^i") WinWait( $windows2 ) Send( $cmdline[1] ) Send("{ENTER}") WinActivate ( $app, $windows ) WinWaitActive( $windows ) Send("^l") ProcessWaitClose( $app ) WinActivate( $app2 ) Exit 0 EndIf Any idea?
×
×
  • Create New...