JLC123 Posted November 2, 2007 Posted November 2, 2007 I have three buttons on my GUI that will pull up text files in notepad when pressed. The functionality works great unless you want to see more than one of those text files at the same time. Can this be done? Did I miss something obvious? Any assistance would be appreciated Case $msg = $Button1 RunWait(@ComSpec & " /c " & 'notepad c:\File1.txt', "", @SW_HIDE) Case $msg = $Button2 RunWait(@ComSpec & " /c " & 'notepad c:\File2.txt', "", @SW_HIDE) Case $msg = $Button3 RunWait(@ComSpec & " /c " & 'notepad c:\File3.txt', "", @SW_HIDE) Two wrongs don't make a right, but three lefts do
Siao Posted November 2, 2007 Posted November 2, 2007 (edited) Did I miss something obvious?Yes. The first sentence of RunWait description in the help file, which says"Runs an external program and pauses script execution until the program finishes." Edited November 2, 2007 by Siao "be smart, drink your wine"
JLC123 Posted November 2, 2007 Author Posted November 2, 2007 Yes. The first sentence of RunWait description in the help file, which says"Runs an external program and pauses script execution until the program finishes." Sorry - I've used RunWait so many times it never crossed my mind to check the help file. (probably because I'm an idiot!) Two wrongs don't make a right, but three lefts do
Vindicator209 Posted November 3, 2007 Posted November 3, 2007 (edited) Its an honest mistake, most people do in sooner or later. Try Run() instead Edited November 3, 2007 by MethodZero [center]"When you look at old, classic games like Snake, you often put it off because it's such a simple game, but it's only when you actually try and create your own unique game from scratch, do you finally appreciate those games."[/center][center]Don't ask for answers if you haven't TRIED yet![/center][center]Most answers can be answered in the help file! Use it![/center]
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now