Jump to content

Recommended Posts

Posted

hello,

I'm trying to make a splash screen for my customers to remind them to register. Now I have been looking in the help files and I would not find any functions for screen resolution. But i know someone out there does. Any help on this would be great!

Posted

These wont work?

@DesktopHeight
@DesktopWidth
Well they may, I'm sorry i dod not know how to use them. I'm trying to make a splash screen but some people have different size screens so I trying to make an if argument of some sort that is something like this.

IF screen size is 1280x768 or less the run RegisterSmall.exe

else run RegisterLARGE.exe

Thanks

Posted (edited)

Why not just make Register.exe universal?

Ya That's what I have now, I was just looking into making it custom, the benefits of such would be a full screen splash screen with REGISTER on it. Thanks

Edited by Cyote101
Posted (edited)

IF screen size is 1280x768 or less the run RegisterSmall.exe

else run RegisterLARGE.exe

That would be:

If @DesktopWidth<1280 AND @DesktopHeight<768 Then
       Run("RegisterSmall.exe")
Else
       Run("RegisterLARGE.exe")
EndIf
Edited by monoceres

Broken link? PM me and I'll send you the file!

Posted

That would be:

If @DesktopWidth<1280 AND @DesktopHeight<768 Then
       Run("RegisterSmall.exe")
Else
       Run("RegisterLARGE.exe")
EndIf

Thanks,

I compiled it and i get an error "Unable to run the external program". How can i fix this?

Thanks,

Posted

Thanks,

I compiled it and i get an error "Unable to run the external program". How can i fix this?

Thanks,

Did you put your RegisterSmall.exe and registerLarge in the same directory as this?
Posted (edited)

I got this to work, but i would like to know how i can get it to work by searching the directory of the Screen Test.exe instead, The Current Directory, the one Sceen Test.exe is running from.

If @DesktopWidth<1280 AND @DesktopHeight<768 Then
Run("1.exe", "C:\Documents and Settings\ADMIN\Desktop\EDITION\MENUS\Please REgister", @SW_MAXIMIZE)


Else
Run("2.exe", "C:\Documents and Settings\ADMIN\Desktop\EDITION\MENUS\Please REgister", @SW_MAXIMIZE)


EndIf

Thanks

Edited by Cyote101
Posted

nevermind I got it to work. Thanks Though.

If @DesktopWidth<1280 AND @DesktopHeight<768 Then
Run("1.exe", @WorkingDir, @SW_MAXIMIZE)


Else
Run("2.exe", @WorkingDir, @SW_MAXIMIZE)


EndIf

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
  • Recently Browsing   0 members

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