kapucu1971 Posted July 24, 2012 Share Posted July 24, 2012 projemiz açıldığında pcnin ekran çözünürlüğü 1366*768 olacak kapanırkende eski halini alacak böyle bir kodlama yapılabilirmi Quote Link to comment Share on other sites More sharing options...
Editor pairs Posted July 24, 2012 Editor Share Posted July 24, 2012 Yapılır. Quote Link to comment Share on other sites More sharing options...
kapucu1971 Posted July 24, 2012 Author Share Posted July 24, 2012 sanırım yardımcı olmayacaksın kodlamada Quote Link to comment Share on other sites More sharing options...
Editor pairs Posted July 25, 2012 Editor Share Posted July 25, 2012 AMS yüklü değil pc de o yüzden yardımcı olamayacagım.Ama kolaylıkla yapılabilir. Quote Link to comment Share on other sites More sharing options...
radyofon Posted July 25, 2012 Share Posted July 25, 2012 (edited) yapılabilir. Global Function bölümüne: [code]function ChangeDisplaySettings(width,height,Depth,Freq,Permanent) args = width..", "..height..", "..Depth..", "..Freq..", "..Permanent result = DLL.CallFunction("AutoPlay\\Docs\\DLLDisplaySettings.dll", "ChangeDisplaySettings", args, DLL_RETURN_TYPE_STRING, DLL_CALL_STDCALL); if result == "0" then local hWnd = Application.GetWndHandle(); local WndSize = Window.GetSize(hWnd); local ScreenRes = System.GetDisplayInfo(); local NewPos_X = (ScreenRes.Width - WndSize.Width)/2; local NewPos_Y = (ScreenRes.Height - WndSize.Height)/2; Window.SetPos(hWnd, NewPos_X, NewPos_Y); else if result == 1 then err = "Bilgisayarın çalışması için grafik modu için yeniden başlatılması gerekir." elseif result == "-4" then err = "Ekran sürücüsü belirtilen grafik modu başarısız oldu." elseif result == "-1" then err = "Grafik modu desteklenmiyor." elseif result == "-2" then err = "Grafik modu desteklenmiyor." elseif result == "-3" then err = "Kayıt defteri ayarları yazılamıyor." end Dialog.Message("Error", err, MB_OK, MB_ICONNONE, MB_DEFBUTTON1); end end[/code] On Preload bölümüne [code]ChangeDisplaySettings(800,600,16,70,0)[/code] Edited July 25, 2012 by radyofon Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.