Jump to content

HELP ME PLEASE


Whips87
 Share

Recommended Posts

Hello! im trying to figure how can i make a script that will not '' Loop ''

so acutaly when i press 1 i want it send 5 time 1 1 1 1 1

so acutaly when i press 2 i want it send 5 time 2 2 2 2 2

so acutaly when i press 3 i want it send 5 time 3 3 3 3 3

im stuck on .. the beggin so

just figured how to do a HotKeySet("{1}", "Key1")

atm my script look like that but .. nothing work lol

HotKeySet("{1}", "Key1")
HotKeySet("{2}", "Key2")
HotKeySet("{3}", "Key3")
;---------------------------------------
While 1
 Sleep(1500)
 Key1()
 Key2()
 Key3()
WEnd

Func Key1()
   Send("1")
   Sleep(150)
   Send("1")
   Sleep(150)
   Send("1")
EndFunc

Func Key2()
   Send(2)
   Sleep(150)
   Send(2)
   Sleep(150)
   Send(2)
EndFunc

Func Key3()
   Send(3)
   Sleep(150)
   Send(3)
   Sleep(150)
   Send(3)
EndFunc

Whats going on ?

 

Link to comment
Share on other sites

Rad help files for more.

HotKeySet("{a}", "Key1")
HotKeySet("{w}", "Key2")
HotKeySet("{t}", "Key3")
HotKeySet("{e}", "_exit")
;---------------------------------------
While 1
Sleep(10)
WEnd

Func Key1()
Send("1")
Sleep(150)
Send("1")
Sleep(150)
Send("1")
EndFunc

Func Key2()
Send(2)
Sleep(150)
Send(2)
Sleep(150)
Send(2)
EndFunc

Func Key3()
Send(3)
Sleep(150)
Send(3)
Sleep(150)
Send(3)
EndFunc

Func _exit()
Exit
EndFunc
Link to comment
Share on other sites

Whips87,

please enclose your AutoIt script in code tags. The editor has a blue "A" iconfor that. Thanks.

BTW:

Which program do you try to automate? Send isn't very reliable. There might be better ways to do what you want to do.

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

And could you please give your threads a more meaningful title? Every user on this forum is searching for help ;)

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...