Jump to content

Recommended Posts

Posted

..in that regard, I was thinking of giving that a link like "AutoIt3chm://go+do+something.au3" and since is a link, the handler would take care of that. And that would mean that the .chm file would need the "AutoIt3Help.exe" to be the handler or load one.
Lack of time did not let me code it to present a proposal.

But maybe you can code a "SayYesAndSaveMeTheTime.au3" 😅

P.S.: I don't know of a way to configure for just that. :( 

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

Posted
3 hours ago, argumentum said:

But maybe you can code a "SayYesAndSaveMeTheTime.au3"

Nah, not that cumbersome.  But what is very annoying is the MSDN external link.  I know it is off topic, but it is my thread after all :).  I am using this piece of code to get to an external MSDN link (until argy makes a no problem chm...)

Just right click the link and it will show in you default browser :

#include "Includes\CUIAutomation2.au3"
#include <WinAPIvkeysConstants.au3>
#include <Misc.au3>

HotKeySet("{F11}", Terminate)

While Sleep(10)
  If WinActive("AutoIt Help") And _IsPressed($VK_RBUTTON) Then RunLink()
WEnd

Func Terminate()
  Exit
EndFunc   ;==>Terminate

Func RunLink()
  Sleep(200)
  MouseClick("left", MouseGetPos(0) + 10, MouseGetPos(1) + 20, 1, 1)
  Sleep(500)
  If Not WinActive("Propriétés") Then Return

  ; Create UI Automation object
  Local Static $oUIAutomation = ObjCreateInterface($sCLSID_CUIAutomation, $sIID_IUIAutomation, $dtagIUIAutomation)
  Local $pElement, $oElement, $oProp, $vValue, $pCondition

  ; Get element by handle
  $oUIAutomation.ElementFromHandle(WinGetHandle("[ACTIVE]"), $pElement)
  $oProp = ObjCreateInterface($pElement, $sIID_IUIAutomationElement, $dtagIUIAutomationElement)
  $oUIAutomation.CreatePropertyCondition($UIA_AutomationIdPropertyId, "_nameProp", $pCondition)
  $oProp.FindFirst($TreeScope_Descendants, $pCondition, $pElement)
  $oElement = ObjCreateInterface($pElement, $sIID_IUIAutomationElement, $dtagIUIAutomationElement)
  $oElement.GetCurrentPropertyValue($UIA_ValueValuePropertyId, $vValue)
  Send("{ESC}")
  ShellExecute("http://msdn.microsoft.com/query/" & $vValue)
EndFunc   ;==>RunLink

Not the greatest piece of code, but it does what I want.

Posted (edited)
4 hours ago, Nine said:

I am using this piece of code to get to an external MSDN link (until argy makes a no problem chm...)

My bad ( not kidding ).
Made a patch but no body looked at it.
And I'd have to get in a "Zen state of mind" to implement it in the SVN, but am doing a bunch of other things 😭

But yes, the "open in user's default browser" is no big deal.
I'll brainstorm the "run local file" in a "don't warn me, just do it" way. Maybe using the CSS file as the DB 🤔
But again, I'll have to have the peace of mind to look into it 🤷‍♂️

Edited by argumentum

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

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
  • Recently Browsing   0 members

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