StrokesPlus Forum
                       
StrokesPlus Forum
Home | Profile | Register | Active Topics
Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General Discussion
 General Discussion
 Window Title changes
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

stevem99

8 Posts

Posted - 09/13/2014 :  13:19:54  Show Profile  Reply with Quote
I'm looking for a way to activate a window (Audacity) from the desktop.
This is the code for a desktop gesture and it works fine.

x = acFindWindowByTitleRegex("Audacity") -- get hwndTarget number
acActivateWindow(x, nil, nil, 0)

The problem is that when a song is loaded into Audacity, the window title changes to that of the song title. Audacity is not in the title at all. Is there another way to get the hwndTarget number? Thanks

stevem99

8 Posts

Posted - 09/13/2014 :  22:28:59  Show Profile  Reply with Quote
After a little more digging I found I can use acGetProcessIDFromPattern.

Thanks for a great program!
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
StrokesPlus Forum © 2011-2018 Rob Yapchanyk Go To Top Of Page
Snitz Forums 2000