Advertisement
Guest User

Untitled

a guest
Dec 7th, 2018
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 12.50 KB | None | 0 0
  1. #include <FileConstants.au3>
  2. #include <WinAPIFiles.au3>
  3. #include <GDIPlus.au3>
  4. #include <GUIConstantsEx.au3>
  5. #include <WindowsConstants.au3>
  6. #include <WinAPISysWin.au3>
  7.  
  8. Opt("GUIOnEventMode", 1) ; Change to OnEvent mode
  9.  
  10. ; #FUNCTION# ====================================================================================================================
  11. ; Name ..........: OverlayWindow
  12. ; Description ...:  Throws up a child window with transparent background over current window
  13. ;
  14. ; Parameters :
  15. ;   $hwndParent         parent hwnd
  16. ;   $rectToHighlight    rect to draw (or if null, skip)
  17. ;   $rectForText    rect for textToWrite
  18. ;   $textToWrite    the text to write
  19. ; ===============================================================================================================================
  20. Func OverlayWindow($hwndParent, $rectToHighlight, $rectForText, $textToWrite)
  21.  
  22.    $style = $WS_POPUP
  23.    $exstyle = BitOR($WS_EX_TOPMOST, $WS_EX_TRANSPARENT, $WS_EX_LAYERED)
  24.  
  25.    $hGUI = GUICreate("transparent overlay", 420, 420, 0, 0, $style, $exstyle)
  26.    GUISetBkColor(0x112233)
  27.   _WinAPI_SetLayeredWindowAttributes($hGUI, 0x112233, 0, $LWA_COLORKEY)
  28.  
  29.    ConsoleWrite("**** $hGUI: " & $hGUI & @CRLF)
  30.  
  31.    GUISetOnEvent($GUI_EVENT_CLOSE, "OverlayWindow_Exit")
  32.    GUISetState(@SW_SHOW, $hGUI)
  33.  
  34.    $hGraphics = _GDIPlus_GraphicsCreateFromHWND($hGUI)
  35.    ConsoleWrite("**** $hGraphics : " & $hGraphics & @CRLF)
  36.    _GDIPlus_GraphicsSetSmoothingMode($hGraphics, $GDIP_SMOOTHINGMODE_HIGHQUALITY)
  37.  
  38.    $hPen = _GDIPlus_PenCreate(0xFFFFFFFF, 4)    ; Red
  39.  
  40.    If ($rectToHighlight <> Null) Then
  41.       _GDIPlus_GraphicsDrawRect($hGraphics, $rectToHighlight[0], $rectToHighlight[1], $rectToHighlight[2], $rectToHighlight[3], $hPen)
  42.    EndIf
  43.  
  44.    _GDIPlus_PenDispose($hPen)
  45.  
  46.    $hBrush = _GDIPlus_BrushCreateSolid(0xFFFFFFFF)  ; RED
  47.    $hFormat = _GDIPlus_StringFormatCreate()
  48.    $hFamily = _GDIPlus_FontFamilyCreate("Arial")
  49.    $hFont = _GDIPlus_FontCreate($hFamily, 9)
  50.    $tLayout = _GDIPlus_RectFCreate($rectForText[0], $rectForText[1], $rectForText[2], $rectForText[3])
  51.    $aInfo = _GDIPlus_GraphicsMeasureString($hGraphics, $textToWrite, $hFont, $tLayout, $hFormat)
  52.    _GDIPlus_GraphicsDrawStringEx($hGraphics, $textToWrite, $hFont, $aInfo[0], $hFormat, $hBrush)
  53.  
  54.    _GDIPlus_BrushDispose($hBrush)
  55.    _GDIPlus_StringFormatDispose($hFormat)
  56.    _GDIPlus_FontFamilyDispose($hFamily)
  57.    _GDIPlus_FontDispose($hFont)
  58.    _GDIPlus_GraphicsDispose($hGraphics)
  59.  
  60.    Return $hGUI
  61. EndFunc
  62.  
  63. Func OverlayWindow_Exit()
  64.    ConsoleWrite("* * * Exit event called" & @CRLF)
  65. EndFunc
  66.  
  67. Func Handle_Esc()
  68.    $Done = True
  69. EndFunc
  70.  
  71. ;-----------------------------------------------------------------
  72. ;Main()
  73.  
  74. _GDIPlus_Startup()
  75.  
  76. Global $Done = False
  77. Local $rect = [10, 10, 400, 400]
  78. Local $rectForText = [15, 15, 500, 500]
  79.  
  80. global $current = 1
  81. global $hGUI
  82.  
  83. global $act[11]
  84.  
  85. $act[1] = "Act 1 Exp Farming Zone: The Ledge"&@CRLF&"• Kill Hillock"&@CRLF&"• Get Frostbolt"&@CRLF&"• Get the Coast Waypoint, kill Hailrake on Tidal Island"&@CRLF&"• get Quicksilver Flask in town and Onslaught Support"&@CRLF&"• Enter Submerged Passage, look for Flooded Depths and kill the Dweller of the Deep"&@CRLF&"• Get Passive Skillpoint in town"&@CRLF&"• Enter Prison, get Added Lightning Damage"&@CRLF&"• Complete Trial of Ascendancy in Lower Prison"&@CRLF&"• Kill Brutus, progress to Ship Graveyard and get the Waypoint"&@CRLF&"• Look for Ship Graveyard Cave, get Allflame then get Cavern of Wrath Waypoint"&@CRLF&"• Travel to Ship Graveyard Waypoint and kill Fairgraves"&@CRLF&"• Go to town to get Passive Skillpoint, Flame Dash, Spell Totem Support & Arc"&@CRLF&"• Topaz = Iron Ring any dexterity (green) gem"&@CRLF&"• Craft &1 Lightning Wand/Sceptre (Topaz ring, blue wand/sceptre, orb of alteration) "&@CRLF&"• Put Arc & Onslaught Support & Added Lightning Damage in there"
  86. $act[2] = "Act 2 Exp Farming Zone: The Northern Forest"&@CRLF&"• Once in town, enter the Old Fields first"&@CRLF&"• Look for the Den, kill Great White Beast and get second Quicksilver in town"&@CRLF&"• Continue to Crossroads and get Waypoint"&@CRLF&"• Enter Chamber of Sins, complete Trial of Ascendancy on Level 2 and kill Fidelitas"&@CRLF&"• Go back to Crossroads, enter Broken Bridge and kill Kraityn"&@CRLF&"• Back to Crossroads once more, enter Fellshrine Ruins and Crypt"&@CRLF&"• Complete Trial of Ascendancy in Crypt"&@CRLF&"• Back to town, enter Riverways and get the Waypoint"&@CRLF&"• enter Wetlands, kill Oak and get Waypoint"&@CRLF&"• Go to Western Forest, Help Alira & Captain Arteri"&@CRLF&"• Look for Weaver's Chambers and kill Weaver"&@CRLF&"• Back in town, get Herald of Thunder and Faster Casting Support for flame dash "&@CRLF&"• Enter Lioneye's Watch and get Passive Skillpoint"&@CRLF&"• Get two Passive Skillpoints from Eramir in town"&@CRLF&"• Make your way to the Ancient Pyramid, kill Vaal Oversoul"
  87. $act[3] = "Act 3 Exp Farming Zone: The Docks"&@CRLF&"• Kill the Blackguards in City of Sarn and enter town"&@CRLF&"• Go to Slums, enter Crematorium, finish Trial of Ascendancy and kill Piety"&@CRLF&"• Get Sewer Key in town"&@CRLF&"• Go back to Slums, enter Sewers, get Waypoint, find three busts and get skillpoint in town"&@CRLF&"• Get Marketplace Waypoint and finish Trial of Ascendancy in Catacombs"&@CRLF&"• Enter Battlefront, get Waypoint and kill Captain Aurelianus"&@CRLF&"• Go to Docks and get Thaumetic Sulphite"&@CRLF&"• Back to Battlefront, enter Solaris Temple and talk to Lady Dialla"&@CRLF&"• Destroy the Undying Blockade in Sewers"&@CRLF&"• Enter Ebony Barracks, get Waypoint and kill General Gravicius"&@CRLF&"• Enter Lunaris Temple, kill Piety and get Skillpoint in town"&@CRLF&"• Get Imperial Gardens Waypoint and finish Trial of Ascendancy"&@CRLF&"• Go to Library and finish Siosa's quest"&@CRLF&"• You can now buy all unlocked gems at Siosa (currency needs to be in bag!)"&@CRLF&"• Get Lightning Penetration from Siosa "&@CRLF&"• Enter the Sceptre of God and kill Dominus"
  88. $act[4] = "Act 4 Exp Farming Zone: The Dried Lake"&@CRLF&"• Enter the Dried Lake, kill Voll and enter the Mines"&@CRLF&"• Free Deshret's Spirit in Mines Level 2, progress to Crystal Veins and get Waypoint"&@CRLF&"• Get Passive Skillpoint and Summon Stone Golem in town and optionally farm Dried Lake"&@CRLF&"• Complete the first Labyrinth, you can enter it through the Sarn Encampment"&@CRLF&"• Read up on the Lord's Labyrinth and Izaro to get an idea what's going on"&@CRLF&"• After finishing the Labyrinth, ascend to Elementalist and get Paragon of Calamity"&@CRLF&"• Go back to Crystal Veins, enter Kaom's Dream and kill Kaom"&@CRLF&"• Now enter Daresso's Dream and kill Daresso"&@CRLF&"• buy Cast when Damage taken in town"&@CRLF&"• Put your Arc setup into a 4L "&@CRLF&"• Replace your now-outdated weapon with a good sceptre or wand, the Spell Damage recipe can help"&@CRLF&"• Kill Piety in Belly of the Beast, and finally Malachai in the Harvest"
  89. $act[5] = "Act 5 Exp Farming Zone: The Chamber of Innocence"&@CRLF&"• Kill Overseer Krow and enter town"&@CRLF&"• Find the Miasmeter in Control Blocks and kill Justicar Casticus"&@CRLF&"• Get Stibnite Flask and Skillpoint in town"&@CRLF&"• Replace one Quicksilver Flask with Stibnite Flask and try to roll of Staunching on it"&@CRLF&"• Make your way to Templar Courts, kill Avarius and get a unique jewel in town"&@CRLF&"• Get Ruined Square Waypoint and optionally kill Utula to get Assassin's Haste in town"&@CRLF&"• Finish the quest in Reliquary and get Skillpoint in town"&@CRLF&"• Look for the Sign of Purity in Ossuary"&@CRLF&"• Kill Kitava on Cathedral Rooftop"&@CRLF&"• You will suffer a permanent -30% resistance penalty after this fight"&@CRLF&"• !!!Should have all gems for setup now!!!"
  90. $act[6] = "Act 6 Exp Farming Zone: The Southern Forest"&@CRLF&"• Clear the Twilight Strand to unlock Lilly as Skillgem Vendor"&@CRLF&"• Get Increased Duration "&@CRLF&"• Look out for or craft a second weapon to use"&@CRLF&"• Get to Mud Flats and kill the Dishonored Queen"&@CRLF&"• Enter Karui Fortress, kill Tukohama and get Skillpoint in town"&@CRLF&"• Finish Trial of Ascendancy in Prison and kill Shavronne"&@CRLF&"• Enter Prisoner's Gate, kill Abberath and get Skillpoint in town"&@CRLF&"• Get Riverways Waypoint"&@CRLF&"• Enter Wetlands, kill Puppet Mistress and get Skillpoint in town"&@CRLF&"• Light the Beacon and kill the Brine King"
  91. $act[7] = "Act 7 Exp Farming Zone: The Northern Forest"&@CRLF&"• Find the Silver Locket in Broken Bridge and get Basalt Flask in town"&@CRLF&"• Replace one Life Flask with Basalt Flask"&@CRLF&"• Enter Crossroads, get Waypoint then enter Crypt through Fellshrine Ruins"&@CRLF&"• Finish Trial of Ascendancy and find Maligaro's Map"&@CRLF&"• Go back to Crossroads and enter Chamber of Sins"&@CRLF&"• Kill Maligaro in Maligaro's Sanctum"&@CRLF&"• Finish Trial of Ascendancy in Chamber of Sins Level 2 and enter the Den"&@CRLF&"• Make your way to Ashen Fields and kill Greust, then get Skillpoint in town"&@CRLF&"• Get Northern Forest Waypoint and enter Dread Thicket"&@CRLF&"• Collect all Fireflies and kill Gruthkul, then get Skillpoint in town"&@CRLF&"• Find Kishara's Star in Causeway and get Skillpoint in town"&@CRLF&"• Get the Vaal City Waypoint, enter Temple of Decay and go back to town"&@CRLF&"• Finish the second Labyrinth and get Shaper of Desolation"&@CRLF&"• Get back to the Temple of Decay and kill Arakaali"
  92. $act[8] = "Act 8 Exp Farming Zone: The Harbour Bridge"&@CRLF&"• Enter the Toxic Conduits and kill Doedre"&@CRLF&"• Go for Quay first, find Ankh of Eternity, kill Tolman and get Skillpoint in town"&@CRLF&"• Kill the Gemling Legionnaires in Grain Gate and get Skillpoint in town"&@CRLF&"• Enter Solaris Temple, get Sun Orb then enter Solaris Concourse and get Waypoint"&@CRLF&"• Go back to Doedre's Cesspool and go for the Grand Promenade now"&@CRLF&"• Get Bath House Waypoint and finish Trial of Ascendancy"&@CRLF&"• Enter High Gardens, kill Yugul and get Skillpoint in town"&@CRLF&"• Enter Lunaris Temple through Lunaris Concourse and get Moon Orb"&@CRLF&"• Go to Harbour Bridge and kill Solaris & Lunaris"
  93. $act[9] = "Act 9 Exp Farming Zone: The Blood Aqueduct"&@CRLF&"• Find the Storm Blade in Vastiri Desert and speak to Petarus & Vanja in town"&@CRLF&"• Look for a blocked entrance in Vastiri Desert"&@CRLF&"• Go to town, talk to Sin and then to Petarus & Vanja"&@CRLF&"• Kill Shakari and get Skillpoint in town"&@CRLF&"• Get Foothills Waypoint, enter Boiling Lake and get Basilisk Acid"&@CRLF&"• Enter the Tunnel and finish Trial of Ascendancy"&@CRLF&"• Get Quarry Waypoint, enter Refinery and get Trarthan Powder"&@CRLF&"• Go back to Quarry and kill Garukhan and get Sekhema Feather"&@CRLF&"• Go to town and give the feather to either Tasuni or Irasha, get Skillpoint"&@CRLF&"• Enter Belly of the Beast and kill the Depraved Trinity"
  94. $act[10] = "Act 10 Exp Farming Zone: The Desecrated Chambers"&@CRLF&"• Go left on Cathedral Rooftop and kill Plaguewing"&@CRLF&"• Get Sulphur Flask in town, replace Quicksilver Flask with it"&@CRLF&"• Go back to Cathedral Rooftop"&@CRLF&"• Now go right, enter the Ravaged Square and go south"&@CRLF&"• Enter the Control Blocks, kill Vilenta and get Skillpoint in town"&@CRLF&"• Optionally find the Teardrop in Reliquary"&@CRLF&"• Go back to Ravaged Square and get its Waypoint in the upper part"&@CRLF&"• Enter Ossuary, complete Trial of Ascendancy and get Elixir of Allure"&@CRLF&"• Get to Desecrated Chamber through Torched Courts and kill Avarius"&@CRLF&"• Finish the third Labyrinth and get Beacon of Ruin, if this is too hard then keep it for later"&@CRLF&"• Enter the Canals and make your way to the final bossfight"&@CRLF&"• You will suffer another permanent -30% resistance penalty after this fight"&@CRLF&"End"&@CRLF&"• Talk to Lani for two Skillpoints"&@CRLF&"• Enter Templar Laboratory and get a map from Zana, then buy all maps she's selling"&@CRLF&"• That's it, you've reached the endgame! Gear up and switch to the endgame gem setup"&@CRLF&"• Optionally farm yourself a Tabula Rasa through Humility cards in Blood Aqueduct"
  95.  
  96. makeoverlay ()
  97.  
  98. Func makeoverlay ()
  99.   GUIDelete($hGUI)
  100.   $hGUI = OverlayWindow(Null, Null, $rectForText, $act[$current] )
  101. EndFunc
  102.  
  103. Func add ()
  104.   $current = $current +1
  105.   makeoverlay ()
  106. EndFunc
  107.  
  108. Func sub ()
  109.   $current = $current -1
  110.   makeoverlay ()
  111. EndFunc
  112.  
  113. HotKeySet ( "{right}", add)
  114. HotKeySet ( "{left}", sub)
  115.  
  116. While Not $Done
  117.    Sleep(100)
  118.  
  119. WEnd
  120.  
  121. GUIDelete($hGUI)
  122. _GDIPlus_Shutdown ()
  123. Exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement