forever0donotknowme Posted March 29, 2012 Share Posted March 29, 2012 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?? Link to comment Share on other sites More sharing options...
kylomas Posted March 29, 2012 Share Posted March 29, 2012 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 Link to comment Share on other sites More sharing options...
forever0donotknowme Posted March 29, 2012 Author Share Posted March 29, 2012 (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 March 29, 2012 by forever0donotknowme Link to comment Share on other sites More sharing options...
kylomas Posted March 29, 2012 Share Posted March 29, 2012 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 Link to comment Share on other sites More sharing options...
forever0donotknowme Posted March 29, 2012 Author Share Posted March 29, 2012 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) Link to comment Share on other sites More sharing options...
kylomas Posted March 29, 2012 Share Posted March 29, 2012 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 Link to comment Share on other sites More sharing options...
forever0donotknowme Posted March 29, 2012 Author Share Posted March 29, 2012 that script do not work with me and i get next massege unknown function name Link to comment Share on other sites More sharing options...
kylomas Posted March 29, 2012 Share Posted March 29, 2012 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 Link to comment Share on other sites More sharing options...
forever0donotknowme Posted March 29, 2012 Author Share Posted March 29, 2012 #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 Link to comment Share on other sites More sharing options...
forever0donotknowme Posted March 29, 2012 Author Share Posted March 29, 2012 #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 Link to comment Share on other sites More sharing options...
kylomas Posted March 29, 2012 Share Posted March 29, 2012 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 Link to comment Share on other sites More sharing options...
kylomas Posted March 29, 2012 Share Posted March 29, 2012 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 Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted March 29, 2012 Moderators Share Posted March 29, 2012 forever0donotknowme,Do NOT PM other members asking for help - if I hear of you doing it again sanctions wil follow. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
forever0donotknowme Posted March 29, 2012 Author Share Posted March 29, 2012 forever0donotknowme,Do NOT PM other members asking for help - if I hear of you doing it again sanctions wil follow. M23okcan you help me Link to comment Share on other sites More sharing options...
ZacUSNYR Posted March 29, 2012 Share Posted March 29, 2012 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? Link to comment Share on other sites More sharing options...
forever0donotknowme Posted March 30, 2012 Author Share Posted March 30, 2012 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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now