turis Posted June 10, 2007 Share Posted June 10, 2007 excuse boys, is the whole morning that I try to study the operation of autoit but I have succeeded in understanding few, now my question is this: how can I automatize a window alert of a particular software so that every time that it automatically appears the key YES is pressed??? thanks this is what sees autoit, i'm positioned on the key Yes (si) with the mouse Press CTRL-ALT-F to freeze the display. >>>>>>>>>>>> Window Details <<<<<<<<<<<<< Title: 3G Connection Class: #32770 Size: X: 413 Y: 332 W: 204 H: 119 >>>>>>>>>>> Mouse Details <<<<<<<<<<< Screen: X: 473 Y: 426 Cursor ID: 2 >>>>>>>>>>> Pixel Color Under Mouse <<<<<<<<<<< RGB: Hex: 0xD6D3CE Dec: 14078926 >>>>>>>>>>> Control Under Mouse <<<<<<<<<<< Size: X: 21 Y: 60 W: 75 H: 23 Control ID: 6 ClassNameNN: Button1 Text: &Sì Style: 0x50030000 ExStyle: 0x00000004 >>>>>>>>>>> Status Bar Text <<<<<<<<<<< >>>>>>>>>>> Visible Window Text <<<<<<<<<<< &Sì &No Transferred 300 000 bytes Do you want disconnect? >>>>>>>>>>> Hidden Window Text <<<<<<<<<<< Link to comment Share on other sites More sharing options...
star2 Posted June 10, 2007 Share Posted June 10, 2007 (edited) I'm not gonna write a script for u I like it when a newbie finds his way with just a little help now u can search the help file for the following: WinWaitActive ControlClick ControlCommand Control ID this will help u to write a script that will send a control command or click whenever the target window is active hope this helps at ur service see ya !! Edited June 10, 2007 by star2 [quote]Baby you're all that I want, When you're lyin' here in my armsI'm findin' it hard to believe, We're in heavenAnd love is all that I need , And I found it there in your heartIt isn't too hard to see, We're in heaven .Bryan Adams[/quote].............................................................................[u]AUTOIT[/u] Link to comment Share on other sites More sharing options...
turis Posted June 10, 2007 Author Share Posted June 10, 2007 (edited) thanks thanks a lot, the fact is that i'm really denied in programming and I would not know from where to start, i don't know not even whether to make a script!!! have understood only that does it with scite script editor!!! but then what I have to do: compile? thanks and excuses still i'll study the help command that you post me... is there examples of my script request? Edited June 10, 2007 by turis Link to comment Share on other sites More sharing options...
star2 Posted June 10, 2007 Share Posted June 10, 2007 thanks thanks a lot, the fact is that i'm really denied in programming and I would not know from where to start, i don't know not even whether to make a script!!! have understood only that does it with scite script editor!!! but then what I have to do: compile? thanks and excuses stilli'll study the help command that you post me...u are so welcomeI suck in scriptting and programming but I love Autoitstart reading the help file and see how easy Autoit is.good luck [quote]Baby you're all that I want, When you're lyin' here in my armsI'm findin' it hard to believe, We're in heavenAnd love is all that I need , And I found it there in your heartIt isn't too hard to see, We're in heaven .Bryan Adams[/quote].............................................................................[u]AUTOIT[/u] Link to comment Share on other sites More sharing options...
MHz Posted June 10, 2007 Share Posted June 10, 2007 This will continually check for the window and click the button Sì. AdlibEnable('_adlib', 1000) While 1 Sleep(200) WEnd Func _adlib() If WinExists('3G Connection', 'Do you want disconnect?') Then ControlClick('3G Connection', 'Do you want disconnect?', 'Button1') EndIf EndFunc Link to comment Share on other sites More sharing options...
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