@@ -78,7 +78,7 @@ def __init__(self, *args, **kwargs):
7878 self .next_monthly_card_start = 0
7979 self ._logged_in = False
8080 self .enable_fidget_action = True
81- self .hold_lalt = False
81+ self .fidget_params = { "hold_lalt" : False , "skip_jitter" : False }
8282 self .sensitivity_config = self .get_global_config ('Game Sensitivity Config' ) # 游戏灵敏度配置
8383 self .onetime_seen = set ()
8484 self .onetime_queue = deque ()
@@ -648,7 +648,8 @@ def send_key_raw(key, is_down):
648648 interaction = self .executor .interaction
649649 vk_code = interaction .get_key_by_str (key )
650650 event = win32con .WM_KEYDOWN if is_down else win32con .WM_KEYUP
651- interaction .post (event , vk_code , interaction .lparam )
651+ lparam = interaction .make_lparam (vk_code )
652+ interaction .post (event , vk_code , lparam )
652653
653654 def get_magic_sleep_time ():
654655 """
@@ -678,7 +679,7 @@ def check_alt_logic():
678679 if not self .afk_config .get ("鼠标抖动" , True ):
679680 return
680681
681- if self .hold_lalt :
682+ if self .fidget_params . get ( " hold_lalt" , False ) :
682683 if not lalt_pressed :
683684 self .log_info ("[LAlt保持] 激活: 按下 LAlt" )
684685 send_key_raw ("lalt" , True )
@@ -704,7 +705,7 @@ def check_alt_logic():
704705
705706 def perform_mouse_jitter (current_drift ):
706707 """执行鼠标微小抖动,返回更新后的漂移量"""
707- if not self .afk_config .get ("鼠标抖动" , True ):
708+ if not self .afk_config .get ("鼠标抖动" , True ) or self . fidget_params . get ( "skip_jitter" , False ) :
708709 return current_drift
709710
710711 if self .afk_config .get ("鼠标抖动锁定在窗口范围" , True ):
0 commit comments