Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Auto click variable
Message
From
05/01/2013 12:58:25
 
 
To
05/01/2013 12:50:16
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01561508
Message ID:
01561509
Views:
82
>I'm trying to get this to work for me.
>
>
>* TIMER BUTTON CODE
>PRIVATE timevar,cbutton
>timevar = "13:15:00"
>cbutton = "Command62"
>DO WHILE TIME() <> timevar
>loop
>ENDDO
>thisform.cbutton.click
>
>
>And of course c.button is giving me trouble. I've tried quotes, brackets and m. variations with no success.
>How can I get c.button to automatically click while I'm sleeping?

It should be
Thisform.TheActualButtonName.Click
Where "TheActualButtonName" is the name of the button that is on the form.

Your code is trying to click a button named "cbutton" on your form but there is, I assume, no such button. So in your example you want:
Thisform.Command62.Click
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform