Jump to content

tomagucci

Active Members
  • Posts

    33
  • Joined

  • Last visited

tomagucci's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. ????? how does that do anything....
  2. blah, so i have to use my own gui? there is no @ command like @crlf?
  3. just like it says, is there anyway to center text in msgbox or inputbox? thanks
  4. okay so i have a vitrual machine which is programmed to run certain programs and such through mouseclick, I check on it periodically but if i happen to move the mouse slightly when it is running, it will miss the point that it is supposed to click and the entire process is ruined. I want a a way so that if i open my virtual machine it wont even let me use my regular mouse, only use mouseclick function to move around during a certain period of the script. does that make sense?
  5. but when i use mousetrap doesnt that prevent me from using mouseclick?
  6. I am doing some things that require mouse click and I have an incredibly sensitive 1500 dpi gaming mouse that will move at the slightest vibration, is there any way that when I am running my script i can disable my actual mouse for a period of time? Does that even sound feasible? any help would be great. thanks
  7. i am testing it on windows classic theme. it works with the _guitooltip command but not with the tooltip udf
  8. dont know how to use the functions in association with tooltip, they dont seem to modify anything, i need it to be tooltip and not a guibutton or anything
  9. blah and i cant have multiple tool tips either... geeze.... anyone got a solution?
  10. okay wait, what if i want the tool tip to show multiple things but i only want one of the things within the tool tip to be a different color like tooltip ("haha"& $var) but I want haha in black and var in blue?
  11. hmmm.... that is weird, I get white background with black text no matter what value i change the colors to.... is it because Im on vista? edit... i just tried it on my vitrual machine running xp and it works. wow... hmm i guess vista wont let me do it??
  12. hmm.. that doesnt seem to work for me. does it work for you?
  13. does anyone know how to change the text color of tooltip? is it through _GUIToolTip_SetTipTextColor? because I cant seem to get it to work, any help would be greatly appreciated. Thanks
  14. well I figured out what the problem was in my script, I wanted to open one timer, count down, close it then open another. here is the complete dual timers if anyone is interested. pretty cool if i do say so myself. #include <GUIConstants.au3> #include <Date.au3> Global $timer = TimerInit() Global $timer2 = TimerInit() Global $Secs, $Mins, $Hour, $Time, $Time2, $Secs2, $Mins2, $Hour2 Dim $SleepTime = 43000 Dim $SleepTime2 = (43000) Func SleepTimer() AdlibEnable("Timer", 50) Create() While winexists ($sleeptimer) $sTime= $time $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE GUIDelete ($sleeptimer) Return EndSelect If $sTime = "00:00:00" Then GUIDelete ($Sleeptimer) Return EndIf Wend Timer() sleep ($SleepTime) EndFunc func Create() Global $sleeptimer = GUICreate("Sleep Time Left (Session 1)",240, 50) GUICtrlCreateLabel("00:00:00", 10,10) GUISetState(@SW_Show, $sleeptimer) EndFunc Func Timer() _TicksToTime($SleepTime - Int(TimerDiff($Timer)), $Hour, $Mins, $Secs ) Global $a = Int(TimerDiff($Timer)); save how much is subtracted through TimerDiff *This was the Key* Local $sTime = $Time; save current time to be able to test and avoid flicker.. $Time = StringFormat("%02i:%02i:%02i", $Hour, $Mins, $Secs) If $sTime <> $Time Then ControlSetText("Sleep", "", "Static1", $Time) EndFunc;Timer 1 Func SleepTimer2() AdlibEnable("Timer2", 50) Create2() While WinExists ($sleeptimer2) $sTime2 = $time2 $msg4 = GUIGetMsg() Select Case $msg4 = $GUI_EVENT_CLOSE GUIDelete ($sleeptimer2) Return EndSelect If $sTime2 = "00:00:00" Then GUIDelete ($sleeptimer2) Return EndIf Wend Timer2() sleep ($SleepTime2) EndFunc func Create2() Global $SleepTimer2 = GUICreate ("Sleep Time Left (Session 2)", 240,50) GUICtrlCreateLabel("00:00:00", 10,10) GUISetState(@SW_Show, $sleeptimer2) EndFunc Func Timer2() _TicksToTime(($SleepTime2 +$a)- Int(TimerDiff($timer2)), $Hour2, $Mins2, $Secs2) Local $sTime2 = $Time2; save current time to be able to test and avoid flicker.. $Time2 = StringFormat("%02i:%02i:%02i", $Hour2, $Mins2, $Secs2) If $sTime2 <> $Time2 Then ControlSetText("Sleep", "", "Static1", $Time2) EndFunc;==>Timer2 dunno if anyone else would ever need such a thing, but yeah, wanted to share with everyone because I was excited that it was the first real thing that I have accomplished in Autoit edit: little question, does anyone know how to center the "00:00:00" text?
  15. I think the problem is in the _tickstotime fucntion, in that timerdiff calls upon the former number... is there anyway to get around this?
×
×
  • Create New...