Juno_okyo

GUI Title Effect

Dec 3rd, 2014
468
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 1.33 KB | None | 0 0
  1. #region
  2. #AutoIt3Wrapper_UseUpx=Y
  3. #AutoIt3Wrapper_Compression=4
  4. #AutoIt3Wrapper_Icon=E:\wamp\www\favicon.ico
  5. #AutoIt3Wrapper_Res_Comment=Coded by Juno_okyo
  6. #AutoIt3Wrapper_Res_Description=Coded by Juno_okyo
  7. #AutoIt3Wrapper_Res_Fileversion=1.0.0.0
  8. #AutoIt3Wrapper_Res_ProductVersion=1.0.0.0
  9. #AutoIt3Wrapper_Res_LegalCopyright=(c) 2014 by Juno_okyo's Blog
  10. #AutoIt3Wrapper_Res_Field=ProductName|Juno_okyo's Production
  11. #AutoIt3Wrapper_Res_Field=ProductVersion|1.0.0.0
  12. #AutoIt3Wrapper_Res_Field=CompanyName|J2TeaM
  13. #endregion
  14.  
  15. ; Includes
  16. #include <Misc.au3>
  17. #include <GUIConstantsEx.au3>
  18. #include <WindowsConstants.au3>
  19.  
  20. ; Only One Instance
  21. _Singleton(@ScriptName)
  22.  
  23. ; Options
  24. #NoTrayIcon
  25. Opt('WinTitleMatchMode', 2)
  26. Opt('GUIOnEventMode', 1)
  27. Opt('GUICloseOnESC', 0)
  28.  
  29. ; Script Start - Add your code below here
  30. #Region ### START Koda GUI section ### Form=
  31. Global $MainForm = GUICreate("AutoIt Title Effect by Juno_okyo ", 330, 200, -1, -1)
  32. GUISetFont(12, 400, 0, "Arial")
  33. GUISetOnEvent($GUI_EVENT_CLOSE, "MainFormClose")
  34. GUISetState(@SW_SHOW)
  35. #EndRegion ### END Koda GUI section ###
  36.  
  37. AdlibRegister('title_effect', 250)
  38.  
  39. While 1
  40.     Sleep(100)
  41. WEnd
  42.  
  43. Func title_effect()
  44.     Local $title = WinGetTitle($MainForm)
  45.     WinSetTitle($MainForm, '', StringMid($title, 2) & StringMid($title, 1, 1))
  46. EndFunc
  47.  
  48. Func MainFormClose()
  49.     Exit
  50. EndFunc
Add Comment
Please, Sign In to add comment