Jump to content

RhysSkachillKelly

Members
  • Posts

    6
  • Joined

  • Last visited

Everything posted by RhysSkachillKelly

  1. Thanks for your help JLogan3o13 and guinness! I think having a go at a GUI might be my best option but I'll learn a bit more about the functions first. I may have more questions once I've tested your codes out
  2. 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! ;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)
  3. the login credentials isn't important, its not for any kind of bypassing security. Its just for logging into a daily checks web page for my team to perform their checks quickly and efficiently. The web page already has generic credentials so rather than entering the credentials in every tab that opens I'd like the credentials to be entered automatically to save the hassle. Does anyone know if there is a way to specify for the IE window to open in full screen? this would be the final piece to the puzzle
  4. Also - Colyn1337 I have tried out your script which works great. Only problem is it seems to open in smaller window every time. Is it possible to specify for IE to open in full screen?
  5. Thanks Thatusernameisalreadytaken and Colyn1337 for your help.. One question I do have is where do get ie.au3 to include? I've seen this used in a few example scripts but not sure where this is from. Thanks again!
  6. Hi all, I'm new to AutoIT and scripting.. I am attempting to create two scripts. Both will launch in a web browser, one will be firefox, the other internet explorer. Then several hyperinks will launch. I am also attempting to have each of them automatically login with generic credentials although I'm not sure on how to do this as of yet.. Any suggestions on that would be helpful! Below is what I have so far for the internet explorer script but I'm having issues with it. I have attached a screenshot of the errors reported in AutoIT. I can't spot where the syntax error is at all but as I said I'm a total beginner.. Can anyone advise? Run ("C:\Program Files\Internet Explorer\iexplore.exe") WinWait("Blank Page - Windows Internet Explorer","Favorites Command Ba") If Not WinActive("Blank Page - Windows Internet Explorer","Favorites Command Ba") Then WinActivate("Blank Page - Windows Internet Explorer","Favorites Command Ba") WinWaitActive("Blank Page - Windows Internet Explorer","Favorites Command Ba") #include _IENavigate($o_object, "http://google.com/")" [ $f_wait = 1]) _IELoadWait ($o_object) _IENavigate ($oIE, "http://google.co.uk/"[ $f_wait = 1]) _IELoadWait ($oIE) Thanks in advance!
×
×
  • Create New...