Recently somehow I lost the script I was in the process of making. I am currently trying to re-create it, however I'm running into what I'm sure is a very simple fix I'm looking past.
When I run my program, I have it set so the dialog remains open. So if the user clicks "Start" the dialog is still there allowing them to press "Pause" or "About". The problem I'm running into is that when I click "Start" it disables all other functions of the dialog! It will not allow me to click any other buttons on the dialog.
Here is the part causing the troubles:
Code: Select all
Label>Loop
GetDialogAction>dialog1,r
If>r=2,exit
If>r=10,start
If>r=20,pause
If>r=30,about
Goto>Loop
Label>start
GetDialogAction>dialog1,r
GetCursorPos>CurX,CurY
GetScreenRes>sX,xY
ScreenCapture>0,0,sX,sY,d:\screen.bmp
FindImagePos>C:\\Program Files\aboredprogrammer\SlotBot 1.3\bma-ab.bmp,SCREEN,20,1,XPosa,YPosa,imgsa
FindImagePos>C:\\Program Files\aboredprogrammer\SlotBot 1.3\bmb-ab.bmp,SCREEN,20,1,XPosb,YPosb,imgsb
GetCursorPos>CurX,CurY
If>imgsa>0
Wai>0.2
Mou>XPosa_0,YPosa_0
Lcl
If>imgsb>0
Endif
//button already pushed
//user free to operate mouse
Mou>CurX,CurY
Endif
ResetDialogAction>dialog1
Goto>start