Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <ButtonConstants.au3>
- #include <EditConstants.au3>
- #include <GUIConstantsEx.au3>
- #include <StaticConstants.au3>
- #include <WindowsConstants.au3>
- $Form1 = GUICreate("decode", 245, 296, 192, 124)
- $Input1 = GUICtrlCreateInput("", 8, 8, 225, 21)
- $Button1 = GUICtrlCreateButton("decode!", 8, 64, 227, 25)
- $Button2 = GUICtrlCreateButton("mettre dans le presse papier", 8, 96, 227, 25)
- $Checkbox1 = GUICtrlCreateCheckbox("binaire => acsii", 8, 40, 225, 17)
- $Label1 = GUICtrlCreateLabel("", 8, 128, 220, 153)
- GUISetState(@SW_SHOW)
- While 1
- $nMsg = GUIGetMsg()
- Switch $nMsg
- Case $GUI_EVENT_CLOSE
- Exit
- Case $Button1
- If GUICtrlRead($Checkbox1) = $GUI_CHECKED Then
- $res = BinaryToString(GUICtrlRead($Input))
- GuiCtrlSetData($Label1,$res,0)
- Else
- $res = StringToBinary(GUICtrlRead($Input))
- GuiCtrlSetData($Label1,$res,0)
- Endif
- Case $Button2
- ClipPut($res)
- EndSwitch
- WEnd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement