autoitit Posted November 15, 2007 Share Posted November 15, 2007 hi, how can i check that message that show is ready to true examples::: Run("Main.bat") WinWaitActive("Login") Sleep(500) Send("admin{Tab}") Sleep(500) Send("admin{Tab}{Tab}") Sleep(800) MouseClick ("", 660, 480, 1 , 11300 ) Sleep(2000) MouseClick ("", 950, 170 , 1 , 11300) ;////////////////////////////////////////////////press The New Button//////////////////////////////////////////////////////////// Sleep(1000) MouseClick ("", 800, 150 , 1 , 11300) ;////////////////////////////////////////////////Set Data In Fields/////////////////////////////////////////////////////////// Send("{TAB}{DOWN}rt{SPACE}{TAB}50{TAB}JAVA HOW TO PROGRAM{TAB}") Sleep(500) Send("{DOWN}Z{SPACE}{TAB}30{TAB}Object Oriented{TAB}") Sleep(500) Send("{DOWN}1{SPACE}{TAB}7{TAB}Ibraheem Hajaj") ;////////////////////////////////////////////////press The Add Button//////////////////////////////////////////////////////////// Sleep(1000) MouseClick ("", 720, 150 , 1 , 11300) *************************checks message ********************** If WinActive("AddBook") Then Echo "true" EndIf !!!!!!!!!!!!!!!!!!!!!!!!!!!!!Can this is true code or not !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ************************************************************* ;///////////////////////////////////////////////////////////// Message //////////////////////////////////////// Sleep(1000) MouseClick ("", 500, 415 , 1 , 11300) help me now and fast that can very import to my project Link to comment Share on other sites More sharing options...
DW1 Posted November 15, 2007 Share Posted November 15, 2007 I don't understand your question, but you should try to use ControlSetText()oÝ÷ Ú)ìµæ¡ö®¶sg6VæB AutoIt3 Online Help Link to comment Share on other sites More sharing options...
autoitit Posted November 15, 2007 Author Share Posted November 15, 2007 than you but that fail to my qusetion \\\\ that if i need to check some examples that the book must be add successfully that must be need some message to sure that added successfully how can write code to checks this message i can used If WinActive("AddBook") Then Echo "true" EndIf but that error that can occur how can help me Link to comment Share on other sites More sharing options...
autoitit Posted November 15, 2007 Author Share Posted November 15, 2007 Addbook1.rb:38: syntax error, unexpected tCONSTANT, expecting kEND what's is that erorr means Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted November 15, 2007 Moderators Share Posted November 15, 2007 Addbook1.rb:38: syntax error, unexpected tCONSTANT, expecting kENDwhat's is that erorr meansThat's obviously not the actual error, you're missing just about everything in-between.Try posting either the source that is giving you the error, the console output in the output pane of SciTe, or a recreation script that gives you the same error if you want actual help here . Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted November 15, 2007 Moderators Share Posted November 15, 2007 than you but that fail to my qusetion \\\\ that if i need to check some examples that the book must be add successfully that must be need some message to sure that added successfully how can write code to checks this message i can used If WinActive("AddBook") Then Echo "true" EndIf but that error that can occur how can help meEcho is not an AutoIt function... If WinActive("AddBook") Then MsgBox(64, "Info", "True") EndIf Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. 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