Jump to content
Sign in to follow this  
Wb-FreeKill

How to change line

Recommended Posts

Wb-FreeKill

$var = InputBox("Information", "Witch resolution are you running?", "", "")

How do i change the line, so i can get different resolutions under the: Witch resolution are you running?

I allready tried the funktions in the help file, but i cant get it to work?

Plz write me an eksample...

This is how it should be:

Witch resolution are you running?

1024*768

1280*768

1280*1024

Edited by Wb-FreeKill

Share this post


Link to post
Share on other sites
Jos

$var = InputBox("Information", "Witch resolution are you running?", "", "")

How do i change the line, so i can get different resolutions under the: Witch resolution are you running?

I allready tried the funktions in the help file, but i cant get it to work?

Plz write me an eksample...

This is how it should be:

Witch resolution are you running?

1024*768

1280*768

1280*1024

<{POST_SNAPBACK}>

do you mean you want a combobox with these values in it ?

If so you need to have a look at the current unstable version with its GUI capabilities..

You can retrieve the window desktop resolution with @DesktopDepth,@DesktopHeight


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
Wb-FreeKill

No, all i want is to get the 1024*768 and so on, to be under the: "Witch resolution are you running?"

In the Input box, only as text. so you can se witch opetuneties you have...

Share this post


Link to post
Share on other sites
Jos

No, all i want is to get the 1024*768 and so on, to be under the: "Witch resolution are you running?"

In the Input box, only as text. so you can se witch opetuneties you have...

<{POST_SNAPBACK}>

like this?

$var = InputBox("Information", "Which resolution are you running?" & @lf & "1024*768" & @lf & "1280*768" & @lf & "1280*1024", "", "")
Edited by JdeB

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
nobby

I am not sure if this is what you want.

$var = InputBox("Information", "Witch resolution are you running?" & @CR & "1024*768" & @CR & "1280*768"& @CR & "1280*1024", "", "")

But if you want to display the resolution at which it is running, try this

$var = @desktopWidth
$var1 = @Desktopheight
msgbox(0,"Resolution", $var & " * " & $var1)

CheersNobby

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.