zauber3r Posted November 24, 2017 Share Posted November 24, 2017 Hi, I know how to run a function with a special hotkey pressed, like "!5" => ALT + 5. How do I the same, with ALT + Left Mouseclick (or right). I did not find anything on google. thanks in advance Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted November 24, 2017 Moderators Share Posted November 24, 2017 zauber3r, Welcome to the AutoIt forums. I would use _IsPressed - look in the Help file for more details. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
zauber3r Posted November 24, 2017 Author Share Posted November 24, 2017 Thank you for your answer, but it helped me not. I need instead "ALT + 5" as hotkey, "ALT + LeftMouseClick" I want to pop up a contextmenu. With your way I need a lot of more code to send the hotkey.... Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted November 24, 2017 Moderators Share Posted November 24, 2017 zauber3r, Quote With your way I need a lot of more code to send the hotkey.... And so? If you want to detect a mouseclick then that is the way to do it - unless you want to get even more exotic and start registering Windows messages, which is even more code..... M23 Earthshine 1 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
zauber3r Posted November 24, 2017 Author Share Posted November 24, 2017 If both are pressed I'll send the Hotkey now. Thank you Link to comment Share on other sites More sharing options...
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