| View previous topic :: View next topic |
| Author |
Message |
Invalid User
Joined: 14 Feb 2005 Posts: 442 Location: Texas, Usa
|
Posted: Sun Feb 20, 2005 12:26 am Post subject: Run/RunWait |
|
|
I had some issues using
run, Target, %A_ScriptDir%
And I also tried %A_Script%\
neither worked properly nor did they work with the target in a folder of the script dir
That above was on Win98
I had a runwait issue too (on XP)
Runwait ran the target fine but paused the thread. Are these know bugs? _________________ my lame sig  |
|
| Back to top |
|
 |
jonny
Joined: 13 Nov 2004 Posts: 3004 Location: Minnesota
|
Posted: Sun Feb 20, 2005 12:58 am Post subject: |
|
|
| It's surprising that the first one you mentioned doesn't work, but as for RunWait, it's meant to pause the thread. As the name implies, RunWait waits (pauses) until the program run has completed. |
|
| Back to top |
|
 |
Invalid User
Joined: 14 Feb 2005 Posts: 442 Location: Texas, Usa
|
Posted: Sun Feb 20, 2005 1:06 am Post subject: |
|
|
yes run wait should pause until the Target is running, or does it pause until it run and exits? _________________ my lame sig  |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Sun Feb 20, 2005 2:50 am Post subject: Re: Run/RunWait |
|
|
| Invalid User wrote: | run, Target, %A_ScriptDir%
And I also tried %A_Script%\
neither worked properly nor did they work with the target in a folder of the script dir | It would help to have more details, such as the text in the error dialog when the run failed.
| Quote: | | run wait should pause until the Target is running, or does it pause until it run and exits? | It waits until the launched program finishes running and exits. |
|
| Back to top |
|
 |
Invalid User
Joined: 14 Feb 2005 Posts: 442 Location: Texas, Usa
|
Posted: Sun Feb 20, 2005 4:34 am Post subject: |
|
|
Ok I havnt cont. testing on the RunWait, under the assumption that I was misusing it, but here is the details on Run Using Win 98
This is the code
| Code: |
Run, MKTips.ahk, %A_ScriptDir%
|
There is not error dialog like other attempts to run a file that isnt in the specified path, it just simply doent run and continues the current thread. _________________ my lame sig  |
|
| Back to top |
|
 |
jonny
Joined: 13 Nov 2004 Posts: 3004 Location: Minnesota
|
Posted: Sun Feb 20, 2005 7:39 am Post subject: |
|
|
Try this:
| Code: | | Run, %A_ScriptDir%\MKTips.ahk |
I think you're confused about what the "working directory" is. It's not the directory it looks for the program/file in, it's the directory it sets it to run in. |
|
| Back to top |
|
 |
Invalid User
Joined: 14 Feb 2005 Posts: 442 Location: Texas, Usa
|
Posted: Sun Feb 20, 2005 8:03 am Post subject: |
|
|
Maybe I am confused but that code works fine on XP _________________ my lame sig  |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Sun Feb 20, 2005 2:22 pm Post subject: |
|
|
| Invalid User wrote: | here is the details on Run Using Win 98
Run, MKTips.ahk, %A_ScriptDir%
There is not error dialog like other attempts to run a file that isnt in the specified path, it just simply doent run and continues the current thread. | I tried running one script from another on Windows 98se, using the example you posted above. If the target file did not exist, it produced an error dialog. If it did, the script was launched okay.
So I'm not sure what the problem could be. Perhaps you could test it on a different Win98 machine (if you have one). |
|
| Back to top |
|
 |
Invalid User
Joined: 14 Feb 2005 Posts: 442 Location: Texas, Usa
|
Posted: Sun Feb 20, 2005 2:31 pm Post subject: |
|
|
oh hell with it, if its only my machine its because its a Pentium II, and probly should even be thouched, but i like to crash and fix, and do Win 98 and 98+ testing, the dang thing hardly keeps up with my typing. LOL _________________ my lame sig  |
|
| Back to top |
|
 |
jonny
Joined: 13 Nov 2004 Posts: 3004 Location: Minnesota
|
Posted: Sun Feb 20, 2005 5:13 pm Post subject: |
|
|
| You should get a Linux distro optimized for old machines. I did that with my old 288mhz, and I was truly amazed. I'm still actually using it, too (albeit much less than my 1.2ghz Linux). |
|
| Back to top |
|
 |
Invalid User
Joined: 14 Feb 2005 Posts: 442 Location: Texas, Usa
|
Posted: Sun Feb 20, 2005 9:43 pm Post subject: |
|
|
All that junker needs is a vid card with some enternal ram cus the screen is 16 color, and its 600. 400 er what ever, and I need some smaller text on the screen, even 10pt font is like half inch tall _________________ my lame sig  |
|
| Back to top |
|
 |
corrupt
Joined: 29 Dec 2004 Posts: 2419
|
Posted: Sun Feb 20, 2005 10:10 pm Post subject: |
|
|
| Invalid User wrote: | | oh hell with it, if its only my machine its because its a Pentium II, and probly should even be thouched, but i like to crash and fix, and do Win 98 and 98+ testing, the dang thing hardly keeps up with my typing. LOL | My main machine for a few months (due to a motherboard/processor burn out) was a PII 400 (XP Pro, 256MB SDRAM, DVD burner, 240GB HD space, 64MB AGP 3d vid card, etc...) I doubt the fact it is a PII is the issue... |
|
| Back to top |
|
 |
Invalid User
Joined: 14 Feb 2005 Posts: 442 Location: Texas, Usa
|
Posted: Tue Feb 22, 2005 7:11 am Post subject: |
|
|
Oh I know its not the processor, I was just kidding, but I really ought to buy another P III for my scripting The P4 I run is a bit over qualified...not that it matters _________________ my lame sig  |
|
| Back to top |
|
 |
|