Jump to content

Dialog.mesasage' De Evet Ve Hayır Seçeneği


byhabit
 Share

Recommended Posts

nSor = Dialog.Message("Notice", "Your message here.", MB_YESNO, MB_ICONINFORMATION, MB_DEFBUTTON1);
 

 

if nSor == IDYES then

--Evete basılınca çalışacak kodlar

else

--Hayır basılınca çalışacak kodlar

end

 

 

Kodu düzelttim bu şekilde kullanabilirsin

Edited by nightmare3519
Link to comment
Share on other sites

Hata aldım kodlara bakabilirmisiniz Sorun nerdedir?

[spoiler]os = System.GetOSName();
if os == "Windows XP" then
File.Run(_SourceFolder.."\\XP.exe", "", "", SW_SHOWNORMAL, true);
nSor = Dialog.Message("Windows Ayar", "Yükeme Tamamlandı Sistem Yeniden Başatılsınmı?.", MB_YESNO, MB_ICONINFORMATION, MB_DEFBUTTON1);
if nSor == IDYES then
DLL.CallFunction("PC.dll", "SetPCPowerState", 4, DLL_RETURN_TYPE_INTEGER, DLL_CALL_STDCALL);
else
Application.Exit(0);
end
elseif os == "Windows 7" then
if not System.Is64BitOS() then
Registry.SetValue(HKEY_LOCAL_MACHINE, "Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\System", "EnableLUA", "00000000", REG_DWORD);
Dialog.TimedMessage("Lütfen Bekleyin...", "Windows 7 UAC Denetimi Kapatılırken Lütfen Bekleyin.", 2000, MB_ICONINFORMATION);
result = Dialog.Message("Başarılı!", "UAC Denetimi Başarıyla Devre Dışı Bırakıldı.", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
File.Run(_SourceFolder.."\\x86.exe", "", "", SW_SHOWNORMAL, true);
nSor = Dialog.Message("Windows Ayar", "Yükeme Tamamlandı Sistem Yeniden Başatılsınmı?.", MB_YESNO, MB_ICONINFORMATION, MB_DEFBUTTON1);
if nSor == IDYES then
DLL.CallFunction("PC.dll", "SetPCPowerState", 4, DLL_RETURN_TYPE_INTEGER, DLL_CALL_STDCALL);
else
Application.Exit(0);
end
Registry.SetValue(HKEY_LOCAL_MACHINE, "Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\System", "EnableLUA", "00000000", REG_DWORD);
Dialog.TimedMessage("Lütfen Bekleyin...", "Windows 7 UAC Denetimi Kapatılırken Lütfen Bekleyin.", 2000, MB_ICONINFORMATION);
result = Dialog.Message("Başarılı!", "UAC Denetimi Başarıyla Devre Dışı Bırakıldı.", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
File.Run(_SourceFolder.."\\x64.exe", "", "", SW_SHOWNORMAL, true);
nSor = Dialog.Message("Windows Ayar", "Yükeme Tamamlandı Sistem Yeniden Başatılsınmı?.", MB_YESNO, MB_ICONINFORMATION, MB_DEFBUTTON1);
if nSor == IDYES then
DLL.CallFunction("PC.dll", "SetPCPowerState", 4, DLL_RETURN_TYPE_INTEGER, DLL_CALL_STDCALL);
else
Application.Exit(0);
end
end[/spoiler]

Link to comment
Share on other sites

os = System.GetOSName();
if os == "Windows XP" then
	File.Run(_SourceFolder.."\\XP.exe", "", "", SW_SHOWNORMAL, true);
	nSor = Dialog.Message("Windows Ayar", "Yükeme Tamamlandı Sistem Yeniden Başatılsınmı?.", MB_YESNO, MB_ICONINFORMATION, MB_DEFBUTTON1);
		if nSor == IDYES then
			DLL.CallFunction("PC.dll", "SetPCPowerState", 4, DLL_RETURN_TYPE_INTEGER, DLL_CALL_STDCALL);
		else
		Application.Exit(0);
	end
elseif os == "Windows 7" then
	if not System.Is64BitOS() then

		Dialog.TimedMessage("Lütfen Bekleyin...", "Windows 7 UAC Denetimi Kapatılırken Lütfen Bekleyin.", 2000, MB_ICONINFORMATION);
		result = Dialog.Message("Başarılı!", "UAC Denetimi Başarıyla Devre Dışı Bırakıldı.", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
		File.Run(_SourceFolder.."\\x86.exe", "", "", SW_SHOWNORMAL, true);
		nSor = Dialog.Message("Windows Ayar", "Yükeme Tamamlandı Sistem Yeniden Başatılsınmı?.", MB_YESNO, MB_ICONINFORMATION, MB_DEFBUTTON1);
			if nSor == IDYES then
				DLL.CallFunction("PC.dll", "SetPCPowerState", 4, DLL_RETURN_TYPE_INTEGER, DLL_CALL_STDCALL);
			else
			Application.Exit(0);
		end
		else
		Registry.SetValue(HKEY_LOCAL_MACHINE, "Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\System", "EnableLUA", "00000000", REG_DWORD);
		Dialog.TimedMessage("Lütfen Bekleyin...", "Windows 7 UAC Denetimi Kapatılırken Lütfen Bekleyin.", 2000, MB_ICONINFORMATION);
		result = Dialog.Message("Başarılı!", "UAC Denetimi Başarıyla Devre Dışı Bırakıldı.", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
		File.Run(_SourceFolder.."\\x64.exe", "", "", SW_SHOWNORMAL, true);
		nSor = Dialog.Message("Windows Ayar", "Yükeme Tamamlandı Sistem Yeniden Başatılsınmı?.", MB_YESNO, MB_ICONINFORMATION, MB_DEFBUTTON1);
					if nSor == IDYES then
				DLL.CallFunction("PC.dll", "SetPCPowerState", 4, DLL_RETURN_TYPE_INTEGER, DLL_CALL_STDCALL);
			else
		Application.Exit(0);
		end
	end
end

Böyle denermisiniz? 

 

if not System.Get64BitOS then

 

---windows 7 32 bit

 

else--burayı unutmuşsunuz. 

--windows 7 64 bit

end--ve burayı

Edited by nightmare3519
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...