FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
jeb-samplecode/scripts/RequestUserInput.py at master · pnfsoftware/jeb-samplecode · GitHub
pnfsoftware
jeb-samplecode
Repository navigation
Code
Pull requests
3
(3)
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
jeb-samplecode
/
scripts
/
RequestUserInput.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
18 lines (16 loc) · 719 Bytes
Breadcrumbs
jeb-samplecode
/
scripts
/
RequestUserInput.py
Copy path
File metadata and controls
18 lines (16 loc) · 719 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#?description=Demo how to invoke common dialog boxes
#?shortcut=
from
com
.
pnfsoftware
.
jeb
.
client
.
api
import
IScript
,
IGraphicalClientContext
from
com
.
pnfsoftware
.
jeb
.
client
.
api
import
IconType
,
ButtonGroupType
"""
Sample script for JEB Decompiler.
"""
class
RequestUserInput
(
IScript
):
def
run
(
self
,
ctx
):
if
not
isinstance
(
ctx
,
IGraphicalClientContext
):
print
(
'This script must be run within a graphical client'
)
return
value
=
ctx
.
displayQuestionBox
(
'Input'
,
'Enter a random string'
,
'3'
)
if
value
!=
None
:
ctx
.
displayMessageBox
(
'Information'
,
'The value was %s'
%
value
,
IconType
.
INFORMATION
,
ButtonGroupType
.
OK
)
# other dialogs: see IGraphicalClientContext.displayXxx() methods
Back
|
FazBrowse Home
|
New Git URL