Jump to content

Checking if in window mode?


lopolop
 Share

Recommended Posts

sorry about the long wait for reply... thanks i think that might work except how can i search the target path for -w like if it has that anywhere in it...

and thanks! about my theif heh... tooke me a while to make mainly cuz i had to cut it out(i didnt draw the arms and feet)

Link to comment
Share on other sites

You can use StringInStr() for that.

Something like this should do it:

Local $Shortcut = FileGetShortcut('C:\Game.lnk')
If @Error Then
    MsgBox(0x10, '', 'Could not access shortcut file. Correct filename?')
Else
    If StringInStr($Shortcut[2], '-w') Then
        MsgBox(0x40, '', 'Shortcut invokes windowed mode.')
    Else
        MsgBox(0x40, '', 'Shortcut invokes fullscreen mode.')
    EndIf
EndIf
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...