Jump to content

RandomClown

Member
  • Posts

    8
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United States

About RandomClown

RandomClown's Achievements

0

Reputation

  1. Thanks, I will see about installing the code into the app.
  2. Is there a way to make AutoIT check the speed of the processor? [excluding the power saving feature] I want it to edit a settings file & put in the speed. thanks
  3. OMG I found the problem!! command($title, , 'Button2', 'IsEnabled', '') **TO** command($title, '', 'Button2', 'IsEnabled', '') got to have the '' If you didnt know, use that to help other users in the future. W00T!
  4. thanks for the reminder. I forgot I was on a coding forum. hmm. Still not working. I am getting a Line -1: error. **EDIT** I read it wrong. It said Line -1:, not Line: -1 It crashes after 2 seconds... I wonder where that is. ControlCommand is a command right? can commands be used as umm... ..forgot the term.. as a comparison? [whiles, ifs, do untils, !='s, other stoofs] $title = 'setup' Do Sleep(1000) WinActivate($title) Until WinActive($title) sleep(2000) Do Sleep(200) Until ControlCommand($title, , 'Button2', 'IsEnabled', '') ControlClick($title, "", "[CLASS:Button; INSTANCE:2]")
  5. thanks I am also trying this for buttons disabled while installing: Do Sleep(200) Until ControlCommand($title, , 'Button2', 'IsEnabled', '') ControlClick($title, "", "[CLASS:Button; INSTANCE:2]") It keeps crashing at the until. I want to make it wait until it is enabled. Did I use the wrong code? - The window is called setup; I used $title you guys showed me. - The button is named Button2,
  6. Thanks for the welcome! Hey thanks for the info guys, I just learned a few things from your responses. MHz: Single line If...Then... are allowed though your mention of removing 3 lines is beyond my understanding to answer with the information supplied. Oops! Did I write 3? I meant a lot. This is what I wrote before revisiting this thread: $i = 0 While $i <= 60 $i = $i + 1 Sleep(1000) If WinActive("setup") Then ExitLoop EndIf WinActivate("setup") WEnd WinWaitActive("setup") ControlClick("setup", "", "[CLASS:Button; INSTANCE:##]") WinWaitClose("setup") Exit This is way more than 3 lines..I meant a lot The code you wrote is beyond my understanding. I made the code on 1 line before & I got error messages. Is there a way to make it all on 1 line? For now, I will replace my script with Do Untils
  7. oooohhh that could stand alone? I thought it was a checking thingy for If() funcs. AutoIT is more powerful then I thought. Thanks a lot! EDIT [not to double post] How would I set 2 conditions in a While statement? - There is the i++ thing [something like that] I saw in the very useful help file - Where is the &&? I want to set a While() with these conditions: - Run at most 10 times - Check if "Some Window" is up ...hmm I just saw this right now: "ExitLoop". I could do an If("Some Window" is up){ExitLoop} [of course in AutoIT language], but I want to cut off 3 lines from the tiny check script if possible.
  8. Hello, I have been over the internet for a while now, & I didnt see how to focus on a window. Is there no way to do it? Or are my eyes bad from hours of reading? Since I didnt see it, I might have to do this instead; I wanted to write a little script that will: * Perform a "IF WinActive()" check 10 times, once per second. - If the window was active during the check, do a Goto to get out of the messy script & goto the main script. - If the window did not focus during the check, do that code then goto the script: MouseMove(@DesktopWidth/2, @DesktopHeight/2-30, 0) MouseClick("primary") ima go to sleep now. ive been reading & typing all day.. thanks for reading.
×
×
  • Create New...