Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Auto click variable
Message
De
05/01/2013 12:58:25
 
 
À
05/01/2013 12:50:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01561508
Message ID:
01561509
Vues:
81
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform