Hey, i would like to make my bot sucessfully work, now i have done it with sleep option:
#include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #Include <FF.au3> Opt("WinTitleMatchMode", 2) sleep(15000) WinActivate("StrongVPN Client - 1.2.2+35c10f") Send("{ENTER}") sleep(50000) WinActivate("StrongVPN Client - 1.2.2+35c10f") ControlClick("StrongVPN Client - 1.2.2+35c10f", "", "[CLASS:WindowsForms10.BUTTON.app.0.33c0d9d]") sleep(3000) run("C:\Documents and Settings\Administrator\Desktop\SCRIPT.exe")
after it clicks enter, then it sleeps 50 seconds because afteter i run this script internet sometimes not working sucessfully, so after 50 seconds it activating StrongVPN and clicks on connect, but sometimes i am keep getting this error:
because of internet connection, i dont know how to make this part work sucessfully...This error appear after
ControlClick("StrongVPN Client - 1.2.2+35c10f", "", "[CLASS:WindowsForms10.BUTTON.app.0.33c0d9d]")
But not every time! And other thing is after it clicks connect sometimes its stucks on Connecting, to solve it it have just click disconnect and click connect again using same control click command..
So those two things which i dont know how to make untill my program will work propertly!