Jump to content
Sign in to follow this  
Achilles

Winwaitactive("Run")?

Recommended Posts

Achilles

Does anyone know why this doesn't work? Also if I try something like "Winwaitactive("Mozilla - Gmail")" (to check Gmail...) it won't work. I'd appreciate knowing if I'm doing something wrong or if Autoit won't do it for some reason.

Pianoman

Edited by Piano_Man

My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list]

Share this post


Link to post
Share on other sites
Xenobiologist

HI,

you may also have a look at Opt('WinTitleMatchMode', X) x = 1,2,3,4 and to get the Title may use Autoit Window Info.

So long,

Mega


Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Share this post


Link to post
Share on other sites
/dev/null

see also Option WinTitleMatchMode. Maybe the title you use with WinwaitActive() does not match! Otherwise post your script, so we can see what's going wrong. Also, do a very simple test.

Run the following script and then start notepad.exe. You should then see a message box.

WinWaitActive("Untitled")
MsgBox(4096,"Info","Notepad now running ...")

If this works, re-check your code and the window titles. If this does not work, you've got a serious problem.

Cheers

Kurt


__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Share this post


Link to post
Share on other sites
Achilles

Thanks for all those that helped. I used Kurt - /dev/null/'s to test it and it worked great. I know I was doing something like that before but I had a small typo somewhere...

Michael


My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list]

Share this post


Link to post
Share on other sites

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. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×