Sign in to follow this  
Followers 0
blublub

setting a hotkeyset with alt+mouse1 button ?

4 posts in this topic

question as in topic

how this should look i thought that "!{MOUSE1}" would work :/

Share this post


Link to post
Share on other sites



blublub,

HotKeySet only works with keys, not mouse buttons.

From that ever useful Help file: "HotKeySet ( "key" [, "function"] ) - Parameters - key - The key combination to use as the hotkey. Same format as Send().", and I cannot see {MOUSE1} in the Send list. :-)

If you were to use the Search facility (in the title bar to the right), you would find that this question has been asked many, many times before and the answer is always the same: use _IsPressed.

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

thx

btw. ive used search but didnt find anything simillar to that question maybe ive used bad keywords

and i thought that in the help file not all keys are listed that actually can be used in send

tried it and

If _IsPressed("01",$dll) and _IsPressed("12", $dll) Then

dosnt work very with loop that has sleep(100) is there anyway better to do it becouse mouse clicks are pretty fast and lowering sleep will make cpu usage to high

Edited by blublub

Share this post


Link to post
Share on other sites

blublub,

Why not use nested EndIfs to speed things up?

; Check if Alt presssed
If _IsPressed("12", $dll) Then
    If _IsPressed("01",$dll) Then
    ; Do whatever you need to
    EndIf
EndIf

Then you only check the mouse if the Alt key is pressed. Or reverse the order if you use the Alt key more often than the mouse.

As to CPU useage, personally I have found that Sleep(10) is adequate in a tight loop - Sleep(100) is going to make the loop less responsive.

Anyway if you want this as a HotKey replacement, why not use Adlib so you can get on with other things in the meantime?

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0