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 827 korisnika na forumu :: 25 registrovanih, 1 sakriven i 801 gosta   ::   [ Administrator ] [ Supermoderator ] [ Moderator ] :: Detaljnije

Najviše korisnika na forumu ikad bilo je 3466 - dana 01 Jun 2021 17:07

Korisnici koji su trenutno na forumu:
Korisnici trenutno na forumu: bojank, darkangel, DPera, DragoslavS, goxin, ILGromovnik, ivica976, KOV, Kubovac, ljubacv, mikrimaus, milenko crazy north, moldway, Ne doznajem se u oružje, Nemanja.M, RJ, royst33, sabros, saputnik plavetnila, sombrero, SR-3m, vasa.93, wizzardone, zlaya011, šumar bk2