Jump to content

Recommended Posts

Posted

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

Posted

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

  • Moderators
Posted

Addbook1.rb:38: syntax error, unexpected tCONSTANT, expecting kEND

what's is that erorr means

That'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 :P.

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.

  • Moderators
Posted

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

Echo 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.

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
×
×
  • Create New...