Sign in to follow this  
Followers 0
forever0donotknowme

need help

16 posts in this topic

for example i had next app

#include<ButtonConstants.au3>
#include<GUIConstantsEx.au3>
  #include<WindowsConstants.au3>

GUICreate ("",670,690,-1,-1)
GUISetState(@SW_SHOW)
While 1
  $nMsg=GUIGetMsg()
  Switch $nMsg
  Case $GUI_EVENT_CLOSE
  Exit
      EndSwitch
  WEnd

suppose i run that app in win xp ,

unfortunately screen resulotion for desktop is very big --i.e icons is big and not small therefore when i run my app derectily my app will take full screen and all buttons are hidden because it will be up over screen or down screen

what is solution for my problem??

Share this post


Link to post
Share on other sites



forever0donotknowme,

Define your problem....

kylomas


Forum Rules         Procedure for posting code

"I like pigs.  Dogs look up to us.  Cats look down on us.  Pigs treat us as equals."

- Sir Winston Churchill

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

ok

do you had win 7, please if you can make your screen resulotion as 800 * 600

after that run my script

my script will show over screen desktop

Edited by forever0donotknowme

Share this post


Link to post
Share on other sites

forever0donotknowme,

You probably do NOT want to change screen resolution. If your problem is that your gui is too large then this may get you going...

;
;
;
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
Local $gui010 = GUICreate('My Little Gui',@desktopheight/2,@desktopwidth/2)
    GUISetState()
Local $msg
While GUIGetMsg() <> $gui_event_close
wend

kylomas


Forum Rules         Procedure for posting code

"I like pigs.  Dogs look up to us.  Cats look down on us.  Pigs treat us as equals."

- Sir Winston Churchill

Share this post


Link to post
Share on other sites

forever0donotknowme,

You probably do NOT want to change screen resolution. If your problem is that your gui is too large then this may get you going...

;
;
;
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
Local $gui010 = GUICreate('My Little Gui',@desktopheight/2,@desktopwidth/2)
    GUISetState()
Local $msg
While GUIGetMsg() <> $gui_event_close
wend

kylomas

yah i know your script that is half of screen

but i have many bottuns and orgize in my gui that is

GUICreate ("",670,690,-1,-1)

Share this post


Link to post
Share on other sites

forever0donotknowme,

In that case this thread may help

Good Luck,

kylomas


Forum Rules         Procedure for posting code

"I like pigs.  Dogs look up to us.  Cats look down on us.  Pigs treat us as equals."

- Sir Winston Churchill

Share this post


Link to post
Share on other sites

that script do not work with me and i get next massege

unknown function name

Share this post


Link to post
Share on other sites

forever0donotknowme,

Read the ENTIRE post, follow the link to Kafu's cite and you will have everything that you need.

You may have to download some of the code that the experts have developed.

kylomas


Forum Rules         Procedure for posting code

"I like pigs.  Dogs look up to us.  Cats look down on us.  Pigs treat us as equals."

- Sir Winston Churchill

Share this post


Link to post
Share on other sites

#include<ButtonConstants.au3>
#include<GUIConstantsEx.au3>
  #include<WindowsConstants.au3>
GUICreate ("",670,690,-1,-1)
GUISetState(@SW_SHOW)
$Button1=GUICtrlCreateButton("hi",50,10,230,25)
$Button2=GUICtrlCreateButton("welcome",350,640,230,25)
$a=@OSVersion
If $a= "WIN_XP" Then
$Width = 1024
$Height = 768
$BitsPerPixel = 32
$RefreshRate = 85
     ; Define and set resolution
     _ChangeScreenRes(1024,768,32,85)

ElseIf $a= "WIN_7" Then
$Width = 1024
$Height = 768
$BitsPerPixel = 32
$RefreshRate = 85
     ; Define and set resolution
     _ChangeScreenRes(1366,768,32,85)
While 1
  $nMsg=GUIGetMsg()
  Switch $nMsg
  Case $GUI_EVENT_CLOSE
  Exit
  Case $Button1
   MsgBox(0,"",'up')
  Case $Button2
   MsgBox(0,'','down')

      EndSwitch
  WEnd
  EndIf

Share this post


Link to post
Share on other sites

#include<ButtonConstants.au3>
#include<GUIConstantsEx.au3>
  #include<WindowsConstants.au3>
GUICreate ("",670,690,-1,-1)
GUISetState(@SW_SHOW)
$Button1=GUICtrlCreateButton("hi",50,10,230,25)
$Button2=GUICtrlCreateButton("welcome",350,640,230,25)
$a=@OSVersion
If $a= "WIN_XP" Then
$Width = 1024
$Height = 768
$BitsPerPixel = 32
$RefreshRate = 85
     ; Define and set resolution
     _ChangeScreenRes(1024,768,32,85)

ElseIf $a= "WIN_7" Then
$Width = 1024
$Height = 768
$BitsPerPixel = 32
$RefreshRate = 85
     ; Define and set resolution
     _ChangeScreenRes(1366,768,32,85)
While 1
  $nMsg=GUIGetMsg()
  Switch $nMsg
  Case $GUI_EVENT_CLOSE
  Exit
  Case $Button1
   MsgBox(0,"",'up')
  Case $Button2
   MsgBox(0,'','down')

      EndSwitch
  WEnd
  EndIf

what is wrong in my script

Share this post


Link to post
Share on other sites

forever0donotknowme,

There are several things wrong:

1 - you do not specify the expected result

2 - you do not show any error data

3 - you spent a whole 21 minutes trying to solve this

Good Luck,

kylomas


Forum Rules         Procedure for posting code

"I like pigs.  Dogs look up to us.  Cats look down on us.  Pigs treat us as equals."

- Sir Winston Churchill

Share this post


Link to post
Share on other sites

forever0donotknowme,

I will look at the problem when I have time (or perhaps someone with more experience will chime in). Either way, you need to provide more detail about what is failing. So far, I cannot tell that you have run any code at all. I understand that you are new. You will learn nothing by being spoon fed code.

I do NOT have a big problem with being PM'd, but, BE WARNED, some people do!!

Later,

kylomas


Forum Rules         Procedure for posting code

"I like pigs.  Dogs look up to us.  Cats look down on us.  Pigs treat us as equals."

- Sir Winston Churchill

Share this post


Link to post
Share on other sites

forever0donotknowme,

Do NOT PM other members asking for help - if I hear of you doing it again sanctions wil follow. :oops:

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

forever0donotknowme,

Do NOT PM other members asking for help - if I hear of you doing it again sanctions wil follow. :oops:

M23

ok

can you help me

Share this post


Link to post
Share on other sites

I don't think you're getting much help because you're not providing what you'd like for a solution.

I gathered your GUI is too large, you were given an option to draw the GUI using the screens resolution, that wasn't good enough for you.

What are you looking to do? If you don't want to adjust the size of your GUI or the resolution, how can we help you?

Share this post


Link to post
Share on other sites

I don't think you're getting much help because you're not providing what you'd like for a solution.

I gathered your GUI is too large, you were given an option to draw the GUI using the screens resolution, that wasn't good enough for you.

What are you looking to do? If you don't want to adjust the size of your GUI or the resolution, how can we help you?

suppose that my screen resulotion is 600*800 and my script is

#include<ButtonConstants.au3>
#include<GUIConstantsEx.au3>
  #include<WindowsConstants.au3>
GUICreate ("",670,690,-1,-1)
GUISetState(@SW_SHOW)
$Button1=GUICtrlCreateButton("hi",50,10,230,25)
$Button2=GUICtrlCreateButton("welcome",350,640,230,25)
$a=@OSVersion
If $a= "WIN_XP" Then
$Width = 1024
$Height = 768
$BitsPerPixel = 32
$RefreshRate = 85
     ; Define and set resolution
     _ChangeScreenRes(1024,768,32,85)

ElseIf $a= "WIN_7" Then
$Width = 1024
$Height = 768
$BitsPerPixel = 32
$RefreshRate = 85
     ; Define and set resolution
     _ChangeScreenRes(1366,768,32,85)
While 1
  $nMsg=GUIGetMsg()
  Switch $nMsg
  Case $GUI_EVENT_CLOSE
  Exit
  Case $Button1
   MsgBox(0,"",'up')
  Case $Button2
   MsgBox(0,'','down')

      EndSwitch
  WEnd
  EndIf

really my script will change screen to 1366 * 768

but my script does not work

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