I've been trying to learn to use the BM_Click function with a program called Audacity which is a free audio recorder/editor. I found an Autohotkey script that uses it to record while in a hidden window. It can be found here, http://www.autohotkey.com/forum/viewtopic.php?t=53673.
I thought I could use EG in the same manner to have more control over the recorder. I use the find a window function, drag the crosshair over the record button and it recognizes it as a wxWindowClass and seems to be pointed to the correct button.
When I run the macro it doesn't effect Audacity at all. I've tried hidden and normal windows but I suspect I'm doing something wrong. Please enlighten me if you can. Thank You
Using WinXP SP3
Phenom Black Quadcore
4 Gig ram
Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
BM_Click lesson needed.
Re: BM_Click lesson needed.
http://audacity.sourceforge.net/manual- ... tcuts.html
Does it not work if you use 'find window' audacity.exe and after that use 'send keystrokes' R? If not, then you have to start looking for alternatives.
Does it not work if you use 'find window' audacity.exe and after that use 'send keystrokes' R? If not, then you have to start looking for alternatives.
-
specter333
- Experienced User
- Posts: 95
- Joined: Thu Dec 27, 2007 12:26 am
Re: BM_Click lesson needed.
I'm sorry, I left out one important piece of information. I'm trying to record with the window hidden as the Autohotkey script does. It sends a message I believe is the equivalent to the BM_Click command to control the player while hidden.
I have found another option that seems to work well. Another player called SoX is a gui-less recorder/editor that only operates from the command line. I was able to get EG to send commands to it while hidden.
Thank you for the reply. If anyone does know what I was doing wrong with Audacity I would still like to know.
I have found another option that seems to work well. Another player called SoX is a gui-less recorder/editor that only operates from the command line. I was able to get EG to send commands to it while hidden.
Thank you for the reply. If anyone does know what I was doing wrong with Audacity I would still like to know.
Re: BM_Click lesson needed.
It should not matter if the window is visible or not, you can still send keypresses to it. Just be sure to target it with find window first.
Did you actually try it?
Did you actually try it?
-
specter333
- Experienced User
- Posts: 95
- Joined: Thu Dec 27, 2007 12:26 am
Re: BM_Click lesson needed.
I tried this again to be sure I was targeting the window correctly and I still get no response. I can send keystrokes when it's ran normal but it doesn't seem to get them when it's hidden. I can use "Bring to front" to unhide the window but then I still can't send keystrokes to it. It seems that once I hide it I loose the ability to send keystrokes to it.
I can't get BM_Click to control it whether it's hidden or not even though it seems to identify the correct button.
Oh well, as I said I have this working with SoX, so it's just academic now. Thanks for your help though.
I can't get BM_Click to control it whether it's hidden or not even though it seems to identify the correct button.
Oh well, as I said I have this working with SoX, so it's just academic now. Thanks for your help though.