Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
FLOATING TOOLBAR
#7
Ok I think I got it! You're a genius!!!!


I am just posting the codes for buttons 1-2. Let me know what you think

Code:
Copy      Help
str z.getwintext(win("My Dialog Box "))

button1
Acc a=acc("" "CLIENT" z "AfxWnd42s" "" 0x1100 486 53); err goto button2
str a1=a.State()
if a1=1048576
    a.Mouse(1)
    goto endnow


button2
Acc b=acc("" "CLIENT" z "AfxWnd42s" "" 0x1100 628 90); err goto button3
str b1=b.State()
if b1=1048576
    b.Mouse(1)
    goto endnow

button3
end


I have button1 - button10 labels. Is there another way to make it file smaller? Like loop through the buttons and check if state is "1048576," click the button?

Thank you so much!


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)