Jump to content

Simple Script Help


Ries
 Share

Recommended Posts

Ive created this script, and having small(BIG) problems to make it work like i want it.

What im trying to do, is when i press 8, it runs the script once. And reruns it every time i press 8.

I can only get it to run once, and it wont run again when i press 8

What are i'm doing wrong?

Thanks a lot to whomever gonna help me.

HotKeySet("8", "Main")

While 1

Sleep(100)

WEnd

Func Main()

HotKeySet("8")

Send("{ESC}")

Sleep(500)

send("{ESC}")

sleep(550)

MouseClick("left",1390,765,1)

Sleep(14000)

MouseClick("left",394,637,1)

sleep(900)

MouseClick("left",671,809,1)

sleep(900)

MouseClick("left",1515,1133,1)

sleep(900)

MouseClick("left",1106,850,1)

sleep(800)

MouseClick("left",324,552,1)

sleep(4000)

MouseClick("left",425,151,1)

sleep(2800)

MouseClick("left",425,151,1)

sleep(2800)

MouseClick("left",425,151,1)

sleep(2800)

Send("{SPACE}")

sleep(200)

send("{SPACE}")

sleep(200)

send("{SPACE}")

sleep(200)

send("{SPACE}")

sleep(1500)

MouseClick("left",1265,482,1)

Send("{SPACE}")

sleep(200)

Send("{SPACE}")

sleep(200)

Send("{SPACE}")

sleep(200)

Send("{SPACE}")

sleep(200)

Send("{SPACE}")

sleep(200)

Send("{SPACE}")

sleep(400)

Send("{SPACE}")

MouseClick("left",649,175,1)

sleep(3500)

Send("{SPACE}")

sleep(1000)

MouseClick("left",1096,489,1)

Soundplay(@WindowsDir & "\media\tada.wav",1)

EndFunc

Link to comment
Share on other sites

You have to set the HotKey again because you un-set it at the start of function main.

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...