First of all I'm new to MS World, and it's a great Language. So I need Help Since I'm a newbie.
I'm working on an Image recognition code which detect Images and Click on them, that's all my code do.
But now I want to Improve that, so that I can Control these IMagRec Lines with a Dialog,
What I want to do is to make some Check Boxes on the Dialog, which if (Checked) some of the Image-Searches are disabled.
then making a Start Buttom which Starts the Script to search for Only the desired Images.
my main Code is Like this:
I want the Check Box to "let's say" deactivate searching for the last Picture(s) if Checked ? is this possible ?//Find and Left Click Center of
FindImagePos>%BMP_DIR%\Home.bmp,WINDOW:NoxPlayer,0.7,1,XArr,YArr,NumFound,CCOEFF
If>NumFound>0
MouseMove>XArr_0,YArr_0
LClick
Endif
label>start
RunProgram>D:\Program Files\.....\bin\Nox.exe
//Find and Left Click Center of
FindImagePos>%BMP_DIR%\Game.bmp,WINDOW:NoxPlayer,0.7,1,XArr,YArr,NumFound,CCOEFF
If>NumFound>0
MouseMove>XArr_0,YArr_0
LClick
Endif
//Find and Double Left Click Center of
FindImagePos>%BMP_DIR%\Intro.bmp,WINDOW:NoxPlayer,0.7,1,XArr,YArr,NumFound,CCOEFF
If>NumFound>0
MouseMove>XArr_0,YArr_0
LDblClick
LDblClick
LDblClick
LDblClick
wait>1
LDblClick
LDblClick
LDblClick
Endif
and can I do this for Multiple Pictures ? like if a Check Box is checked the Script Skips like 3-4 Image Search Lines ?
my event Handler for the check Box is like this.....
[/quote]
AddDialogHandler>Dialog1,CheckBox1,OnClick,CheckItems
Show>Dialog1,modalresult
SRT>CheckItems
GetDialogProperty>Dialog1,CheckItems,Checked,isChecked
here is what I want it do do which is Skipping searching for Image X, Y, Z???
END>CheckItems
[/quote]
any help would be appreciated....