Jump to content

Açılışta Pc Ekran Çözünürlüğü Değişebilirmi


kapucu1971
 Share

Recommended Posts

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 by radyofon
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...