ocensound Posted January 10, 2009 Share Posted January 10, 2009 I have this loop While Send("{F6}",0) If Int(PixelChecksum(26,609,142,609))=Int(4179088655) Then ExitLoop Else MouseClick("LEFT",$test[0][$loop],$test[1][$loop],2,0) EndIf WEnd I want press key F6 for every mouse click but it not work ,Sometime mouse clicked without press key F6 I think you can help thx.. Link to comment Share on other sites More sharing options...
martin Posted January 10, 2009 Share Posted January 10, 2009 I have this loop While Send("{F6}",0) If Int(PixelChecksum(26,609,142,609))=Int(4179088655) Then ExitLoop Else MouseClick("LEFT",$test[0][$loop],$test[1][$loop],2,0) EndIf WEnd I want press key F6 for every mouse click but it not work ,Sometime mouse clicked without press key F6 I think you can help thx..By the look of your code you will get Send before every mouse click, so I would say you are wrong. Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
ocensound Posted January 10, 2009 Author Share Posted January 10, 2009 MouseClick("LEFT",$test[0][$loop],$test[1][$loop],1,0) I try this too, not work Link to comment Share on other sites More sharing options...
martin Posted January 11, 2009 Share Posted January 11, 2009 MouseClick("LEFT",$test[0][$loop],$test[1][$loop],1,0) I try this too, not work I expect you have inadvertently overlooked the reciprical derivative of the last parameter in the API testloop function. It's an easy mistake to make. But seriously, how could we help you with that? We have no idea how you have set $test[0][$loop] or $test[1][$loop]. Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
ocensound Posted January 11, 2009 Author Share Posted January 11, 2009 (edited) expandcollapse popupDim $test[2][10] x() Func x() Local $x=72 Local $y=54 Local $backx=426 Local $backy=94 For $loop=0 To 4 Step 1 $test[0][$loop]=$backx-$x $test[1][$loop]=$backy+$y $backx=$backx-$x $backy=$backy+$y Next Local $fontx=60 Local $fonty=478 For $loop=5 To 9 Step 1 $test[0][$loop]=$fontx+$x $test[1][$loop]=$fonty-$y $fontx=$fontx+$x $fonty=$fonty-$y Next y() EndFunc Func y() For $loop=0 To 9 Step 1 MouseMove($test[0][$loop],$test[1][$loop],0) While Send("{F6}",0) If Int(PixelChecksum(26,609,142,609))=Int(4179088655) Then ExitLoop Else MouseClick("LEFT",$test[0][$loop],$test[1][$loop],1,50) EndIf WEnd Next EndFunc Just click Edited January 11, 2009 by ocensound 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