Jump to content

star2

Active Members
  • Posts

    456
  • Joined

  • Last visited

About star2

  • Birthday 05/05/1982

Profile Information

  • Location
    Searching !!
  • Interests
    Basketball, PC Games, Autoit, Movies.

star2's Achievements

Universalist

Universalist (7/7)

0

Reputation

  1. interested in Source Scripts only.
  2. I compiled your script and it's OK is this the whole script? or as MsCreatoR said are you running another script that runs this one?
  3. you're welcome at this point your best friend is the Autoit Help file and the Autoit Forum Search search them a lot and you'll get valuable info.
  4. If FileExists ("c:\windows") = 1 Then MsgBox (-1, "test", "Dir Exists !!!") ElseIf FileExists ("c:\windows") = 0 Then MsgBox (-1, "test", "Dir Does not Exist !!!") EndIf from the help file:
  5. how can I use this with tray menus? ----------- Edit : sorry never mind found it in the help file !!
  6. well Smashly already provided you with the example ! from smashly script: Case $Tray4 ShellExecute("explorer.exe", "/e," & @SystemDir)
  7. this is the function form as you know WinMove ( "title", "text", x, y [, width [, height[, speed]]])oÝ÷ ÚÊ"*.¦ëmì"Ú0ªê-¶+ez«¨µÊ+­ç-,¨¹Æ§æ¯zØ^Â)Ý£ ®¢Û^²Ú®¢×¦¦Ü¬¢lvøzÚ2¢è¬¶h¹¹^rØ^Â)Ý£b¶WºÚ"µÍÚ[[ÝH ][ÝÔÚÜÝ]É][ÝË ][ÝÉ][ÝËL Î for the window title you can use the AutoIt Window Info tool
  8. http://msdn2.microsoft.com/en-us/default.aspx and try this program http://www.nirsoft.net/utils/dll_export_viewer.html
  9. RegRead (your registry key here) If @error Then action -1 (here you put what happens when the key is missing) Else action - 2 (here you put what happens when the key is available) EndIf
  10. just like BigDod said check the example: #include <GUIConstants.au3> Opt('TrayMenuMode', 1) $main = GUICreate("Test", 200, 80) $go = GUICtrlCreateButton ("Minimize to Tray", 10, 10, 150,25) $exit = GUICtrlCreateButton ("exit", 10, 40, 150,25) $tray_hide = TrayCreateItem ("Hide Gui") TrayCreateItem ("") $tray_Restore = TrayCreateItem ("Restore Gui") TrayCreateItem ("") $tray_exit = TrayCreateItem ("Exit") TrayItemSetState ($tray_Restore,$gui_disable) GUISetState () While 1 $msg = GUIGetMsg() $msgt = TrayGetMsg() _hide() _show() _exit() Wend Func _hide() If $msg = $go Then DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $main, "int", 100, "long", 0x00090000);fade-out TrayItemSetState ($tray_Restore,$gui_enable) TrayItemSetState ($tray_hide,$gui_disable) EndIf If $msgt = $tray_hide Then DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $main, "int", 100, "long", 0x00090000);fade-out TrayItemSetState ($tray_Restore,$gui_enable) TrayItemSetState ($tray_hide,$gui_disable) EndIf EndFunc Func _show() If $msgt = $tray_Restore Then TrayItemSetState ($tray_Restore,$gui_disable) TrayItemSetState ($tray_hide,$gui_enable) DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $Main, "int", 200, "long", 0x00080000);fade-in EndIf EndFunc Func _exit() If $msg = $exit Or $msg = $gui_event_close Or $msgt = $tray_exit Then DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $Main, "int", 500, "long", 0x00050010);implode Exit EndIf EndFunc
  11. check this example from the (==> Welcome to AutoIt 1-2-3 <== A ) lessons the post is by our Valuater ;Animate Display *nice* addition ; Author Raindancer $hwnd = GUICreate("Animate Window", 300, 200) GUICtrlCreateLabel("Fantasic... You Have PASSED!!!", 50, 50, 200, 50) GUICtrlSetFont( -1, 16, 800) DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $hwnd, "int", 1000, "long", 0x00080000);fade-in GUISetState() DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $hwnd, "int", 1000, "long", 0x00090000);fade-out DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $hwnd, "int", 1000, "long", 0x00040001);slide in from left DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $hwnd, "int", 1000, "long", 0x00050002);slide out to left DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $hwnd, "int", 1000, "long", 0x00040002);slide in from right DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $hwnd, "int", 1000, "long", 0x00050001);slide out to right DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $hwnd, "int", 1000, "long", 0x00040004);slide-in from top DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $hwnd, "int", 1000, "long", 0x00050008);slide-out to top DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $hwnd, "int", 1000, "long", 0x00040008);slide-in from bottom DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $hwnd, "int", 1000, "long", 0x00050004);slide-out to bottom DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $hwnd, "int", 1000, "long", 0x00040005);diag slide-in from Top-left DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $hwnd, "int", 1000, "long", 0x0005000a);diag slide-out to Top-left DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $hwnd, "int", 1000, "long", 0x00040006);diag slide-in from Top-Right DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $hwnd, "int", 1000, "long", 0x00050009);diag slide-out to Top-Right DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $hwnd, "int", 1000, "long", 0x00040009);diag slide-in from Bottom-left DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $hwnd, "int", 1000, "long", 0x00050006);diag slide-out to Bottom-left DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $hwnd, "int", 1000, "long", 0x0004000a);diag slide-in from Bottom-right DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $hwnd, "int", 1000, "long", 0x00050005);diag slide-out to Bottom-right DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $hwnd, "int", 1000, "long", 0x00040010);explode Sleep(1000) DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $hwnd, "int", 1000, "long", 0x00050010);implode #define AW_HOR_POSITIVE 0x00000001 #define AW_HOR_NEGATIVE 0x00000002 #define AW_VER_POSITIVE 0x00000004 #define AW_VER_NEGATIVE 0x00000008 #define AW_CENTER 0x00000010 #define AW_HIDE 0x00010000 #define AW_ACTIVATE 0x00020000 #define AW_SLIDE 0x00040000 #define AW_BLEND 0x00080000 this helped me a lot in making simple window animation
  12. see the help file for GUISetBkColor #include <GuiConstants.au3> $Main = GUICreate ("test", 200,150,-1,-1,$WS_POPUP+$WS_THICKFRAME) GUISetBkColor (0x80FFFF) GUISetState () While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop WEnd
  13. don't worry, you'll manage to understand how the various of scripts work !! it will take time (I'm still learning and I'm loving it) as for the topic I linked to you try to read the topic itself cause the author of the script did explain about it and you can read the other replies and try to ask questions even there about how to use the script !!
  14. Check this out ! my advice search the forum before asking !!
×
×
  • Create New...