|
論壇說明 |
歡迎您來到『史萊姆論壇』 ^___^ 您目前正以訪客的身份瀏覽本論壇,訪客所擁有的權限將受到限制,您可以瀏覽本論壇大部份的版區與文章,但您將無法參與任何討論或是使用私人訊息與其他會員交流。若您希望擁有完整的使用權限,請註冊成為我們的一份子,註冊的程序十分簡單、快速,而且最重要的是--註冊是完全免費的! 請點擊這裡:『註冊成為我們的一份子!』 |
|
主題工具 | 顯示模式 |
2006-01-17, 04:32 AM | #1 |
長老會員
|
可以用程式關螢幕嗎?
就是可以用程式來關螢幕,而不用按螢幕上的 POWER 按鈕才能關掉,
可以嗎? 之前有看過一個叫 MNTKEY,不過,網路的連結都不能下載了…>< 謝謝各位了… |
__________________ 貴在中和,不爭之爭 2011-中華民國建國百年跨年慶典(精研完整版) 臺灣 我們的母親 臺灣 我們居住的家園 臺灣 我們心目中永遠的第一 相聚在這塊土地上,珍惜這裡的一切 |
|
送花文章: 13209,
|
2006-01-17, 10:43 AM | #3 (permalink) |
長老會員
|
微軟內建的電源管理就可以囉.....他只能關閉訊號源
不能關掉電源 |
__________________ 金錢的數量,決定馬子的漂亮 硬碟的容量,決定男人的力量 製作Mail Logo按這裡 |
|
送花文章: 257,
|
2006-01-17, 04:58 PM | #5 (permalink) |
榮譽會員
|
立即關閉顯示器的小工具
-------------------------------------------------------------------------------- 也許你使用筆記型電腦就想要這麼一個功能,那怎麼讓顯示器再亮起來? 按兩次POWER嗎?? 動滑鼠或鍵盤就行。 API, 用程式編彙編寫了一個。 在2003/XP 英文版及CRT 和LCD下測試通過。 下面是readme.txt Close Monitor 立即將你的顯示器轉換到節能狀態 你可以雙按執行,也可以在桌面上 建立一個建立捷逕,然後設定一個 熱鍵,用熱鍵來執行。 壓縮包內文件: 三個文件,使用任何一個都可以。 CloseMonitor_m.exe 沒有圖標,沒有版權資訊, 難看,可是文件體積最小。 CloseMonitor.exe 有圖標,有版權資訊 圖標只有32×32,體積適中。 CloseMonitor_b.exe 有圖標,有版權資訊 包含任何顯示方式下的圖標 程序只有1.5K, 圖標30K。 程序其實非常簡單,下面是主要程式碼。 程序代碼: start: invoke Sleep, 0FFh invoke SendMessage, HWND_BROADCAST, WM_SYSCOMMAND, SC_MONITORPOWER, 2 invoke ExitProcess,0 end start 如你自己寫程式或程序,其實可以用 Runndll32.exe 來實現同樣的目地,寫個bat 3行指令就可以了,就是要把這些API的常數值都查出來, Rundll32.exe User32.dll,SendMessage 65535 274 61808 2 http://rapidshare.de/files/11208917/...nitor.rar.html |
__________________ |
|
送花文章: 3,
|
2006-01-17, 05:09 PM | #6 (permalink) |
榮譽會員
|
nircmd 命令式的程式
http://www.nirsoft.net/utils/nircmd.zip 說明 : Description NirCmd is a small command-line utility that allows you to do some useful tasks without displaying any user interface. By running NirCmd with simple command-line option, you can write and delete values and keys in the Registry, write values into INI file, dial to your internet account or connect to a VPN network, restart windows or shut down the computer, create shortcut to a file, change the created/modified date of a file, change your display settings, turn off your monitor, open the door of your CD-ROM drive, and more... 擁有全部的功能.... Examples of what you can do with NirCmd Open the door of J: CD-ROM drive nircmd.exe cdrom open j: Close the door of Y: CD-ROM drive nircmd.exe cdrom close y: Increase the system volume by 2000 units (out of 65535) nircmd.exe changesysvolume 2000 Decrease the system volume by 5000 units (out of 65535) nircmd.exe changesysvolume -5000 Set the volume to the highest value nircmd.exe setsysvolume 65535 Mute the system volume nircmd.exe mutesysvolume 1 Unmute the system volume nircmd.exe mutesysvolume 0 Switch the system volume between the mute and normal state. nircmd.exe mutesysvolume 2 Create a shortcut on your desktop that switch the system volume between the mute and normal state. nircmd.exe cmdshortcut "~$folder.desktop$" "Switch Volume" mutesysvolume 2 Turn off the monitor nircmd.exe monitor off Start the default screen saver nircmd.exe screensaver Put your computer in 'standby' mode nircmd.exe standby log off the current user nircmd.exe exitwin logoff Ask if you want to reboot, and if you answer 'Yes', reboot the computer. nircmd.exe qboxcom "Do you want to reboot ?" "question" exitwin reboot Turn off your computer nircmd.exe exitwin poweroff Turn off all computers specified in computers.txt ! multiremote copy "c:\temp\computers.txt" exitwin poweroff force Dial to "My Internet" connection nircmd.exe rasdial "My Internet" Disconnect the "My Internet" connection nircmd.exe rashangup "My Internet" Make your Internet Explorer windows 75% transparent ! (192 / 256) nircmd.exe win trans ititle "internet explorer" 192 Minimize all your Internet Explorer windows nircmd.exe win min class "IEFrame" Close all your Internet Explorer windows nircmd.exe win close class "IEFrame" Close all your Explorer windows (My Computer, folders, and so on) nircmd.exe win close class "CabinetWClass" Hide all your Internet Explorer windows nircmd.exe win hide class "IEFrame" Show all your Internet Explorer windows (after you made them hidden with previous example) nircmd.exe win show class "IEFrame" Center all top-level windows nircmd.exe win center alltop Remove the title bar of My Computer window. nircmd.exe win -style title "my computer" 0x00C00000 Return the title bar of My Computer window that we removed in the previous example. nircmd.exe win +style title "my computer" 0x00C00000 Set the My Computer window to right-to-left order (For hebrew and arabic languages) nircmd win +exstyle title "my computer" 0x00400000 Set all child windows of My Computer window to right-to-left order (For hebrew and arabic languages) nircmd win child title "my computer" +exstyle all 0x00400000 Create a shortcut on your desktop that closes all your Internet Explorer windows nircmd.exe cmdshortcut " "~$folder.desktop$ "Close All IE" win close class "IEFrame" Create a shortcut on your desktop that hides all your Internet Explorer windows nircmd.exe cmdshortcut " "~$folder.desktop$ "Hide All IE" win hide class "IEFrame" Create a shortcut on your desktop that shows back all your Internet Explorer windows nircmd.exe cmdshortcut " "~$folder.desktop$ "Show All IE" win show class "IEFrame" Set the Windows Calculator as top-most window (above all other windows) nircmd.exe win settopmost title "Calculator" 1 Set the Windows Calculator back to regular window (non top-most window) nircmd.exe win settopmost title "Calculator" 0 Create a shortcut to Windows calculator under Start Menu->Programs->Calculators nircmd.exe shortcut "f:\winnt\system32\calc.exe" "~$folder.programs$\Calculators" "Windows Calculator" Hide the desktop window nircmd.exe win hide class progman Show the desktop window (After hiding it in previous example) nircmd.exe win show class progman Hide the start button on the system tray nircmd.exe win child class "Shell_TrayWnd" hide class "button" Show the start button on the system tray nircmd.exe win child class "Shell_TrayWnd" show class "button" Hide the clock on the system tray nircmd.exe win child class "Shell_TrayWnd" hide class "TrayClockWClass" Show the clock on the system tray nircmd.exe win child class "Shell_TrayWnd" show class "TrayClockWClass" Kill (terminate) all instance of Internet Explorer processes nircmd.exe killprocess iexplore.exe Create a shortcut on your desktop that opens the door of K: CDROM drive when you run it. nircmd.exe cmdshortcut "~$folder.desktop$" "Open CDROM" cdrom open k: Create a shortcut to NirSoft Web site on your desktop nircmd.exe urlshortcut "http://www.nirsoft.net" "~$folder.desktop$" "NirSoft" Add NirSoft Web site to your Favorities under Links folder. nircmd.exe urlshortcut "http://www.nirsoft.net" "~$folder.favorites$\Links" "NirSoft" Create a shortcut to NirSoft Web site on the desktop of all computers listed in computers.txt nircmd.exe multiremote copy "c:\temp\computers.txt" urlshortcut "http://www.nirsoft.net" "~$folder.common_desktop$" "NirSoft" Set the display mode to 800x600x24bit colors nircmd.exe setdisplay 800 600 24 Create a shortcut on the desktop that set the display mode to 800x600x24bit colors nircmd.exe cmdshortcut "~$folder.desktop$" "800x600x24" setdisplay 800 600 24 Copy all shortcuts on your desktop to another folder (f:\temp\desktop). nircmd.exe execmd copy "~$folder.desktop$\*.lnk" f:\temp\desktop Restart your Apache server (under Windows NT/2000/XP/2003) nircmd.exe service restart apache Create a shortcut on your desktop that restarts the Apache server nircmd.exe cmdshortcut "~$folder.desktop$" "Restart Apache" service restart apache Restart your IIS nircmd.exe service restart w3svc Restart MySql nircmd.exe service restart MySql Open the desired Registry key/value in RegEdit nircmd.exe regedit "HKLM\Software\Microsoft\Windows\CurrentVersion" "CommonFilesDir" Open the Registry key that you copied to the clipboard in RegEdit. nircmd regedit "~$clipboard$" Disable the screen saver nircmd.exe regsetval sz "HKCU\control panel\desktop" "ScreenSaveActive" 0 Enable the screen saver nircmd.exe regsetval sz "HKCU\control panel\desktop" "ScreenSaveActive" 1 Change the date/time of the specified filename (creation time and modified time) nircmd.exe setfiletime "c:\temp\myfile.txt" "24-06-2003 17:57:11" "22-11-2005 10:21:56" Copy your desktop folder path to the clipboard nircmd.exe clipboard set ~$folder.desktop$ Copy your start menu folder path to the clipboard nircmd.exe clipboard set ~$folder.start_menu$ Copy the content of info1.txt (simple text file) to the clipboard nircmd.exe clipboard readfile "c:\My Files\info1.txt" Add the text content of clipboard to info1.txt nircmd.exe clipboard addfile "c:\My Files\info1.txt" Clear the clipboard nircmd.exe clipboard clear Create all folders specified in "c:\temp\folders.txt". The folder path names are separated by CRLF characters. nircmd.exe paramsfile "c:\temp\folders.txt" "" "" execmd md ~$fparam.1$ Install the specified .NET assembly in the global assembly cache (like gacutil) nircmd.exe gac install "C:\temp\MyAssembly\bin\MyAssembly.dll" Empty the recycle bin in all drives. nircmd.exe emptybin |
送花文章: 3,
|
2006-01-18, 02:31 AM | #8 (permalink) | |
榮譽會員
|
引用:
.....怎可能切斷關閉電源.?用途? 或許賣營幕的廠商可能會在ms xp 的分類, msce 煤体中心版實現這功能....... |
|
送花文章: 3,
|