-
Posts
44 -
Joined
-
Last visited
About czyt
- Birthday 08/06/1989
Profile Information
-
Location
中国
-
WWW
https://czyt.tech
-
Interests
Windows OS
Linux
some scripts......
Recent Profile Visitors
651 profile views
czyt's Achievements

Seeker (1/7)
9
Reputation
-
Colanes reacted to a post in a topic: Check and set Printer online/offline status
-
coffeeturtle reacted to a post in a topic: Check if Win10 system is LEGACY or UEFI installed
-
coffeeturtle reacted to a post in a topic: _IsUEFIBoot——Detemine the Current OS is boot in UEFI mode or not
-
Check if Win10 system is LEGACY or UEFI installed
czyt replied to ModemJunki's topic in AutoIt Example Scripts
maybe this will do the trick https://www.autoitscript.com/forum/topic/180322-_isuefiboot%E2%80%94%E2%80%94detemine-the-current-os-is-boot-in-uefi-mode-or-not/ -
try this https://github.com/TestStack/White
-
mlazovjp reacted to a post in a topic: _IsUEFIBoot——Detemine the Current OS is boot in UEFI mode or not
-
Biatu reacted to a post in a topic: _IsUEFIBoot——Detemine the Current OS is boot in UEFI mode or not
-
so cool!nice Example
-
Happy New Year 2017
-
is there any deskband Example for reference?thx in advance.
-
Curl UDF - AutoIt binary code version of libcurl with SSL support
czyt replied to Ward's topic in AutoIt Example Scripts
支持啦,原来也是来自中国的兄弟啊~~ thx,Brother from China~~ -
dircopy with handling of symlink and junction
czyt replied to gillesg's topic in AutoIt General Help and Support
search “ _GetReparseTarget ” and “symlink” in the forum will help you. -
argumentum reacted to a post in a topic: _IsUEFIBoot——Detemine the Current OS is boot in UEFI mode or not
-
May it helps those who needed. #include <WinAPI.au3> ; #FUNCTION# ==================================================================================================================== ; Name ..........: _IsUEFIBoot ; Description ...: Detemine the Current OS is boot in UEFI mode or not ; Syntax ........: _IsUEFIBoot() ; Parameters ....: ; Return values .: True:OS is boot in UEFI ; False: OS is boot in Legacy BIOS ; Author ........: czyt ; Modified ......: ; Remarks .......: ; Related .......: http://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/nftechsupt.web+WinBatch/DllCall~Information+Booted~UEFI~or~BIOS.txt ; Link ..........: ; Example .......: MsgBox(0,'(*^__^*) The OS is in UEFI Boot mode?',_IsUEFIBoot()) ; =============================================================================================================================== #include <WinAPI.au3> Func _IsUEFIBoot() Local Const $ERROR_INVALID_FUNCTION = 0x1 Local $hDLL = DllOpen("Kernel32.dll") If @OSBuild > 8000 Then Local $aCall = DllCall($hDLL, "int", "GetFirmwareType", "int*", 0) DllClose($hDLL) If Not @error And $aCall[0] Then Switch $aCall[1] ; 1 - bios 2- uefi 3-unknown Case 2 Return True Case Else Return False EndSwitch EndIf Return False Else DllCall($hDLL, "dword", "GetFirmwareEnvironmentVariableW", "wstr", "", "wstr", '{00000000-0000-0000-0000-000000000000}', "wstr", Null, "dword", 0) DllClose($hDLL) If _WinAPI_GetLastError() = $ERROR_INVALID_FUNCTION Then Return False Else Return True EndIf EndIf EndFunc ;==>IsUEFIBoot updated at 2021-08-13: fixed check err on windows 8 above OS
-
thx for the code~~
-
dmob reacted to a post in a topic: Check and set Printer online/offline status
-
coffeeturtle reacted to a post in a topic: Check and set Printer online/offline status
-
This is a very simple sample about checking printer status and set its online/offline status.may help those who in need of this issue. $StrComputer="." $obj=ObjGet("winmgmts:\\"&$StrComputer&"\root\CIMV2") $colitems=$obj.ExecQuery("Select * from Win32_Printer") For $objitem In $colitems If $objitem.Caption=="SHARP AR-1808S" Then $a=Int($objitem.Attributes / 1024) If Mod($a, 2)=0 Then MsgBox(0,0,"Printer is online",8) ElseIf Mod($a, 2)=1 Then MsgBox(0,0,"Printer is offline,press 'OK'button To make the printer online ",8) ;core code $objitem.WorkOffline = False $objitem.Put_ ;~~~~~~~~~~~~~~~~~~~~~~ MsgBox(0,'','Printer is online now.') Else MsgBox(0,0,"unknown status",8) EndIf EndIf next
-
Please refer to this web http://www.wikihow.com/Block-a-Specific-Website-Without-Software
-
I'm not familar with popweshell ,could someone help me translate the code below to autoit ? thanks in advance. $priPath = $args[0] $outputPath = $args[1] $replacementPath = $args[2] $ErrorActionPreference = "Stop" $inputStream = [System.IO.File]::OpenRead($priPath) $outputStream = [System.IO.File]::Create($outputPath) $replacementStream = [System.IO.File]::OpenRead($replacementPath) $inputReader = New-Object System.IO.BinaryReader -ArgumentList $inputStream $outputWriter = New-Object System.IO.BinaryWriter -ArgumentList $outputStream $inputStream.CopyTo($outputStream) $replacementLengthAligned = ([Math]::Ceiling($replacementStream.Length / 8) * 8) # header $inputStream.Seek(0x14, "Begin") | Out-Null $headerLength = $inputReader.ReadUInt32() $inputStream.Seek(0xB8, "Begin") | Out-Null $dataitemOffset = $inputReader.ReadUInt32() $origDataitemLength = $inputReader.ReadUInt32() $dataitemLength = $origDataitemLength + $replacementLengthAligned $outputStream.Seek(0xBC, "Begin") | Out-Null $outputWriter.Write([int]$dataitemLength) # dataitem $outputStream.Seek($headerLength + $dataitemOffset + 0x18, "Begin") | Out-Null $outputWriter.Write([int]$dataitemLength) $inputStream.Seek($headerLength + $dataitemOffset + 0x24, "Begin") | Out-Null $stringCount = $inputReader.ReadUInt16() $blobCount = $inputReader.ReadUInt16() $origDataLength = $inputReader.ReadUInt32() $outputStream.Seek(0xC, "Current") | Out-Null $outputWriter.Write([int]($origDataLength + $replacementLengthAligned)) $outputStream.Seek($stringCount * 4, "Current") | Out-Null for ($i = 0; $i -lt 10; $i++) { $outputWriter.Write($origDataLength) $outputWriter.Write([int]$replacementStream.Length) } $outputStream.Seek(($blobCount - 10) * 8, "Current") | Out-Null # data $outputStream.Seek($origDataLength, "Current") | Out-Null if ($outputStream.Length - $outputStream.Position -ne 0x18) { Write-Error "Not compatible with this PRI file." } $replacementStream.CopyTo($outputStream) # footer $outputStream.Seek($replacementLengthAligned - $replacementStream.Length, "Current") | Out-Null $outputWriter.Write(0xDEF5FADE) $outputWriter.Write([int]$dataitemLength) $outputWriter.Write(0xDEFFFADE) $outputWriter.Write(0x00000000) $outputWriter.Write([char[]]"mrm_pri2") $outputStream.Seek(0xC, "Begin") | Out-Null $outputWriter.Write([int]$outputStream.Length) $outputStream.Seek(-0xC, "End") | Out-Null $outputWriter.Write([int]$outputStream.Length) $inputReader.Close() $outputWriter.Close() $replacementStream.Close()
-
Is there any way to get the fixed-with font list via autoit?
czyt replied to czyt's topic in AutoIt General Help and Support
How to get the list from the handle?