ittorref Posted March 3, 2006 Share Posted March 3, 2006 Hello, I use this script : HotKeySet("{LEFT}", "FlG") While 1 Sleep(50) WEnd Func FlG() If StringInStr(WinGetTitle("Active"),"Paramétrage des écrans de saisie") Then $pos = MouseGetPos() MouseClickDrag("left",$pos[0],$pos[1],$pos[0]-1,$pos[1],0) Else HotKeySet("{LEFT}") Send("{LEFT}") HotKeySet("{LEFT}", "FlG") EndIf EndFunc The first problem is when i press the left arrow to fast, it make a double-click and open a dialog box for the control i move that i don't want. Is it possible to empty the "mouse buffer" after the MouseClikDrag ? Thank you all. Link to comment Share on other sites More sharing options...
nfwu Posted March 3, 2006 Share Posted March 3, 2006 HotKeySet("{LEFT}", "FlG") While 1 Sleep(50) WEnd Func FlG() HotKeySet("{LEFT}") If StringInStr(WinGetTitle("Active"),"Paramétrage des écrans de saisie") Then $pos = MouseGetPos() MouseClickDrag("left",$pos[0],$pos[1],$pos[0]-1,$pos[1],0) Else Send("{LEFT}") EndIf HotKeySet("{LEFT}", "FlG") EndFunc #) TwitterOut of date stuff:Scripts: Sudoku Solver | Webserver | 3D library (Pure AutoIt) | Wood's GadgetsUDFs: _WoodUniqueID() | _DialogEditIni() | _Console*() | _GetIPConfigData() | _URLEncode/Decode() Link to comment Share on other sites More sharing options...
ittorref Posted March 3, 2006 Author Share Posted March 3, 2006 Thank you very much nfwu !! Here is the difference between a beginner like me and a real programmer like you Link to comment Share on other sites More sharing options...
Xenobiologist Posted March 3, 2006 Share Posted March 3, 2006 (edited) HI, not a very good solution, but you can also use blockinput(1) and the beginning of your function and then again at the end blockinput(0). So long, Mega Edited March 3, 2006 by th.meger Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
nfwu Posted March 3, 2006 Share Posted March 3, 2006 HI,not a very good solution, but you can also use blockinput(1) and the beginning of your function and then again at the end blockinput(0).So long,MegaThat's why i disabled the {LEFT} hotkey, then reenables it after it does what it needs to do. Your solution works but is not as effective (blocks all input)#) TwitterOut of date stuff:Scripts: Sudoku Solver | Webserver | 3D library (Pure AutoIt) | Wood's GadgetsUDFs: _WoodUniqueID() | _DialogEditIni() | _Console*() | _GetIPConfigData() | _URLEncode/Decode() Link to comment Share on other sites More sharing options...
Xenobiologist Posted March 3, 2006 Share Posted March 3, 2006 That's why i disabled the {LEFT} hotkey, then reenables it after it does what it needs to do. Your solution works but is not as effective (blocks all input)#)Thanks, I know. But I thought I could mention it, so that he´ll read it, too. Maybe he needs to use BlockInput() elsewhere and is glad have read it before. So long,Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
ittorref Posted March 3, 2006 Author Share Posted March 3, 2006 Thanks mega, The nfwu's solution is good for me. 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