Jump to content

timsta97

Active Members
  • Posts

    32
  • Joined

  • Last visited

timsta97's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. If you don't know the control ID, you can always do something like "[TEXT: text]" in its place. Here is an example ControlClick("Form2", "", "[TEXT:View]") This is also in the help file, so before you post on the form, you may want to try to use that.
  2. You're right; it isn't necessary, before I learned C++ and C# I never used the double equals, but I always put it in because I now use C# mostly. It doesn't hurt to put it in; it affects the code in no way whatsoever.
  3. I think there are a couple things wrong with your script. Did you mean to put Exit before the first EndIf Statement? The rest of your script will be unreachable. You could also use the Else statement instead of another if statement. It isn't necessary when there are only two buttons. Here are my adjustments: $answer = MsgBox(4, "!!!!!", "Running a lot applications together you task manager has corrupted, Would you like to restart now?") If $answer == 7 Then MsgBox(0, "!!!!!", "Restart soon or your computer will corrupt") Else Shutdown(2) EndIf Also, the Exit command is not required.
  4. Thanks for the help everybody, but I figured it out. I used _Date_Time_SetLocalTime() instead of _Date_Time_SetSystemTime().
  5. I stumbled across _Date_Time_Format(). Can I use this to correct the time?
  6. The problem is in the synchronization of my clock. My school's network clock is off by six minutes, so every time I synchronize, it changes the clock back. I just want the little script on my desktop to click whenever it synchronizes. I accidentally left $tCur = _Date_Time_GetSystemTime() in the code; it isn't necessary, so I got rid of it.
  7. My computer clock is always about 6 minutes off, and when I reset it goes back eventually. I created a script that would set the clock for me, so I wouldn't have to keep setting it by hand, but the hour gets set to about five hours earlier. If @HOUR + 5 is greater than 23, it doesn't set the clock at all. What am I doing wrong? #include <Date.au3> $tCur = _Date_Time_GetSystemTime() $min = @MIN + 6 $hour = @HOUR if $min > 59 Then $min = $min - 59 $hour = $hour + 1 EndIf $tNew = _Date_Time_EncodeSystemTime(@MON, @MDAY, @YEAR, $hour, $min, @SEC, @MSEC) _Date_Time_SetSystemTime(DllStructGetPtr($tNew))
  8. Wow. I can't believe I didn't think off that. Thanks.
  9. I know how to get the size of the window with WinGetPos(), but that returns the size of the whole window (title bar and border included). How do I get just the size of the window without the title and border?
  10. Does that return the file name?
  11. How can I get the file that is currently selected in windows explorer?
  12. Thanks everybody, I never realized this would get so many responses.
  13. What is your hardware configuration?
  14. I agree, but I would like to know what other people have gotten
  15. About how long would it take to count from 1 to 10,000,000 using a FOR loop?
×
×
  • Create New...