GrungeRocker Posted May 9, 2005 Posted May 9, 2005 i want to disable a window when its opened .. it should look loke if classname=aprogram is @opened then... or sth like that^^ is there a way?? so in clear words^^ my program should run normally while waiting for a application to run^^ [font="Verdana"]In work:[list=1][*]InstallIt[*]New version of SpaceWar[/list] [/font]
w0uter Posted May 9, 2005 Posted May 9, 2005 (edited) edit thought you ment without runwait (srry) Edited May 9, 2005 by w0uter My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll
MSLx Fanboy Posted May 9, 2005 Posted May 9, 2005 (edited) While 1 While WinExists("some program title") = 0 sleep(500);milliseconds WEnd;;(Ends when window exists) WinSetState("some program title", "", @SW_DISABLE) WEnd (loops indefinately) That's the only way I can think of doing it...other than WinWait (WinExist won't pause execution). Edited May 9, 2005 by MSLx Fanboy Writing AutoIt scripts since _DateAdd("d", -2, _NowCalcDate())
MHz Posted May 10, 2005 Posted May 10, 2005 (edited) AdlibEnable() could do this. AdlibEnable('Wait') ; Running script. ; Window disabled now. AdlibDisable() Func Wait() If WinExists('title') Then WinSetState('title', '', @SW_DISABLE) EndFunc Edit: Or alittle different: AdlibEnable('Wait') ; Running script. ; Window disabled now Func Wait() If WinExists('title') Then WinSetState('title', '', @SW_DISABLE) AdlibDisable() EndIf EndFunc Edited May 10, 2005 by MHz
MSLx Fanboy Posted May 11, 2005 Posted May 11, 2005 Always wanted to see a functional AdLibEnable() script! It continues to wait until the AdLib is disabled and/or exit or other similar function is passed? Writing AutoIt scripts since _DateAdd("d", -2, _NowCalcDate())
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now