Hi all,
First of all- im a total beginner at this and have been using many tutorials to weave my way through learning this so be kind![:)]()
I've been working on a script to streamline my teams daily checks which launch in web browsers. My idea is to give my team the option to choose which browser the checks launch in then it will load each of the checks in that specific browser. Because chrome in particular doesn't give me any independent information on specific areas in the browser my script relies on mouse click functions so I added a little checker for ensuring the screen resolution the script launches in is correct.
My problem is if the resolution is complete I would like the script to move on to the next msgbox with the choice of browser options but I'm stuck on how to direct the script on to this line... Any ideas??
Cheers!
First of all- im a total beginner at this and have been using many tutorials to weave my way through learning this so be kind
![:)](http://aut1.autoit-cdn.com/forum/public/style_emoticons/default/smile.png)
I've been working on a script to streamline my teams daily checks which launch in web browsers. My idea is to give my team the option to choose which browser the checks launch in then it will load each of the checks in that specific browser. Because chrome in particular doesn't give me any independent information on specific areas in the browser my script relies on mouse click functions so I added a little checker for ensuring the screen resolution the script launches in is correct.
My problem is if the resolution is complete I would like the script to move on to the next msgbox with the choice of browser options but I'm stuck on how to direct the script on to this line... Any ideas??
![:geek:](http://aut1.autoit-cdn.com/forum/public/style_emoticons/default/geek.gif)
[ autoit ]
;Firstly launches message box requesting if you actually want to launch the daily checks. #include $var = MsgBox(4, "Daily Checks Launch", "Do you want to launch Daily Checks?") WinWait("", "", 120) ;If No will exit If $var = 7 Then Exit ;Check whether screen resolution is correct for browser to launch $var_5 = @DesktopHeight $var_6 = @DesktopWidth $var_7 = @DesktopDepth $var_8 = @DesktopRefresh ;THIS IS THE LINE I'M STUCK ON! If $var_5 = 768 And $var_6 = 1366 And $var_7 = 32 And $var_8 = 60 Then ElseIf $var_5 = Not 768 Or $var_6 = Not 1366 Or $var_7 = 32 Or $var_8 = Not 60 Then $var_9 = MsgBox(16, "Display resolution parser", "You're screen resolution isn't correct for this script. This must be 1366 x 768 60hz Please modify and restart script") If $var_9 = 1 Then Exit EndIf ;Will ask which browser If $var = 6 Then _MsgBox_SetButtonText(6, "Firefox", "IExplorer", "Chrome") $var_1 = _MsgBox(6, "Which Browser?", "Please select your preferred browser?") EndIf If $var_1 = 2 Then Run("C:\Program Files\Mozilla Firefox\firefox.exe") WinWaitActive("[CLASS:MozillaWindowClass]") WinWait("", "", 60)