InjuredDeer Posted November 21, 2017 Share Posted November 21, 2017 expandcollapse popupHotKeySet("{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 More sharing options...
iamtheky Posted November 21, 2017 Share Posted November 21, 2017 (edited) 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 November 21, 2017 by iamtheky ,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-. |(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/ (_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_) | | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) ( | | | | |)| | \ / | | | | | |)| | `--. | |) \ | | `-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_| '-' '-' (__) (__) (_) (__) Link to comment Share on other sites More sharing options...
InjuredDeer Posted November 21, 2017 Author Share Posted November 21, 2017 appreciate the response, i changed the the hotkey for exit, its just so strange. ill try that and let you know Link to comment Share on other sites More sharing options...
InjuredDeer Posted November 21, 2017 Author Share Posted November 21, 2017 (edited) same thing made it to 139.5 and timed out, happened twice now, any ideas what error std out means? Edited November 21, 2017 by InjuredDeer Link to comment Share on other sites More sharing options...
jdelaney Posted November 21, 2017 Share Posted November 21, 2017 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now