使用
- 3.1. 編輯檔案
- 3.2. 儲存檔案
- 3.3. To Revert to the Last Saved Version of a File
- 3.4. 在檔案中尋找資料
- 3.5. To Perform an Advanced Find
- 3.6. To Add Search Criteria
- 3.7. To Remove Search Criteria
- 3.8. 在檔案中尋找並取代資料
- 3.9. 新增或移除檔案的其他檢視
- 3.10. To Change the Data Group Type
- 3.11. 匯出 GHex 檢視至 HTML
- 3.12. 檢視字元表
- 3.13. 檢視資料轉換
- 3.14. To Show or Hide the Type Conversion Dialog
- 3.15. 列印檔案
3.1. 編輯檔案
如果要編輯檔案,請執行下列步驟:
-
請按一下檔案的十六進位或 ASCII 檢視。 檢視若為作用中,則會顯示完整的游標。 檢視若為非作用中,則只會顯示游標的外框。
-
請使用下列任一種方法,在檔案中移動游標:
- Use the scrollbar on the window or the arrow keys on the keyboard to scroll through the file.
- 請選擇 ,以十進制或十六進制鍵入游標偏移量,然後按一下 。十六進制數值的格式,必須為 0x 加上偏移量,例如 0x3。
-
Edit the ASCII format in the same way you edit a normal text file. To edit the hexadecimal format, use the values 0 to 9 and a to f.
To insert data and not overwrite existing data, choose
.To cut, copy, and paste data, choose
, , and .To undo an edit, choose Maximum number of undo levels setting in the Section 4.1 ― 編輯 tabbed section of the Preferences dialog.
. To redo an edit, choose . The number of previous edits that you can undo is determined by the3.3. To Revert to the Last Saved Version of a File
To revert to the last version of the current file that you saved and undo all of the edits that you made to the file since you last saved the file, choose Question dialog.
, then click in the3.4. 在檔案中尋找資料
如果要在檔案中搜尋十六進制或 ASCII 字串,請執行下列步驟:
-
請選擇
。 -
在尋找資料對話方塊中,選擇下列任一項選項:
- Search for hex data
- Search for ASCII data
-
請輸入您想要尋找的字串。
-
按一下
,尋找下一個符合的字串。 -
按一下
,尋找上一個符合的字串。 -
Click Find Data dialog.
to close the
3.5. To Perform an Advanced Find
To perform an advanced find, perform the following steps:
- Choose .
- In the Find Data dialog, select the required search criteria. For information about how to add new search criteria, see Section 3.6 ― To Add Search Criteria.
- 按一下 ,尋找下一個符合的字串。
- 按一下 ,尋找上一個符合的字串。
- Click Find Data dialog. to close the
3.6. To Add Search Criteria
To add search criteria, perform the following steps:
-
Choose
. -
In the Find Data dialog, click .
-
In the Find Data: Add Search dialog, choose one of the following options:
- Search for hex data
- Search for ASCII data
-
請輸入您想要尋找的字串。
-
Use the color wheel or the spin boxes to select a color to highlight the search criteria.
-
Click
. -
Click Find Data dialog.
to close the
3.7. To Remove Search Criteria
To remove search criteria, perform the following steps:
- Choose .
- In the Find Data dialog, select the search criteria that you want to remove.
- Click .
- Click Find Data dialog. to close the
3.8. 在檔案中尋找並取代資料
如果要先在檔案中搜尋十六進制或 ASCII 字串,然後取代該字串,請執行下列步驟:
-
請選擇
。 -
在尋找 & 取代資料對話方塊中,選擇下列任一項選項:
- Replace hex data
- Replace ASCII data
-
請在第一個文字方塊中,輸入您想要尋找的字串。
-
請在第二個文字方塊中,輸入您想要取代所尋找字串的字串。
-
請按一下
。 -
請按一下
,取代目前所在位置的字串;或是按一下 ,取代所有該字串。 -
Click Find & Replace Data dialog.
to close the
3.9. 新增或移除檔案的其他檢視
To add another view of the current file to your GHex window, choose .
如果要移除目前檔案的檢視,請選擇
。如果您移除的是最後一個開啟的檔案,本應用程式便會結束。3.10. To Change the Data Group Type
To change how GHex displays the hexadecimal content of a file in the GHex window, choose , then select one of the following menu items:
- Bytes - single bytes
- Words - groups of two bytes
- Longwords - groups of four bytes
3.11. 匯出 GHex 檢視至 HTML
To export the data contained in the GHex window to HTML, choose . Choose a directory and specify a filename for the HTML file, then click . GHex implements the following actions:
- Creates a separate HTML file for each page of data that is displayed in the GHex window.
- Uses the HTML filename that you specify as the basis for the filename.
- Appends a page number to the filename to differentiate the files.
3.13. 檢視資料轉換
如果要顯示最多四個位元組資料的二進制、十進制、十六進制以及 ASCII 轉換,請執行下列步驟:
-
請選擇
。 -
執行下列任一項動作:
- 請在基數轉換程式對話方塊的其中一個欄位,鍵入要轉換的資料,然後按一下 Return。
- 如果要在目前檔案的游標位置顯示資料轉換,請按一下 按鈕。
GHex 會更新其他欄位的數值,顯示資料轉換。
-
Click Base Converter dialog.
to close the
3.14. To Show or Hide the Type Conversion Dialog
To show or hide the type conversion dialog, choose
.The type conversion dialog displays the value of the selected character in the following representations:
- Signed 8 bit
- Unsigned 8 bit
- Signed 16 bit
- Unsigned 16 bit
- Signed 32 bit
- Unsigned 32 bit
- 32 bit float
- 64 bit float
- Hexadecimal
- Octal
- Binary
- Stream Length
The type conversion dialog also contains the following options:
- Show little endian decoding
-
Select this option to show little endian decoding.
- Show unsigned and float as hexadecimal
-
Select this option to show unsigned and float numbers as hexadecimal numbers.