Sign in to follow this  
Followers 0
lopolop

Checking if in window mode?

4 posts in this topic

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



Would FileGetShortcut() do the job?

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

Share this post


Link to post
Share on other sites

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

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  
Followers 0