Autoit winactivate windows 7




















Posted December 21, edited. Create an account or sign in to comment You need to be a member in order to leave a comment Create an account Sign up for a new account in our community.

Register a new account. Sign in Already have an account? Sign In Now. Followers 0. Go to topic listing. Recently Browsing 0 members No registered users viewing this page.

Join Now. Follow us:. If this is your first visit, be sure to check out the FAQ. You have to register before you can post. Almost all ads disappear when you login.

COM trippt Official Discord. Results 1 to 15 of Thread Tools. For this, you might check for your active window always before perfoming something with it But it's much better for such cases to try to use the Control Because especially when you open popup windows within your application, they might have the same word in its title.

So it might not be sure that your commands are being executed with the window you suppose them to be. After getting the PID of your newly run window you might consider using it to receive its windows handle - there are functions in the AutoIt forums to receive a handle from a PID.

So you can be sure to use the exact window you are supposing to use. Oh - and the usage of control IDs is really bad. Who can assure you, they won't change? Use some control names instead Stack Overflow for Teams — Collaborate and share knowledge with a private group.

Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Asked 7 years, 10 months ago. I am going to give a shot though at messing with some apps though. Edit: I noticed that the process becomes Suspended in the Task Manager while you are working on Desktop mode. I think that might be interfering. Pressing a while Sports is active puts on the Desktop a Message Box.

I'm in a noisy environment right now and can't say if I hear a sound when the MsgBox comes up, but I can say it does not bring focus to the Desktop. I might be able to work around this - AHK totally can understand when Sports is active. This is an absolutely ugly terrible way to do this , but it's the only way I found after a dozen trials. Change Sports to Mail. Also improved restoring windows using d when it reaches the Desktop - always the last item on TaskSwitcher. I don't think it's so terrible anymore.

Still ugly though. There's a quick ugly function to activating Metros using this method. In theory it works with other window titles Because it always failed to find the title, so it would always return after the first line.



0コメント

  • 1000 / 1000