Skip to content

Commit

Permalink
4.4.4
Browse files Browse the repository at this point in the history
* fixed [issue #15](#15), right click on the link to copy demo name
  • Loading branch information
ZaharX97 committed Jun 23, 2021
1 parent 2023601 commit 7a13471
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 6 deletions.
4 changes: 3 additions & 1 deletion MainWindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,8 +334,10 @@ def __init__(self, title, sizex, sizey):
self.entry1_url = btk.MyEntryStyle(self.window, "")
self.entry1_url.frame.grid(row=2, column=0, sticky=tk.W + tk.E, columnspan=5, ipady=3, padx=5, pady=2)
self.menu1_entry1_copy = btk.MyMenuStyle(self.window)
self.menu1_entry1_copy.menu.add_command(label="Copy", command=lambda: f.copy_to_clipboard(
self.menu1_entry1_copy.menu.add_command(label="Copy Link", command=lambda: f.copy_to_clipboard(
self.entry1_url.frame, self.entry1_url.text.get()))
self.menu1_entry1_copy.menu.add_command(label="Copy Demo Name", command=lambda: f.copy_to_clipboard(
self.entry1_url.frame, g.demo_name))

def rc_event1(event):
self.menu1_entry1_copy.menu.post(event.x_root, event.y_root)
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@ CSGO Overwatch revealer by sniffing packets

## Latest Version:

* v**4.4.3** [Download](https://github.com/ZaharX97/OWReveal/releases/latest)
* v**4.4.4** [Download](https://github.com/ZaharX97/OWReveal/releases/latest)
* created a small site to show suspects from all people using this app
* [zahar.one/owrev](https://zahar.one/owrev)
* fixed [issue #12](https://github.com/ZaharX97/OWReveal/issues/12), net adapter is saved to settings
* fixed [issue #14](https://github.com/ZaharX97/OWReveal/issues/14), right click to copy steamid
* added some kind of format to renaming demos, [more info](https://github.com/ZaharX97/OWReveal#demo-rename-format)
* fixed [issue #15](https://github.com/ZaharX97/OWReveal/issues/15), right click on the link to copy demo name

## How to use?
1. Download and install npcap (https://nmap.org/npcap/)
Expand Down
18 changes: 15 additions & 3 deletions functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,18 @@ def import_settings_extra():
g.RANK_TRANSLATE_WL = g.RANK_TRANSLATE_IMG

if g.settings_dict["net_interface"] != "":
g.app.btn1_interfaces.text.set(g.settings_dict["net_interface"])
if platform.platform().lower().find("windows") != -1:
iface_list = scpa.get_windows_if_list()
else:
iface_list = scpa.get_if_list()
goodiface = False
for x in iface_list:
if x["name"] == g.settings_dict["net_interface"]:
goodiface = True
if not goodiface:
g.settings_dict.update({"net_interface": ""})
else:
g.app.btn1_interfaces.text.set(g.settings_dict["net_interface"])

if g.settings_dict["auto_start"]:
g.app.start_stop()
Expand Down Expand Up @@ -249,6 +260,7 @@ def download_from_link(link, button):
AW.MyAlertWindow(g.app.window, "Error downloading file")
button.text.set("Download DEMO")
return
g.demo_name = name[:-4]
with dest1 as dest:
for chunk in r.iter_content(chunk_size=chunk_size):
dest.write(chunk)
Expand Down Expand Up @@ -388,14 +400,14 @@ def copy_to_clipboard(root, text: str or list):


def return_demo_name():
if not g.list_links:
return ""
text = g.settings_dict["rename"]
text = text.replace("?N", g.list_links[-1][g.list_links[-1].rfind("/") + 1:-8])
tformat1 = text.find("?T")
tformat2 = text[tformat1 + 1:].find("?") + len(text[:tformat1 + 1])
tformat = text[tformat1 + 2: tformat2]
print(text, tformat, text[tformat1: tformat2 + 1])
text = text.replace(text[tformat1: tformat2 + 1], g.demo_date.strftime(tformat))
print(text)
return text


Expand Down
3 changes: 2 additions & 1 deletion myglobals.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
TEXT_CUTOUT_MAPSERV = 18
DEMOS_AGE = 24 * 3

VERSION = "4.4.3"
VERSION = "4.4.4"
PROJECT_LINK = "https://github.com/ZaharX97/OWReveal"
PROJECT_LINK_LATEST = PROJECT_LINK + "/releases/latest"
SITE_OWREV = "https://zahar.one/owrev"
Expand All @@ -144,6 +144,7 @@
# expected_players = 10
demo_mode = 0
demo_ranks = None
demo_name = ""
ranks_done = False
npcap_link = "https://nmap.org/npcap/"
steam_bans_api = "https://api.steampowered.com/ISteamUser/GetPlayerBans/v1/?key="
Expand Down

0 comments on commit 7a13471

Please sign in to comment.