Jump to content

Recommended Posts

Posted

Hi,

Please find the below code, first it activates 1 screen and opens the settings page by sending Alt +t and s , I am facing the problem here.this takes some time to open the settings window but the script is continuing without waiting for the window to appear.

winactivate("jabber.com - RhymBox")

send ("{ALTDOWN}t")

send("{ALTUP}")

send ("s")

winwait( "RhymBox Settings") ; should pause untill the window appear but its not ;pausing here directly its executing and script is coming out.

ControlCommand ( "RhymBox Settings", "", "Store all the messages in the history archive", Send("{NUMPADSUB}"), "")

please let me know how to resolve this.

Posted

Hi,

...the script is continuing without waiting for the window to appear.

winwait( "RhymBox Settings") ; should pause untill the window appear but its not

...

please let me know how to resolve this.

<{POST_SNAPBACK}>

I'd say, change WinWait to WinWaitActive, and add a WinActivate statement before it:

WinActivate("RhymBox Settings")

WinWaitActive("RhymBox Settings")

Phillip

Posted

I'd say, change WinWait to WinWaitActive, and add a WinActivate statement before it:

WinActivate("RhymBox Settings")

WinWaitActive("RhymBox Settings")

<{POST_SNAPBACK}>

No , it didn't work

My code is --------------------------------

Opt("WinTitleMatchMode", 2)

winwait("jabber.agere.com - RhymBox")

winactivate("jabber.agere.com - RhymBox")

send ("{ALTDOWN}t")

send("{ALTUP}")

send ("s")

Opt("WinTitleMatchMode", 3)

WinActivate("RhymBox Settings")

WinWaitActive("RhymBox Settings")

Opt("MouseCoordMode", 0)

MouseClick ( "left" , 55, 178, 1, 0 )

Send("{tab} ")

ControlCommand ( "RhymBox Settings", "", "Store all the messages in the history archive",Send("{-}"), "")

Posted

No , it didn't work

My code is --------------------------------

Opt("WinTitleMatchMode", 2)

winwait("jabber.agere.com - RhymBox")

winactivate("jabber.agere.com - RhymBox")

send ("{ALTDOWN}t")

send("{ALTUP}")

send ("s")

Opt("WinTitleMatchMode", 3)

WinActivate("RhymBox Settings")

WinWaitActive("RhymBox Settings")

Opt("MouseCoordMode", 0)

MouseClick ( "left" , 55, 178, 1, 0 )

Send("{tab} ")

ControlCommand ( "RhymBox Settings", "", "Store all the messages in the history archive",Send("{-}"), "")

<{POST_SNAPBACK}>

problem with this code...

Opt("MouseCoordMode", 0)

MouseClick ( "left" , 55, 178, 1, 0 )

this code is exactly working some times , and giving problem some time with same resolution on same machine.

any reason?

Posted

problem with this code...

Opt("MouseCoordMode", 0)

MouseClick ( "left" , 55, 178, 1, 0 )

this code is exactly working some times , and giving problem some time  with same resolution on same machine.

any reason?

<{POST_SNAPBACK}>

Are the specified coordinates releative to the "settings" window? Is the item to be clicked always in the same place within the settings window?

Take a look at the ControlClick function. It gives much greater control over what gets clicked. Use the AutoIt Window Info tool to get the ControlID required by this function.

Phillip

Posted

Are the specified coordinates releative to the "settings" window?  Is the item to be clicked always in the same place within the settings window?

Take a look at the ControlClick function.  It gives much greater control over what gets clicked.  Use the AutoIt Window Info tool to get the ControlID required by this function.

<{POST_SNAPBACK}>

first i tried with controlclick & cotrolcommand, but as nothing is visible in autoit window spy , i am going with x.y cordinates.

no controls are getting displayed in autoit window.

Posted

first i tried with controlclick & cotrolcommand, but as nothing is visible in autoit window spy , i am going with x.y cordinates.

no controls are getting displayed in autoit window.

<{POST_SNAPBACK}>

The only other thing I can offer to try is to add Sleep(nnnn) after each statement that is not working properly. If that works, try reducing the duration.

Phillip

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...