Can anyone help me out to create a auto press button script.

Asked By 20 points N/A Posted on -
qa-featured

Hi friends,

I am interested to author a program that mimics mouse pressing a button using vbscript. Can you help me create a simple auto press button script. Thanks in advance 

SHARE
Best Answer by Shifflett Laurel
Answered By 0 points N/A #195657

Can anyone help me out to create a auto press button script.

qa-featured
Hotkeyset (  ''"{pause}'' ) , ''quickscript'')
while 1
send ( ''s'')
sleep (200)
wend
Func Quitescript ()
Exit
EndFunc
So you can press the PAUSE key to stop the script.

 

Best Answer
Best Answer
Answered By 0 points N/A #195660

Can anyone help me out to create a auto press button script.

qa-featured

 

Hello Douglas!!
 
It is not clear that where you can’t create the auto press button. You should send your source file .
However you can insert the following code to your main code.  
I am giving the code with illustrative comments.
For I= 1 To days // You have to define a variable I
Sheets (“Send to PI”). Select
Range (“Shifflett”). Select// Shifflett  will be overwritten with I value in each iteration
ActiveCell. value=i
Range (“Shifflett”). Select
I hope this will be effective.
 
Regards
Shifflett Laurel

Related Questions