Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucid1ty committed Oct 3, 2023
1 parent 9d18d98 commit ae45bf7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions aim-csgo/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def on_click(x, y, button, pressed):
global lock_mode
if pressed and button == button.x2: # mouse button 5
lock_mode = not lock_mode
print('lock mode', 'no' if lock_mode else 'off')
print('Lock mode:', 'ON' if lock_mode else 'OFF')


def on_scroll(x, y, dx, dy):
Expand Down Expand Up @@ -125,12 +125,12 @@ def on_scroll(x, y, dx, dy):
color = (0, 255, 0) # Show targets with green boxes
cv2.rectangle(img0, top_left, bottom_right, color, thickness=3)

cv2.namedWindow('csgo-detect', cv2.WINDOW_NORMAL)
cv2.resizeWindow('csgo-detect', re_x // 3, re_y // 3)
cv2.imshow('csgo-detect', img0)
cv2.namedWindow('detect', cv2.WINDOW_NORMAL)
cv2.resizeWindow('detect', re_x // 3, re_y // 3)
cv2.imshow('detect', img0)

hwnd = win32gui.FindWindow(None, 'csgo-detect')
CVRETC = cv2.getWindowImageRect('csgo-detect')
hwnd = win32gui.FindWindow(None, 'detect')
CVRETC = cv2.getWindowImageRect('detect')
win32gui.SetWindowPos(hwnd, win32con.HWND_TOPMOST, 0, 0, 0, 0, win32con.SWP_NOMOVE | win32con.SWP_NOSIZE)

# Press q to end the program
Expand Down

0 comments on commit ae45bf7

Please sign in to comment.