p666 Posted July 12, 2010 Posted July 12, 2010 Hey everyone , I start to write a simple script that aims to repeat the same action in one application! WinWaitActive("БИЗНЕС НАВИГАТОР") Send("{Tab}{Tab}{Tab}{Enter}") WinWaitActive("БИЗНЕС НАВИГАТОР") Send("{Tab}{Tab}{Tab}{Tab}{Tab}{Enter}") send("{down}") WinWaitActive("БИЗНЕС НАВИГАТОР") Send("{Tab}{Tab}{Enter}") WinWaitActive("БИЗНЕС НАВИГАТОР") Send("{Tab}{Tab}{Tab}{Tab}{Tab}{Enter}") send("{down}") WinWaitActive("БИЗНЕС НАВИГАТОР") Send("{Tab}{Tab}{Enter}") WinWaitActive("БИЗНЕС НАВИГАТОР") Send("{Tab}{Tab}{Tab}{Tab}{Tab}{Enter}") send("{down}") Is there a way to repeat such actions by any function , or I just need to copy the desired rows of recurrence in the script? WinWaitActive("БИЗНЕС НАВИГАТОР") Send("{Tab}{Tab}{Enter}") WinWaitActive("БИЗНЕС НАВИГАТОР") Send("{Tab}{Tab}{Tab}{Tab}{Tab}{Enter}") send("{down}") Regards
Marc Posted July 12, 2010 Posted July 12, 2010 Hi, you can use several kinds of loops. For example, run the same code 100 times For $i=1 to 100 ; place your code here Next or an infinite loop While 1 ; place your code here Wend Best regards, Marc Any of my own codes posted on the forum are free for use by others without any restriction of any kind. (WTFPL)
jfcby Posted July 12, 2010 Posted July 12, 2010 (edited) This may work... Global $Name1 = "БИЗНЕС НАВИГАТОР" For $i = 1 to 5 _Run Next Func _Run() WinWaitActive($Name1) Send("{Tab}{Tab}{Enter}") WinWaitActive($Name1) Send("{Tab}{Tab}{Tab}{Tab}{Tab}{Enter}") send("{down}") EndFunc ;==>_Run jfcby Edited July 12, 2010 by jfcby Determined -- Devoted -- Delivered Make your mind up -- to seriously apply yourself -- accomplishing the desired results. **** A soft answer turneth away wrath: but grievous words stir up anger. Proverbs 15:1 KJB ****
p666 Posted July 12, 2010 Author Posted July 12, 2010 This may work... Global $Name1 = "БИЗНЕС НАВИГАТОР" For $i = 1 to 5 _Run Next Func _Run() WinWaitActive($Name1) Send("{Tab}{Tab}{Enter}") WinWaitActive($Name1) Send("{Tab}{Tab}{Tab}{Tab}{Tab}{Enter}") send("{down}") EndFunc ;==>_Run jfcby
Makaule Posted July 12, 2010 Posted July 12, 2010 If "Buisness Navigator" is some kind of software, i would advice you to check ControlSend and similar functions.
p666 Posted July 12, 2010 Author Posted July 12, 2010 If "Buisness Navigator" is some kind of software, i would advice you to check ControlSend and similar functions. Yes Makaule Buisness Navigator is Bulgarian financial software! I was read in Help about "ControlSend" function , but I can not understand your idea! Either way things work successfully with the proposal and gave me jfcby !! Thanks a lot!
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