Jump to content

AutoIT Site/Forum Jumper (Tray)


AlmarM
 Share

Recommended Posts

#include <Constants.au3>
#NoTrayIcon

Opt("TrayMenuMode", 1)

$Site_Jump = TrayCreateMenu("Site Jump")
$Forum_Home = TrayCreateItem("Forum Home", $Site_Jump)
$Search = TrayCreateItem("Search", $Site_Jump)
$Help = TrayCreateItem("Help", $Site_Jump)
TrayCreateItem("")
$Forum_Jump = TrayCreateMenu("Forum Jump")
$General = TrayCreateMenu("General", $Forum_Jump)
$Announcements_and_Site_News = TrayCreateItem("Announcements and Site News", $General)
$Chat = TrayCreateItem("Chat", $General)
TrayCreateItem("", $Forum_Jump)
$AutoIT_v3 = TrayCreateMenu("AutoIT v3", $Forum_Jump)
$General_Help_and_Support = TrayCreateItem("General Help and Support", $AutoIT_v3)
$Graphical_User_Interface_GUI_Help_and_Support = TrayCreateItem("Graphical User Interface (GUI) Help and Support", $AutoIT_v3)
$ActiveX_COM_Help_and_Support_AutoItX = TrayCreateItem("ActiveX/COM Help and Support (AutoItX)", $AutoIT_v3)
$Example_Scripts = TrayCreateItem("Example Scripts", $AutoIT_v3)
TrayCreateItem("", $Forum_Jump)
$Bug_Reports = TrayCreateMenu("Bug Reports", $Forum_Jump)
$v3_Bug_Reports_Open = TrayCreateItem("v3 Bug Reports (Open)", $Bug_Reports)
$v3_Bug_Reports_Fixed = TrayCreateItem("v3 Bug Reports (Fixed)", $Bug_Reports)
$v3_Bug_Reports_No_Bug = TrayCreateItem("v3 Bug Reports (No Bug)", $Bug_Reports)
TrayCreateItem("", $Forum_Jump)
$Other = TrayCreateMenu("Other", $Forum_Jump)
$AutoIt_Feature_Requests = TrayCreateItem("AutoIT Feature Requests", $Other)
$Developer_Chat = TrayCreateItem("Developer Chat", $Other)
TrayCreateItem("", $Forum_Jump)
$AutoIT_v2 = TrayCreateMenu("AutoIT v2", $Forum_Jump)
$AutoIt_v2_Help_and_Support = TrayCreateItem("AutoIt v2 Help and Support", $AutoIT_v2)
TrayCreateItem("")
$About = TrayCreateItem("About")
TrayCreateItem("")
$Exit = TrayCreateItem("Exit")

TraySetState()
While 1
    $nMsg = TrayGetMsg()
    Select
    Case $nMsg = $Exit
        Exit
    Case $nMsg = $Forum_Home
        ShellExecute("http://www.autoitscript.com/forum/index.php?act=idx")
    Case $nMsg = $Search
        ShellExecute("http://www.autoitscript.com/forum/index.php?act=Search")
    Case $nMsg = $Help
        ShellExecute("http://www.autoitscript.com/forum/index.php?act=Help")
    Case $nMsg = $Announcements_and_Site_News
        ShellExecute("http://www.autoitscript.com/forum/index.php?act=SF&s=&f=1")
    Case $nMsg = $Chat
        ShellExecute("http://www.autoitscript.com/forum/index.php?act=SF&s=&f=6")
    Case $nMsg = $General_Help_and_Support
        ShellExecute("http://www.autoitscript.com/forum/index.php?act=SF&s=&f=2")
    Case $nMsg = $Graphical_User_Interface_GUI_Help_and_Support
        ShellExecute("http://www.autoitscript.com/forum/index.php?act=SF&s=&f=10")
    Case $nMsg = $ActiveX_COM_Help_and_Support_AutoItX
        ShellExecute("http://www.autoitscript.com/forum/index.php?act=SF&s=&f=14")
    Case $nMsg = $Example_Scripts
        ShellExecute("http://www.autoitscript.com/forum/index.php?act=SF&s=&f=9")
    Case $nMsg = $v3_Bug_Reports_Open
        ShellExecute("http://www.autoitscript.com/forum/index.php?act=SF&s=&f=16")
    Case $nMsg = $v3_Bug_Reports_Fixed
        ShellExecute("http://www.autoitscript.com/forum/index.php?act=SF&s=&f=15")
    Case $nMsg = $v3_Bug_Reports_No_Bug
        ShellExecute("http://www.autoitscript.com/forum/index.php?act=SF&s=&f=18")
    Case $nMsg = $AutoIt_Feature_Requests
        ShellExecute("http://www.autoitscript.com/forum/index.php?act=SF&s=&f=4")
    Case $nMsg = $Developer_Chat
        ShellExecute("http://www.autoitscript.com/forum/index.php?act=SF&s=&f=7")
    Case $nMsg = $AutoIt_v2_Help_and_Support
        ShellExecute("http://www.autoitscript.com/forum/index.php?act=SF&s=&f=5")
    Case $nMsg = $About
        MsgBox(0, "About", "AutoIT Site/Forum Jumper" & @CRLF & "By: AlmarM")
    EndSelect
WEnd

Updated the script to a Tray :P

I only have a few questions :)

But Ill post them at the General Help and Support topic ;)

Minesweeper

A minesweeper game created in autoit, source available.

_Mouse_UDF

An UDF for registering functions to mouse events, made in pure autoit.

2D Hitbox Editor

A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.

Link to comment
Share on other sites

I could be wrong but I think You missed one in the Select.

Case $nMsg = $Bug_Reports
   ShellExecute("http://www.autoitscript.com/forum/index.php?act=SF&s=&f=3")
For the main Bug Reports page.

George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...