Jump to content

buzz44

Active Members
  • Posts

    1,349
  • Joined

  • Last visited

Everything posted by buzz44

  1. Why do you want to do the whole desktop? Do you want to do what Windows does when you click "Log Off" and the screen fades to greyscale? If so, I think you might be able to take a screenshot of the screen, apply it to be on top and then fade it to greyscale. How fast can you do the screen in C++/#?
  2. Perhaps storing the current mouse position, then use MouseMove/Click etc, to move the mouse to another location, perform its action, then return the mouse back to its original position is what you want?
  3. $Number = 232 MsgBox(0, "Result", $Number / 100)Fixed syntax error + simplified Paulie .
  4. Thanks ^^. Since my departure I have began to learn C++ and VB.NET and I felt I needed to return to my AutoIt roots .
  5. For those wishing to still be able to use Task Manger after running the script above, and not realising it disables it. Use... RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System" , "DisableTaskMgr", "REG_DWORD", 00000000)
  6. WinSetState("ZetaBase", "", @SW_SHOWNORMAL)Are you sure you want this in the While loop ?
  7. What exactly is the problem?
  8. Thanks! If I get back into AutoIt as I was back then I might decide to finish the version on my desktop :">. Atm I have my Final Exams for the end of school so not much time to do anything.
  9. I never did figure that bug out. As far as the code is concerned it only adds to the amount travelled when the mouse is in motion. Perhaps the mouse does a dance while its hibernating O_o lol?
  10. Thanks! Even though it is 6 months old . I started working on a making an All-In-One function for the window sliding but it remains unfinished collecting dust on my desktop lol.
  11. We encourage you to use the helpfile first before trying to forums. The helpfile is very good and has working example that even the noobest of AutoIters can understand -______-.
  12. RTFM < Read the fluffy manual, nice version. In otherwords, read the helpfile. It contains EVERYTHING you need to know. It lists all the functions available to AutoIt and more importantly it has an example for EVERYONE. Should be located at Start > Programs > AutoIt > AutoIt Help File
  13. Np . Alternatively you could do it this way... $Password=InputBox("Caption", "Your password:", "", "*") If @error Then Exit If $Password = "Fruitloop" Or $Password = "Miniwheat" Or $Password = "Cheerio" Then Send("{ALT}+{TAB}") Sleep(4000) HotKeySet("d", "Terminate") While 1 TrayTip("Title Here", "Content Here", 10) Send(Put Button Here) Sleep(Put Sleep Time Here) WEnd EndIf Func Terminate() Exit EndFunc That way the code is contained inside the loop and no "Else" is used. Because there is no code after the EndIf that isn't located outside a function, it will exit. If Blah ;Stuff EndIf Exit Is the same as... If Blah ;Stuff EndIf If there is no more code following.
  14. Perhaps your not understanding. I used the msgbox's as an example. Change the msgbox's to what you want your script to do depending on whether the password was correct or incorrect. Its not that hard... If $Password = "Fruitloop" Or $Password = "Miniwheat" Or $Password = "Cheerio" Then MsgBox(0, "Test", "The password entered was correct") MsgBox(0, "Do something", "Do something when password is right") Else ; THE PASSWORD WAS WRONG Exit EndIf
  15. ;password right ;password unright You were supposed to edit out those comments an put your code lol, try this... $Password=InputBox("Caption","Your password:","","*") If @error Then Exit If $Password = "Fruitloop" Or $Password = "Miniwheat" Or $Password = "Cheerio" Then MsgBox(0, "Test", "The password entered was correct") MsgBox(0, "Do something", "Do something when password is right") Else MsgBox(0, "Test", "The password entered was incorrect") MsgBox(0, "Do something", "Do something when password is wrong") EndIf Send("{ALT}+{TAB}") Sleep(4000) HotKeySet("d", "Terminate") While 1 TrayTip("Title Here", "Content Here", 10) Send(Put Button Here) Sleep(Put Sleep Time Here) WEnd Func Terminate() Exit EndFunc
  16. Find out what title the window changes after each button has been pressed, then simply check what it changed to. Ofcourse this won't work if the title doesn't change lol.
  17. $WS_EX_TOOLWINDOW: A tool window does not appear in the taskbar or in the dialog box that appears when the user presses ALT+TAB. If a tool window has a system menu, its icon is not displayed on the title bar. However, you can display the system menu by typing ALT+SPACE. Eg. #include <GUIConstants.au3> GUICreate("Test GUI", -1, -1, -1, -1, -1, $WS_EX_TOOLWINDOW) GUISetState () While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop Wend
  18. Why not just add a Sleep()?
  19. Put a msgbox after lines 8 and 9. The first should appear straight after line 8 and then the second should appear when the window exists.
  20. Well if its pausing 15 seconds directly after line 8 doesn't that mean that the window doesn't exist for 15 seconds until its passed that line?
  21. Pretty sure you can only call one function with AdlibEnable() and if you call a new one it over-rides the previous called one. Looks like you will have to tackle this another way.
  22. $Input2 = GUICtrlCreateInput ("Text", 90, 20, 120, 20) $Text = GUICtrlRead($Input2) & @CRLF
×
×
  • Create New...