Jump to content
Sign in to follow this  
lopolop

Checking if in window mode?

Recommended Posts

lopolop

for this game you have to end the properties < Target in -w how can i check this quick and easy?


Share this post


Link to post
Share on other sites
LxP

Would FileGetShortcut() do the job?

P.S. I love your 'AutoIt thief'! B)

Share this post


Link to post
Share on other sites
lopolop

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)


Share this post


Link to post
Share on other sites
LxP

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

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.