Canasian Posted October 24, 2006 Share Posted October 24, 2006 hey.. I'm dumb lol could someone plz help me with this? It looks really easy but i'm dumb and can't find it.. i've got the zipped version of autoit cuz i'm at school and the help file doesn't work.. but i've looked through the online documentation like a million times and still can't figure it out this is a script to take a practice test for me and i want to be able to set f1 to start the script and f2 to end it.. and it would be sweet if there was a way to make it faster is there a different way to loop it that would be better too? I tried making the mouse move instant but then sometimes it wouldn't click.. O well thanks for any help expandcollapse popupHotKeySet("{F1}","Start") HotKeySet("{F2}","End") ;Makes Examview Window Active WinActivate("ExamView Player") WinWaitACtive("ExamView Player") Do ;Problem 1 MouseClick("left", 56, 165, 1) Sleep("500") Mouseclick("left", 87, 948, 1) Sleep("500") Send("{ENTER}") ;Problem 2 MouseClick("left", 56, 183, 1) Sleep("500") Mouseclick("left", 87, 948, 1) Sleep("500") Send("{ENTER}") ;Problem 3 MouseClick("left", 56, 201, 1) Sleep("500") Mouseclick("left", 87, 948, 1) Sleep("500") Send("{ENTER}") ;Problem 4 MouseClick("left", 56, 218, 1) Sleep("500") Mouseclick("left", 87, 948, 1) Sleep("500") Send("{ENTER}") Until False Exit Link to comment Share on other sites More sharing options...
Paulie Posted October 24, 2006 Share Posted October 24, 2006 expandcollapse popupHotKeySet("{F1}","Toggle") HotKeySet("{ESC}", "_Exit") Global $NoWork While 1 ToolTip("Waiting For Window",0,0) ;Makes Examview Window Active WinActivate("ExamView Player") WinWaitActive("ExamView Player") Do ToolTip("Active",0,0) Problem 1 MouseClick("left", 56, 165, 1) Sleep("500") Mouseclick("left", 87, 948, 1) Sleep("500") Send("{ENTER}") ;Problem 2 MouseClick("left", 56, 183, 1) Sleep("500") Mouseclick("left", 87, 948, 1) Sleep("500") Send("{ENTER}") ;Problem 3 MouseClick("left", 56, 201, 1) Sleep("500") Mouseclick("left", 87, 948, 1) Sleep("500") Send("{ENTER}") ;Problem 4 MouseClick("left", 56, 218, 1) Sleep("500") Mouseclick("left", 87, 948, 1) Sleep("500") Send("{ENTER}") Until $NoWork = 0 Wend Func Toggle() $NoWork = Not $NoWork While $NoWork Tooltip("Paused", 0,0) Sleep(1000) WEnd EndFunc Func _Exit() Exit EndFunc You Were on the right track, but your hotkeysets were not linked to functions, therefor they would have errored I set this with a toggle, so you can turn on/off with just the 'F1' Key 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