Leopardfist Posted July 26, 2005 Posted July 26, 2005 Can anyone tell me how I can create a hotkey that is a Left Mouse Button Click? I also am curious if 2 separate Autoit Macro's/Exe's are running, wether you can pass variables from one to another. If this is possible I'd love to find out how!
GaryFrost Posted July 26, 2005 Posted July 26, 2005 if this is a gui script GUISetOnEvent($GUI_EVENT_PRIMARYDOWN,"function name") SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
Leopardfist Posted July 26, 2005 Author Posted July 26, 2005 if this is a gui scriptGUISetOnEvent($GUI_EVENT_PRIMARYDOWN,"function name")<{POST_SNAPBACK}>Not sure what a GUI Script is, but I do have a GUI in my script. I want to utilize the hotkey for users to define coordinates on a separate window, I'll test your command and see if it works!Can I later reset it by:GUISetOnEvent($GUI_EVENT_PRIMARYDOWN,"")Is there a ASCII command for mouse button press that I could use in a hotkeyset command?
GaryFrost Posted July 26, 2005 Posted July 26, 2005 I think more of what your looking for is _IsPressed function, search the scripts and scraps. Gary SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
Leopardfist Posted July 26, 2005 Author Posted July 26, 2005 I think more of what your looking for is _IsPressed function, search the scripts and scraps.Gary<{POST_SNAPBACK}>I am not sure what I need to run this... is it part of the beta program, or do I have to know a different language to program a UDF? I see your small block of code, but I do not know what to do with it in order for my version of autoit to accept this command.
layer Posted July 26, 2005 Posted July 26, 2005 I think what Gary was referring to was a function created by a user (UDF we will call it for now on, ok?)... He meant for you to search the forum for "_IsPressed" or "IsPressed", but the first would be better. Anyway, here is the link to the function... READ about it:http://www.autoitscript.com/forum/index.ph...wtopic=5760&hl= FootbaG
closeupman Posted July 26, 2005 Posted July 26, 2005 Can anyone tell me how I can create a hotkey that is a Left Mouse Button Click?I also am curious if 2 separate Autoit Macro's/Exe's are running, wether you can pass variables from one to another. If this is possible I'd love to find out how!<{POST_SNAPBACK}>You might also wanna try autohotkey for that
Valuater Posted July 26, 2005 Posted July 26, 2005 (edited) Not sure what a GUI Script is, but I do have a GUI in my script. I want to utilize the hotkey for users to define coordinates on a separate window, I'll test your command and see if it works!Can I later reset it by:GUISetOnEvent($GUI_EVENT_PRIMARYDOWN,"")Is there a ASCII command for mouse button press that I could use in a hotkeyset command?<{POST_SNAPBACK}>I used thisHotKeySet( "{ESC}", "Get_pos")Func Get_pos() $Ms_In = MouseGetPos() $Mpos_1 = $Ms_In[0] $Mpos_2 = $Ms_In[1] EndFuncHope it helps8) Edited July 26, 2005 by Valuater
/dev/null Posted July 26, 2005 Posted July 26, 2005 Can anyone tell me how I can create a hotkey that is a Left Mouse Button Click?Hm.. help file + Mouse + Click == MouseClick(). So:HotKeySet( "{F9}", "clicker") Func clicker() MouseClick("left") EndFuncHope that helps...CheersKurt __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *
/dev/null Posted July 26, 2005 Posted July 26, 2005 I also am curious if 2 separate Autoit Macro's/Exe's are running, wether you can pass variables from one to another. If this is possible I'd love to find out how!easiest way to pass data between two scripts: ClipPut() and ClipGet(). Other: RegWrite() and RegRead().CheersKurt __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *
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