boat_58 Posted February 24, 2022 Posted February 24, 2022 I am trying to create an Alt+Click but each time i do it, it doesn't function as intended. This is what i was able to get to somewhat work. The problem is, after the code execute, ALT is still held down and i have to manually press Alt again to release it. Any help will greatly be appreciated send("{LALT DOWN}") MouseClick("left", 1274, 698) send("{LALT UP}") Sleep(250)
ad777 Posted February 24, 2022 Posted February 24, 2022 (edited) @boat_58 try this instead of {LALT DOWN}: send("{ALTDOWN}") MouseClick("left", 1274, 698) send("{ALTUP}") Sleep(250) Edited February 24, 2022 by ad777 none
boat_58 Posted February 24, 2022 Author Posted February 24, 2022 14 minutes ago, ad777 said: @boat_58 use this insted: send("{ALTDOWN}") MouseClick("left", 1274, 698) send("{ALTUP}") Sleep(250) It presses Alt but it does not click at the same time. I have tried it multiple times but it doesn't press it at the same time.
Nine Posted February 24, 2022 Posted February 24, 2022 Have you tried putting a sleep after send ? “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
ad777 Posted February 24, 2022 Posted February 24, 2022 (edited) 23 minutes ago, boat_58 said: It presses Alt but it does not click at the same time. I have tried it multiple times but it doesn't press it at the same time. Press at the same time : send("{ALTDOWN}") send("{ALTUP}") MouseClick("left", 1274, 698) Sleep(250) Edited February 24, 2022 by ad777 none
boat_58 Posted February 24, 2022 Author Posted February 24, 2022 17 minutes ago, Nine said: Have you tried putting a sleep after send ? Yes , i tried that after it didn't work. It still didn't alt click at the same time. It pressed Alt and then clicked right after but not the same time. The only way it seems to work is if i specify LALT Down, but then it doesn't release it with the LALT UP for some reason.
boat_58 Posted February 24, 2022 Author Posted February 24, 2022 26 minutes ago, ad777 said: Press at the same time : send("{ALTDOWN}") send("{ALTUP}") MouseClick("left", 1274, 698) Sleep(250) Same thing, it does not press it with the click.
boat_58 Posted February 24, 2022 Author Posted February 24, 2022 1 hour ago, ad777 said: @boat_58 try this instead of {LALT DOWN}: send("{ALTDOWN}") MouseClick("left", 1274, 698) send("{ALTUP}") Sleep(250) I got this one working as intended thank you. All i had to do was put a space. send("{ALT DOWN}") MouseClick("left", 1090, 558) Sleep(1000) send("{ALT UP}")
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now