AutoHotkey Community

It is currently May 25th, 2012, 2:41 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: April 26th, 2007, 2:57 pm 
Offline

Joined: May 22nd, 2006, 2:01 pm
Posts: 25
Hello,

I would like to open and close some Macros by a macro. So I can do it a little more modular then having all the code in one Macro.

My problem is that if I want to take the Unique PID by writing:

run, c:\macro.ahk,,,UniqueID

process, close, %UniqueID%

It doesn't work because the runmethod doesn't give me the unique ID. So unfortunately this way I think it doesn't work.

Somebody has another idea!?

Best regards

Oli


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 26th, 2007, 3:12 pm 
WinGet


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: April 26th, 2007, 3:23 pm 
Offline

Joined: May 22nd, 2006, 2:01 pm
Posts: 25
I don't think that this work because winclose doesn't work for a TrayIcon neither...


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 26th, 2007, 4:21 pm 
some other ideas?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: April 26th, 2007, 5:03 pm 
Offline
User avatar

Joined: August 30th, 2005, 8:43 pm
Posts: 8647
Location: Salem, MA
run autohotkey with the AHK file as an argument instead, that will give you the process ID of the ahk script.

Alternately, have the ahk script you are running write it's own PID to a text file somewhere (Process command)

_________________
Image
(Common Answers) - New Tutorials Forum - Humongous FAQ


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: Google Feedfetcher, lblb, Yahoo [Bot] and 21 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