alezacco Posted March 28, 2008 Posted March 28, 2008 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 hereSend("!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")ThanksAlex
d4rk Posted March 28, 2008 Posted March 28, 2008 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
Developers Jos Posted March 28, 2008 Developers Posted March 28, 2008 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.
alezacco Posted March 28, 2008 Author Posted March 28, 2008 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
d4rk Posted March 28, 2008 Posted March 28, 2008 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
alezacco Posted March 28, 2008 Author Posted March 28, 2008 How? ControlSend("!f") or ControlSend("AgentWebRanking 2.6.3 Professional Edition","","","!f") Thanks Alex
d4rk Posted March 28, 2008 Posted March 28, 2008 can't you find HELP FILE ???http://www.autoitscript.com/autoit3/docs/f...ControlSend.htm [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
alezacco Posted March 28, 2008 Author Posted March 28, 2008 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 helpAlex
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