Jump to content

Script randomly times itself out


Recommended Posts

HotKeySet("{1}","_C1")
HotKeySet("{4}","_C2")
HotKeySet("{3}","_C3")
HotKeySet("{2}","_C4")

HotKeySet("{esc}", "_Terminate")






Func _C1()

MouseClick("right",885,186,1,1)
Sleep(100)
MouseClick("left",868,289,1,1)
sleep(200)
MouseClick("left",994,112,1,1)

EndFunc


Func _C2()

MouseClick("left",1601,839,1,1)

EndFunc




Func _c3()

MouseClick("left",1676,1048,1,1)
;Sleep(200)
;MouseClick("left",1586,903,1,1)

sleep(200)
EndFunc

Func _c4()
MouseClick("right",1598,833,1,1)
Sleep(200)
MouseClick("left",1608,933,1,1)
sleep(200)


EndFunc

Func _Terminate()

    Exit

EndFunc

While 1
    Sleep(1000)
WEnd

that is my code and its extremely simple, however it will shut itself down at time 117.4 and the rogue tray icon will be there until i move my cursor above it and then it disappears.

 

this is in the bottom

 

>"E:\AutoIt3\SciTE\..\AutoIt3.exe" "E:\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.au3" /run /prod /ErrorStdOut /in "C:\Users\Jeff\Desktop\Au3\project.au3" /UserParams    
+>21:10:18 Starting AutoIt3Wrapper v.17.224.935.0 SciTE v.3.7.3.0   Keyboard:00000409  OS:WIN_10/  CPU:X64 OS:X64  Environment(Language:0409)  CodePage:0  utf8.auto.check:4
+>         SciTEDir => E:\AutoIt3\SciTE   UserDir => C:\Users\Jeff\AppData\Local\AutoIt v3\SciTE\AutoIt3Wrapper   SCITE_USERHOME => C:\Users\Jeff\AppData\Local\AutoIt v3\SciTE 
>Running AU3Check (3.3.14.2)  from:E:\AutoIt3  input:C:\Users\Jeff\Desktop\Au3\project.au3
+>21:10:18 AU3Check ended.rc:0
>Running:(3.3.14.2):E:\AutoIt3\autoit3.exe "C:\Users\Jeff\Desktop\Au3\project.au3"    
--> Press Ctrl+Alt+Break to Restart or Ctrl+Break to Stop
>Exit code: 0    Time: 117.4

 

Link to comment
Share on other sites

I have to imagine whatever else you are doing while this script is running is sending or warranting that the user press ESC or ctrl+break (since this script doesnt end, or do anything but make stuff available... and ran for the last 5 minutes I was watching football).  >Exit code: 0    Time: 328.4

And tray icon artifacts are a windows problem, not an autoit problem.  I'd guess you are magically refreshing that control with a mouseover.

Edited by iamtheky

,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

Link to comment
Share on other sites

It's just stating it was a clean exit...exit code 0 is default.

Add a consolewrite in your _terminate function, and another at the bottom of the script...with diff text, so you can see exactly where it's exiting.

IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.
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...