apollopimp Posted May 4, 2007 Share Posted May 4, 2007 (edited) ok in my autoit script when it runs it uses the mouse im trying to find a program that i can inject the mouse code in with my autoit script so i can still use my mouse.. is there a program for that..anyhelp would be nice thanks Edited May 4, 2007 by apollopimp Link to comment Share on other sites More sharing options...
PsaltyDS Posted May 4, 2007 Share Posted May 4, 2007 ok in my autoit script when it runs it uses the mouse im trying to find a program that i can inject the mouse code in with my autoit script so i can still use my mouse.. is there a program for that..anyhelp would be nice thanksWhat does "inject the mouse code" mean? Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
apollopimp Posted May 4, 2007 Author Share Posted May 4, 2007 i dont have a clue thats what i was told im trying to get my script to do the same thing but not use my mouse is there a program that can do that? when i run my script it uses the moust x,y positions so i cant use my mouse when im running my script. how can i make it so it dont need to use my mouse can it be coded in the script? with another program.. well sorry i cant explain any better .. Link to comment Share on other sites More sharing options...
PsaltyDS Posted May 4, 2007 Share Posted May 4, 2007 You've already checked out MouseMove() and MouseClick() in the help file? There was also a UDF floating around called _MouseClickPlus() (I think) that had something to do with mouse ops in a minimized window. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
karamazov Posted May 4, 2007 Share Posted May 4, 2007 (edited) Here is the mousclickplus function. I think its what your looking for: expandcollapse popupFunc _MouseClickPlus($Window, $Button = "left", $X = "", $Y = "", $Clicks = 1) Local $MK_LBUTTON = 0x0001 Local $WM_LBUTTONDOWN = 0x0201 Local $WM_LBUTTONUP = 0x0202 Local $MK_RBUTTON = 0x0002 Local $WM_RBUTTONDOWN = 0x0204 Local $WM_RBUTTONUP = 0x0205 Local $WM_MOUSEMOVE = 0x0200 Local $i = 0 Select Case $Button = "left" $Button = $MK_LBUTTON $ButtonDown = $WM_LBUTTONDOWN $ButtonUp = $WM_LBUTTONUP Case $Button = "right" $Button = $MK_RBUTTON $ButtonDown = $WM_RBUTTONDOWN $ButtonUp = $WM_RBUTTONUP EndSelect If $X = "" OR $Y = "" Then $MouseCoord = MouseGetPos() $X = $MouseCoord[0] $Y = $MouseCoord[1] EndIf For $i = 1 to $Clicks DllCall("user32.dll", "int", "SendMessage", _ "hwnd", WinGetHandle( $Window ), _ "int", $WM_MOUSEMOVE, _ "int", 0, _ "long", _MakeLong($X, $Y)) DllCall("user32.dll", "int", "SendMessage", _ "hwnd", WinGetHandle( $Window ), _ "int", $ButtonDown, _ "int", $Button, _ "long", _MakeLong($X, $Y)) DllCall("user32.dll", "int", "SendMessage", _ "hwnd", WinGetHandle( $Window ), _ "int", $ButtonUp, _ "int", $Button, _ "long", _MakeLong($X, $Y)) Next EndFunc Func _MakeLong($LoWord,$HiWord) Return BitOR($HiWord * 0x10000, BitAND($LoWord, 0xFFFF)) EndFuncoÝ÷ Ø@ÈLw«zƧ{¦¦W¨~0¶¬z+ZºÚ"µÍBBÓ[ÝÙPÛXÚÔÊ ][ÝÓÝY ][ÝË ][ÝÜYÚ ][ÝË ][ÝÌL ][ÝË ][ÝÌÌJB That would send a right mouse click to note pad one time at 100,300. Edited May 4, 2007 by karamazov Link to comment Share on other sites More sharing options...
apollopimp Posted May 4, 2007 Author Share Posted May 4, 2007 vary nice thank you for the help 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