Sign in to follow this  
Followers 0
alezacco

The process doesn't work

8 posts in this topic

Hi!,

Why sometimes the process works and sometimes not?

What's the problem?

It's usually?

This is the script...sometimes it works ok until the end and sometimes it stops.

Run("test.bat")

Sleep(120000)

ControlClick ( "AgentWebRanking 2.6.3 Professional Edition", "prova - Ranking Report", "ThunderRT5CommandButton3" )

Sleep(120000)

ControlClick ( "AgentWebRanking 2.6.3 Professional Edition", "prova - Ranking Report", "ThunderRT5CommandButton4" )

Sleep(50000) Sometimes it stops here

Send("!f")

Send("s")

WinWaitActive("Salva con nome")

ControlSend("Salva con nome","","Edit1","prova")

ControlClick ( "Salva con nome", "", "Button2" )

Send("!f")

Send("x")

Send("s")

WinWaitClose("AgentWebRanking 2.6.3 Professional Edition")

Thanks

Alex

Share this post


Link to post
Share on other sites



i haven't suft this yet,maybe sleep time too long make you feel it is "stopped",


[quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys

Share this post


Link to post
Share on other sites

Doubt it will get stuck on the sleep(). Probably its this that makes it get stuck:

change: WinWaitActive("Salva con nome")

to :WinWait("Salva con nome")

To know for sure where the script is "hanging" you could add Opt("TrayIconDebug", 1) at the top of your script.


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

I've modified WinWaitActive("Salva con nome") in WinWait("Salva con nome") but the problem is before.

After ControlClick ( "AgentWebRanking 2.6.3 Professional Edition", "prova - Ranking Report", "ThunderRT5CommandButton4" )

It doesn't run

Send("!f")

Send("s")

Thanks

Alex

Share this post


Link to post
Share on other sites

try to use ControlSend() for "!f" & "s"


[quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys

Share this post


Link to post
Share on other sites

How?

ControlSend("!f")

or

ControlSend("AgentWebRanking 2.6.3 Professional Edition","","","!f")

Thanks

Alex

Share this post


Link to post
Share on other sites

[quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys

Share this post


Link to post
Share on other sites

Sorry,

I forgot to tell you a thing...

I used the Window info to get the controlID (ControlSend ( "title", "text", controlID, "string" [, flag] ))...but the controlID of the main window of the program is empty.

Sorry but I'm not a specialist of this language.

Thanks for the help

Alex

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0