Jump to content

Jump to a part in a script


 Share

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...