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 1500 korisnika na forumu :: 101 registrovanih, 11 sakrivenih i 1388 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: Alibaba1981, Apok, armor, Avladi, bankulen, bestguarder, black sabah, Bobrock1, Bojan85, bojanM84, Bosnjo, bpop, branko7, brkan1, bufanje, BWG, ccoogg123, Chainsaw, chitach, Cigi, cinoeye, Dannyboy, del boy, Denaya, Dioniss, djuradj, dmrdc, drale12, feanor, Folkstar, Fructo, galijot, GUARIN, Heisenberg99, Holy Saber, iceburn, ivan1973, ivica976, Jakonjveliki, jalos, Jezekijel, komsija1, krca73, Krusarac, Kubovac, ladro, Lazur_01, Lotus, Marko Marković, marko308, MarkoJ-Nis, medaTT, metallac777, Metanoja, mgolub, Michellefromrezistance, miki kv, MIKI63, milenko1980, Millennium, Milometer, MiloradKomadic, mir, mita92, monomah, MountAndBlade, Mravojed, Neuromancer, nick79, Ognjen D., Panter, Parker, PlayerOne, Povratak1912, Prašinar, predragc, proka89, raf87, rakivan, Rebel Frank, RJ, rodoljub, Rothmans, savaskytec, sekretar, sluga, SOVO515, Srky Boy, Srpska zauvjek, stefanmpurtic, StefanopuloZ, superwhy, SveNormalno, synergia, vaso1, vathra, vuk77, YugoSlav, Zimbabwe, Zorge, Žoržo