Jump to content

The process doesn't work


Recommended Posts

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

Link to comment
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

Link to comment
Share on other sites

  • Developers

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.

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
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

Link to comment
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

Link to comment
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

Link to comment
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

Link to comment
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
 Share

  • Recently Browsing   0 members

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