Hyflex Posted June 6, 2009 Share Posted June 6, 2009 (edited) Below I want to basically if WindowRenaming is set to 0 and pass button is set to 1 then I want a way to be able to count the windows as they apear so Window 1 doesn't change the name but has a way to identify for later stage. I also want to find a way so I can use: $WindowQuantity for both sections, so if they choose 3 it will ignore 4 and five on renaming and pass entering. I am also wanting to make another addon with: $EnterC = 1 if its like that then on the function buttons for it NOT to exit but carry on to next function (going to add later) expandcollapse popupHotKeySet("{NUMPADDOT}", "PasswordAutoFill") $WindowRenaming = 1 $PassButtonActive = 1 $PW = "test" $SleepTime = 125 $WindowQuantity = 5 $1stLoadingWindow = "Onei" $2ndLoadingWindow = "Twoi" $3rdLoadingWindow = "Threei" $4thLoadingWindow = "Fouri" $5thLoadingWindow = "Fivei" $DefaultWindowName = "PCS" If $WindowRenaming = 1 Then WinWait($DefaultWindowName) WinSetTitle($DefaultWindowName, "", $1stLoadingWindow) Sleep(25) WinWait($DefaultWindowName) WinSetTitle($DefaultWindowName, "", $2ndLoadingWindow) Sleep(25) WinWait($DefaultWindowName) WinSetTitle($DefaultWindowName, "", $3rdLoadingWindow) Sleep(25) WinWait($DefaultWindowName) WinSetTitle($DefaultWindowName, "", $4thLoadingWindow) Sleep(25) WinWait($DefaultWindowName) WinSetTitle($DefaultWindowName, "", $5thLoadingWindow) Sleep(25) ElseIf $WindowRenaming = 0 Then EndIf While 1 Sleep(100) WEnd Func PasswordAutoFill() If $PassButtonActive = 1 Then WinWait($1stLoadingWindow) WinActivate($1stLoadingWindow) Sleep(20) WinWaitActive($1stLoadingWindow) Sleep($SleepTime) Send($PW) Sleep($SleepTime) Send("{Enter}") WinWait($2ndLoadingWindow) WinActivate($2ndLoadingWindow) Sleep(20) WinWaitActive($2ndLoadingWindow) Sleep($SleepTime) Send($PW) Sleep($SleepTime) Send("{Enter}") WinWait($3rdLoadingWindow) WinActivate($3rdLoadingWindow) Sleep(20) WinWaitActive($3rdLoadingWindow) Sleep($SleepTime) Send($PW) Sleep($SleepTime) Send("{Enter}") WinWait($4thLoadingWindow) WinActivate($4thLoadingWindow) Sleep(20) WinWaitActive($4thLoadingWindow) Sleep($SleepTime) Send($PW) Sleep($SleepTime) Send("{Enter}") WinWait($5thLoadingWindow) WinActivate($5thLoadingWindow) Sleep(20) WinWaitActive($5thLoadingWindow) Sleep($SleepTime) Send($PW) Sleep($SleepTime) Send("{Enter}") Exit ElseIf $PassButtonActive = 0 Then Exit EndIf EndFunc Edited June 6, 2009 by XxXGoD Link to comment Share on other sites More sharing options...
JackDinn Posted June 6, 2009 Share Posted June 6, 2009 just wondering why you have made a new thread when it looks like your just continuing with the same question as here :-http://www.autoitscript.com/forum/index.ph...c=96137&hl=i was under the impression we had got there ? Thx all,Jack Dinn. JD's Auto Internet Speed Tester JD's Clip Catch (With Screen Shot Helper) Projects :- AutoIt - My projects My software never has bugs. It just develops random features. :-D Link to comment Share on other sites More sharing options...
Hyflex Posted June 6, 2009 Author Share Posted June 6, 2009 just wondering why you have made a new thread when it looks like your just continuing with the same question as here :-http://www.autoitscript.com/forum/index.ph...c=96137&hl=i was under the impression we had got there ?Because this is not same question as that other post and you guys somewhat confused me in that thread lol Link to comment Share on other sites More sharing options...
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