Sign in to follow this  
Followers 0
artayura

Need Opinion

3 posts in this topic

Hello.

I want to do a script that repeat pressing number 1 for 3 times, and number 2 for 3 times.

Then it will repeat until i press END which will end the script.

Here is my script :

HotKeySet("{END}", "_end")

While 1

Send("{1 3}") // press number "1" 3 times

Sleep(5000)

Send ( "{3 3}") // press number "2" 3 times

Sleep(5000)

WEnd

Func _end()

Exit

EndFunc

Is correct? :D

Share this post


Link to post
Share on other sites



Hello.

I want to do a script that repeat pressing number 1 for 3 times, and number 2 for 3 times.

Then it will repeat until i press END which will end the script.

Here is my script :

Is correct? :D

Apart from "//" which should be ";" it looks ok, but why do you need to ask, can't you try it?

Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites

he he he..

i don't like to see error in the script that i'm running... :D

owh.. that // is just a statement..

thank u sir.. have a nice day. :D

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0