Rob781 Posted December 9, 2012 Share Posted December 9, 2012 (edited) Im haveing problems with the runwait command.. I'm trying to get a DOS program to work.. I works fine when I open cmd.exe in start menu then type in command for it to run in command prompt. But when I try to open it in RunWait("C:Gamesgame.exe /vga") it doesnt show up. I see it in task manger but no windows for it. I even tryed @SW_MAXIMIZE to see if that helps. still no change.. I still see it loaded up in task manger and its running with 20% cpu.. and I hear the music but no window.. I noteced that when I open it up from command prompt, I saw it like close the window and reopen another window or like it resized the window.. I can get it to work from a batch file but not from autoIT.. anyone with any Ideas??? I spent like 3 hours on it and came up with nothing.. all I can think of is a thing that will open cmd.exe and write "C:Gamesgame.exe /vga" directly to it.. but I can find out how to do that I even tryed ShellExecuteWait("C:Gamesgame.exe /vga") an it just errored and didn't like the spacing in some of the switches in side of the "" for the command Edited December 9, 2012 by Rob781 Link to comment Share on other sites More sharing options...
Developers Jos Posted December 9, 2012 Developers Share Posted December 9, 2012 anyone with any Ideas??? I spent like 3 hours on it and came up with nothing.. all I can think of is a thing that will open cmd.exe and write "C:Gamesgame.exe /vga" directly to it.. but I can find out how to do thatI even tryed ShellExecuteWait("C:Gamesgame.exe /vga") an it just errored and didn't like the spacing in some of the switches in side of the "" for the commandHave you looked at the helpfile in those 3 hours? ShellExecuteWait() should have the commandline parameters in a separate parameter....but, have you read our forumrules, because looking at your commandline you are telling us you are staring a game?Jos. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Rob781 Posted December 9, 2012 Author Share Posted December 9, 2012 (edited) "parameters [optional] Any parameters for the program. Blank ("") uses none." I couldn't find anything about how to set up parameter.. I did a index search for it in help and it poped up with every thing that has parameters.. nothing about the diffrent parameters options.. I even tryied google "autoIT parameters" and came up with a bunch of stuff on how to complie autoit files.. I some one can piont me in the right direction on how to . That would help me. Sorry sorta new to autoIT but starting picking it up..[autoit]$var1 = " /vga"ShellExecuteWait(" C:gamesgame.exe " & $var1, "", @ScriptDir, "open")[autoit]then I run it I get a massage saying windows cannot find 'C:gamesgame.exe /vga' Make sure you typed it correctly.. if I goto cmd in windows and type it in command prompt it loads no problem.when I runRunWait("C:gamesgame.exe " & $var1)it shows up as a precess at 20% cpu and is nunning but nothing under applications the the gui I make.. even kill the gui I made and that screen closes but only thing I can do to stop the game is to stop the process.. the game is still running until I kill the process.. Edited December 9, 2012 by Rob781 Link to comment Share on other sites More sharing options...
Rob781 Posted December 9, 2012 Author Share Posted December 9, 2012 but, have you read our forumrules, because looking at your commandline you are telling us you are staring a game?I don't under stand you what you are talking about "forumrules" should I post is in an anoth section? this looks to me like a gerneral form section. If I should post it else where let me know Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted December 9, 2012 Moderators Share Posted December 9, 2012 Rob781,It is not "where" you are posting that is the problem - Jos was referrring to "what" you are posting. I suggest you take a look at the Forum rules - particularly the bit about not discussing game interaction - and then you will understand why this thread is now locked. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Recommended Posts