Greenket Posted January 16, 2018 Share Posted January 16, 2018 Hey Guys, I have this code: Now i want to say if desktop hight and widht is not 1364 x 768 that it will go to the part to check 1024 x 768. How can i do that? $deskhig = @DesktopHeight $deskwidt = @DesktopWidth If $deskhig = 768 and $deskwidt = 1364 Then MsgBox(0, "Supported", $deskwidt & "x" & $deskhig & " " & @UserName) Run ("C:\Users\Desktop\Micollab Status Toevoeger 1364 x 768.exe") Else MsgBox (0, "Not Supported", "Not supported") EndIf If $deskhig = 768 and $deskwidt = 1024 Then MsgBox(0, "Supported", $deskwidt & "x" & $deskhig & " " & @UserName) Run ("C:\Users\Desktop\Micollab Status Toevoeger 1024 x 768.exe") Else MsgBox (0, "Not Supported", "Not supported") EndIf If $deskhig = 1080 and $deskwidt = 1920 Then MsgBox(0, "Supported", $deskwidt & "x" & $deskhig & " " & @UserName) Run ("C:\Users\Desktop\Micollab Status Toevoeger 1920 x 1080.exe") Else MsgBox (0, "Not Supported", "Not supported") EndIf Exit Link to comment Share on other sites More sharing options...
Danp2 Posted January 16, 2018 Share Posted January 16, 2018 Look up "Select...Case...EndSelect" in the help file. Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
mikell Posted January 16, 2018 Share Posted January 16, 2018 $exe = "C:\Users\Desktop\Micollab Status Toevoeger " & @DesktopWidth & " x " & @DesktopHeight & ".exe" If FileExists($exe) Then Run ($exe) Else MsgBox (0, "Not Supported", "Not supported") EndIf Greenket 1 Link to comment Share on other sites More sharing options...
Greenket Posted January 17, 2018 Author Share Posted January 17, 2018 11 hours ago, mikell said: $exe = "C:\Users\Desktop\Micollab Status Toevoeger " & @DesktopWidth & " x " & @DesktopHeight & ".exe" If FileExists($exe) Then Run ($exe) Else MsgBox (0, "Not Supported", "Not supported") EndIf Thank you! 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