dnks: FIX IN REPONSE TO SYMBOL SWITCHING CAUSING A AsyncVNCClient.connect ERROR
🟢 piker/brokers/ib/_util.py - New utility script added 🛠️ vnc_click_hack -> Refactored to initialize VNC client outside context 🛠️ client connection -> Simplified by removing crash handler context 🛠️ moved client movement -> Now inside async with block for proper cleanup 🛠️ added comments -> Clarified screen position and hotkey actionsmacos_fixed_with_readme
parent
b6e4630148
commit
5e3cd1fc6b
|
@ -221,27 +221,26 @@ async def vnc_click_hack(
|
||||||
'connection': 'r'
|
'connection': 'r'
|
||||||
}[reset_type]
|
}[reset_type]
|
||||||
|
|
||||||
with tractor.devx.open_crash_handler():
|
client = await AsyncVNCClient.connect(
|
||||||
client = await AsyncVNCClient.connect(
|
VNCConfig(
|
||||||
VNCConfig(
|
host=host,
|
||||||
host=host,
|
port=port,
|
||||||
port=port,
|
password='doggy',
|
||||||
password='doggy',
|
)
|
||||||
|
)
|
||||||
|
async with client:
|
||||||
|
# move to middle of screen
|
||||||
|
# 640x1800
|
||||||
|
await client.move(
|
||||||
|
Point(
|
||||||
|
500,
|
||||||
|
500,
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
async with client:
|
# ensure the ib-gw window is active
|
||||||
# move to middle of screen
|
await client.click(MOUSE_BUTTON_LEFT)
|
||||||
# 640x1800
|
# send the hotkeys combo B)
|
||||||
await client.move(
|
await client.press('Ctrl', 'Alt', key) # keys are stacked
|
||||||
Point(
|
|
||||||
500,
|
|
||||||
500,
|
|
||||||
)
|
|
||||||
)
|
|
||||||
# ensure the ib-gw window is active
|
|
||||||
await client.click(MOUSE_BUTTON_LEFT)
|
|
||||||
# send the hotkeys combo B)
|
|
||||||
await client.press('Ctrl', 'Alt', key) # keys are stacked
|
|
||||||
|
|
||||||
|
|
||||||
def i3ipc_fin_wins_titled(
|
def i3ipc_fin_wins_titled(
|
||||||
|
|
Loading…
Reference in New Issue