Full screen mode programmatically

Full screen mode programmatically

offline
  • Pridružio: 26 Feb 2004
  • Poruke: 55
  • Gde živiš: Banja Luka

Napisano: 19 Jun 2009 11:20

Zna li neko kako drugoj aplikaciji poslati poruku da bude u "Full screen mode"-u. Ja sam jos uvijek u DOS-u(Command Promptu). Znaci ne maximized window vec full screen.

Dopuna: 19 Jun 2009 12:01

Nasao sam


procedure PostKeyEx32(key: Word; const shift: TShiftState; specialkey: Boolean);
{************************************************************
* Procedure PostKeyEx32
*
* Parameters:
* key : virtual keycode of the key to send. For printable
* keys this is simply the ANSI code (Ord(character)).
* shift : state of the modifier keys. This is a set, so you
* can set several of these keys (shift, control, alt,
* mouse buttons) in tandem. The TShiftState type is
* declared in the Classes Unit.
* specialkey: normally this should be False. Set it to True to
* specify a key on the numeric keypad, for example.
* Description:
* Uses keybd_event to manufacture a series of key events matching
* the passed parameters. The events go to the control with focus.
* Note that for characters key is always the upper-case version of
* the character. Sending without any modifier keys will result in
* a lower-case character, sending it with [ssShift] will result
* in an upper-case character!
************************************************************}
type
TShiftKeyInfo = record
shift: Byte;
vkey: Byte;
end;
byteset = set of 0..7;
const
shiftkeys: array [1..3] of TShiftKeyInfo =
((shift: Ord(ssCtrl); vkey: VK_CONTROL),
(shift: Ord(ssShift); vkey: VK_SHIFT),
(shift: Ord(ssAlt); vkey: VK_MENU));
var
flag: DWORD;
bShift: ByteSet absolute shift;
i: Integer;
begin
for i := 1 to 3 do
begin
if shiftkeys[i].shift in bShift then
keybd_event(shiftkeys[i].vkey, MapVirtualKey(shiftkeys[i].vkey, 0), 0, 0);
end; { For }
if specialkey then
flag := KEYEVENTF_EXTENDEDKEY
else
flag := 0;
keybd_event(key, MapvirtualKey(key, 0), flag, 0);
flag := flag or KEYEVENTF_KEYUP;
keybd_event(key, MapvirtualKey(key, 0), flag, 0);
for i := 3 downto 1 do
begin
if shiftkeys[i].shift in bShift then
keybd_event(shiftkeys[i].vkey, MapVirtualKey(shiftkeys[i].vkey, 0),
KEYEVENTF_KEYUP, 0);
end; { For }
end; { PostKeyEx32 }



Registruj se da bi učestvovao u diskusiji. Registrovanim korisnicima se NE prikazuju reklame unutar poruka.
offline
  • savkic 
  • Novi MyCity građanin
  • Pridružio: 05 Jun 2007
  • Poruke: 29

> Zna li neko kako drugoj aplikaciji poslati poruku da bude u
> "Full screen mode"-u. Ja sam jos uvijek u
> DOS-u(Command Promptu). Znaci ne maximized window
> vec full screen.

Full screen režim podržavaju samo određeni programi, kako se u njega ulazi zavisi od programa. Znači za početak reci koji je program u pitanju i kako se u njemu ulazi u full screen.



Ko je trenutno na forumu
 

Ukupno su 3447 korisnika na forumu :: 59 registrovanih, 3 sakrivenih i 3385 gosta   ::   [ Administrator ] [ Supermoderator ] [ Moderator ] :: Detaljnije

Najviše korisnika na forumu ikad bilo je 20624 - dana 04 Apr 2026 04:18

Korisnici koji su trenutno na forumu:
Korisnici trenutno na forumu: A.R.Chafee.Jr., Ahilius, amaterSRB, ArmyBoss, awathorn, bato_banjaluka, bladesu, BORUTUS, BOXRR, brundo65, BSD, Bubili, CikaKURE, Cirkon, crazydkure, darkdruid72, Dimitrije Paunovic, dusan.l, Igor Antonic, Imperator_Aleksandr_lll, Ivan Campo, Jakonjveliki, Joint Chief, Jovan.D, Kobrim, Komder, Lieutenant, M74AB3, m94j, mainstream, Malik, MarkoW, MidnighT_AlieN, Milan A. Nikolic, Miler88, Milos ZA, mino bosanac, mladen.zovko, Mldo, morava_01, nixos, nuke92, opt1, PlayerOne, Polemarchoi, propan butan, razumihin, sap, shiro, Srki98, tecataki, theNedjeljko, tomo2, Topaz9, Username1000, vaso1, Weah88, Zastava, zlaya011