AutoHotkey Community

It is currently May 26th, 2012, 10:12 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 10 posts ] 
Author Message
PostPosted: June 20th, 2005, 9:19 pm 
Offline

Joined: June 20th, 2005, 9:13 pm
Posts: 37
I suggest that the documentation mention that opening a DOS Windows does not generate a processID under Windows XP and AutoHotKey.

Also, there are no examples of the commands using processID as the way of identifying a Window. I suggest that there be examples of the most complex use of each command, rather than just the simplest.


Report this post
Top
 Profile  
Reply with quote  
PostPosted: June 20th, 2005, 9:36 pm 
Offline

Joined: June 20th, 2005, 9:13 pm
Posts: 37
It's possible that I could help with documentation. There are numerous areas that need small improvements.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 21st, 2005, 1:30 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
I'd welcome it. Feel free to contact me at support@autohotkey.com


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 24th, 2005, 4:42 am 
Offline

Joined: November 16th, 2004, 6:38 am
Posts: 153
Location: New York
Futurepower(R) wrote:
... opening a DOS Window does not generate a processID under Windows XP and AutoHotKey
I'm not sure what you mean by this. The following code on Windows XP does display the correct process ID for the launched console window:
Code:
Run, %ComSpec%,, Min, ProcID
MsgBox, 0, Process ID, %ProcID%

... or did I misunderstand what you mean by "DOS Window"?

Jacques.


Report this post
Top
 Profile  
Reply with quote  
PostPosted: August 18th, 2005, 8:37 pm 
Offline

Joined: June 20th, 2005, 9:13 pm
Posts: 37
This command does not return a process ID:

Run DOS_Window.lnk,, Max, ProcessID

It is necessary to start command-line windows (DOS windows) with a shortcut, because starting any other way does not allow full control over the resulting window.

It's necessary to have the process ID because that is the only way to identify the DOS window reliably after it is opened.

Any answer to this?

(I'm very thankful for AutoHotKey.)


Report this post
Top
 Profile  
Reply with quote  
PostPosted: August 19th, 2005, 3:09 am 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
Futurepower(R) wrote:
It's necessary to have the process ID because that is the only way to identify the DOS window reliably after it is opened.
That's a tough one. I've also had trouble in the past getting cmd.exe windows to look exactly the way I want without resorting to a shortcut (.lnk file). But since Run can't get the PID of a launched shortcut, that leaves only WinGet or Process (or perhaps DllCall) as options to get the PID, which you implied are insufficiently accurate in this case.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 19th, 2005, 1:38 pm 
Offline

Joined: November 16th, 2004, 6:38 am
Posts: 153
Location: New York
Quote:
... trouble in the past getting cmd.exe windows to look exactly the way I want ...
The key HKEY_CURRENT_USER\Console (default console settings) and its subkeys (individual settings for CMD windows that open with speciic titles) can be used to fully control the appearance and behavior of CMD windows without resorting to shortcuts.

Jacques.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 19th, 2005, 1:47 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
I think that will be useful. Thanks.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 20th, 2005, 4:23 pm 
Offline
User avatar

Joined: December 29th, 2004, 1:28 pm
Posts: 2543
Great tip. Thanks Jacques :) .


Report this post
Top
 Profile  
Reply with quote  
PostPosted: August 22nd, 2005, 5:59 pm 
Offline

Joined: June 20th, 2005, 9:13 pm
Posts: 37
This open source software provides completely controllable CLI (Command Line Interface) windows.

http://sourceforge.net/projects/console/

However, my guess is that it does NOT provide a Program ID (PID), because the program spawns a CLI (DOS) window after reading the configuration file.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group