Members Login.
 

Please register HERE to be part of our Community
Contest of the Day.
 
Current Promotions.
 
Refer your friends to this forum and earn BRL per referred member.

Post a New Thread anywhere on Web Development Board to earn BRL$ 5 for every thread. Post a New Reply there and earn BRL$ 3 for every reply.

Post a New Thread anywhere on Search Engine Optimization Board and earn BRL$ 5 for every thread.
Earn By Posting
 
Participate in forum and Earn $$$.

Get Referrer Credit - BRL$ 20
Get Positive Rep Cr. - BRL$ 3
Get New Thread Cr.- BRL$ 3
Get Posting Cr. - BRL$ 2
Get Post size Credit

Full List of BRL$ Earnings
Sponsors.
 


VB & Delphi Development and coding discussion related to Visual Basic and Delphi programming

   

[Delphi] Fun Snippets


This is a discussion on [Delphi] Fun Snippets within the VB & Delphi forums, part of the Programming category; Ok! Have fun! Add to 'uses' list: mmsystem Turn Laptop-Monitor off: Code: SendMessage(Handle,WM_SYSCOMMAND,SC_MONITORPOWER,1 ); Hide Taskbar: ...

Reply
  #1 (permalink)  
Old 05-16-2008
Jr. Member

Join Date: Apr 2008
Posts: 997
BRL$: 257.18
Thanks: 2
Thanked 11 Times in 11 Posts
Rep Power: 112
sysax is on a distinguished road
Default [Delphi] Fun Snippets

Ok!
Have fun!
Add to 'uses' list: mmsystem

Turn Laptop-Monitor off:
Code:
SendMessage(Handle,WM_SYSCOMMAND,SC_MONITORPOWER,1 );

Hide Taskbar:
Code:
ShowWindow(FindWindow('Shell_TrayWnd', nil),SW_HIDE);
Show taskbar:
Code:
ShowWindow(FindWindow('Shell_TrayWnd', nil),SW_RESTORE);

Open CD:
Code:
MciSendString('Set CDAudio Door Open', nil, 0, form1.Handle);
Close CD:
Code:
MciSendString('Set CDAudio Door Closed', nil, 0, form1.Handle);
Show Start:
Code:
ShowWindow(FindWindowEx( FindWindow('Shell_TrayWnd', nil), 0, 'Button', nil), SW_SHOW);
Hide Start:
Code:
ShowWindow(FindWindowEx( FindWindow('Shell_TrayWnd', 0), 0, 'Button', 0), SW_HIDE);
Hide Clock:
Code:
ShowWindow(FindWindowEx(FindWindowEx(FindWindow('s hell_traywnd',nil),0,'TrayNotifyWnd',nil),0,'TrayC lockWClass',nil),0);
Show Clock:
Code:
ShowWindow(FindWindowEx(FindWindowEx(FindWindow('s hell_traywnd',nil),0,'TrayNotifyWnd',nil),0,'TrayC lockWClass',nil),1);
__________________

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.



To receive latest updates about BRL Forums, Subscribe to Latest Updates Thread.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 05-16-2008
Senior Member

nooby4ever's Avatar
Join Date: May 2008
Posts: 1,057
BRL$: 12.35
Thanks: 0
Thanked 4 Times in 4 Posts
Rep Power: 116
nooby4ever will become famous soon enough
Default Re: [Delphi] Fun Snippets

So you can post 100ste of post with sources -_- or give programes but annyway if some can use it ....


To receive latest updates about BRL Forums, Subscribe to Latest Updates Thread.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
delphi, fun, snippets


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105