AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Run/RunWait

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
Invalid User



Joined: 14 Feb 2005
Posts: 442
Location: Texas, Usa

PostPosted: Sun Feb 20, 2005 12:26 am    Post subject: Run/RunWait Reply with quote

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 Smile
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
jonny



Joined: 13 Nov 2004
Posts: 3004
Location: Minnesota

PostPosted: Sun Feb 20, 2005 12:58 am    Post subject: Reply with quote

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
View user's profile Send private message
Invalid User



Joined: 14 Feb 2005
Posts: 442
Location: Texas, Usa

PostPosted: Sun Feb 20, 2005 1:06 am    Post subject: Reply with quote

yes run wait should pause until the Target is running, or does it pause until it run and exits?
_________________
my lame sig Smile
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Sun Feb 20, 2005 2:50 am    Post subject: Re: Run/RunWait Reply with quote

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
View user's profile Send private message Send e-mail
Invalid User



Joined: 14 Feb 2005
Posts: 442
Location: Texas, Usa

PostPosted: Sun Feb 20, 2005 4:34 am    Post subject: Reply with quote

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 Smile
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
jonny



Joined: 13 Nov 2004
Posts: 3004
Location: Minnesota

PostPosted: Sun Feb 20, 2005 7:39 am    Post subject: Reply with quote

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
View user's profile Send private message
Invalid User



Joined: 14 Feb 2005
Posts: 442
Location: Texas, Usa

PostPosted: Sun Feb 20, 2005 8:03 am    Post subject: Reply with quote

Maybe I am confused but that code works fine on XP
_________________
my lame sig Smile
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Sun Feb 20, 2005 2:22 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Invalid User



Joined: 14 Feb 2005
Posts: 442
Location: Texas, Usa

PostPosted: Sun Feb 20, 2005 2:31 pm    Post subject: Reply with quote

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 Smile
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
jonny



Joined: 13 Nov 2004
Posts: 3004
Location: Minnesota

PostPosted: Sun Feb 20, 2005 5:13 pm    Post subject: Reply with quote

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
View user's profile Send private message
Invalid User



Joined: 14 Feb 2005
Posts: 442
Location: Texas, Usa

PostPosted: Sun Feb 20, 2005 9:43 pm    Post subject: Reply with quote

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 Smile
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
corrupt



Joined: 29 Dec 2004
Posts: 2419

PostPosted: Sun Feb 20, 2005 10:10 pm    Post subject: Reply with quote

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
Laughing 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
View user's profile Send private message Visit poster's website
Invalid User



Joined: 14 Feb 2005
Posts: 442
Location: Texas, Usa

PostPosted: Tue Feb 22, 2005 7:11 am    Post subject: Reply with quote

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 Smile
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group