Jump to content

Recommended Posts

Posted

I have a script that autostart with Windows, and sometimes some of my code is skipped. My script takes long pauses, so it's not that the script "goes too fast". This is my script for now:

TraySetIcon("C:\Portables\AutoIt\_\icon.ico")
AutoItSetOption("WinTitleMatchMode", 2)



Run("C:\Portables\Key Manager\keymanager.exe")
WinActivate("ATNSOFT Key Manager v")
WinWaitActive("ATNSOFT Key Manager v")
WinMove("ATNSOFT Key Manager v", "", 650, 200, 600, 800)
Sleep(500)
$pos = MouseGetPos()
MouseClick("left", 1220, 210, 1, 100)
MouseMove($pos[0], $pos[1], 100)



Run("C:\Portables\foobar2000\foobar2000.exe")
$version = 298
For $i = 0 To 99 Step 1
    $path = "C:\Users\spunit\AppData\Local\Discord\app-0.0." & $version + $i & "\Discord.exe"
    If FileExists($path) Then
        Run($path)
        ExitLoop
    EndIf
Next
Run("C:\Portables\Firefox\FirefoxPortable.exe")



Sleep(10000)
WinMove("- Mozilla Firefox", "", 205, 0, 1214, 1047)
Sleep(100)
MouseClick("left", 1300, 15, 1, 10)
Sleep(100)
MouseClick("left", 1130, 275, 1, 10)
Sleep(100)
MouseClick("left", 930, 105, 1, 10)
Sleep(100)
Send("#{m}")

Sometimes it skips to click and move mouse right after Key Manager starts. Almost always it skips everything after the last run.

This type of script were never an issue with Windows 7... Any thoughts?

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
×
×
  • Create New...