Hello everyone
Im looking for a way to grab the event of selecting files,
in order to open windows in browser, related to the selected files.
Id like it automatically, without any right click
I tryed with autoit but it didn't catch any event, on any files.
Any Ideas?
Thanks a lot.
event when selecting a file
Re: event when selecting a file
Command | User Menu -> Customize
Menu Contents: Browser Search
Command: c:\seamonkey\seamonkey.exe -search %1
That will open SeaMonkey (if it is not already open) & perform a (browser) search for the currently highlighted item in Salamander (using your browsers default search engine).
Adjust as needed for your browser...
Menu Contents: Browser Search
Command: c:\seamonkey\seamonkey.exe -search %1
That will open SeaMonkey (if it is not already open) & perform a (browser) search for the currently highlighted item in Salamander (using your browsers default search engine).
Adjust as needed for your browser...
WinXP Pro SP3 or Win7 x86 | SS 2.54
-
- Posts: 4
- Joined: 02 Oct 2019, 11:41
Re: event when selecting a file
Thanks but that's not what I meaned. I was looking for a way to launch commands automatically when browsing files. The result would be like a linked pannel in HTML. Anyway, I found a perfect solution with autoit. The script just click on a routine from the user menu when I click on a file from the browser, but it is nearly transparent. I post my script in order to help ppl if needed.
#include <Misc.au3>
#include <WinAPI.au3>
#include <WinAPIMisc.au3>
HotKeySet("{ESC}", "On_Exit")
Local $hDLL = DllOpen("user32.dll")
While 1
While WinActive("[CLASS:SalamanderMainWindowVer25]", "")
Local $hWnd = WinGetHandle("[CLASS:SalamanderMainWindowVer25]", "")
Local $tPoint = _WinAPI_GetMousePos(True, $hWnd)
If _IsPressed("01", $hDLL) Then
While _IsPressed("01", $hDLL)
Sleep(10)
WEnd
If DllStructGetData($tPoint, "Y")>75 Then
ControlClick ("[CLASS:SalamanderMainWindowVer25]", "", "[CLASS:WinLib Universal Window2; INSTANCE:1]", "left", 1, 205, 10)
WinActivate("[CLASS:SalamanderMainWindowVer25]", "")
EndIf
EndIf
Sleep(10)
WEnd
Sleep(10)
WEnd
Func On_Exit()
DllClose($hDLL)
Exit
EndFunc
#include <Misc.au3>
#include <WinAPI.au3>
#include <WinAPIMisc.au3>
HotKeySet("{ESC}", "On_Exit")
Local $hDLL = DllOpen("user32.dll")
While 1
While WinActive("[CLASS:SalamanderMainWindowVer25]", "")
Local $hWnd = WinGetHandle("[CLASS:SalamanderMainWindowVer25]", "")
Local $tPoint = _WinAPI_GetMousePos(True, $hWnd)
If _IsPressed("01", $hDLL) Then
While _IsPressed("01", $hDLL)
Sleep(10)
WEnd
If DllStructGetData($tPoint, "Y")>75 Then
ControlClick ("[CLASS:SalamanderMainWindowVer25]", "", "[CLASS:WinLib Universal Window2; INSTANCE:1]", "left", 1, 205, 10)
WinActivate("[CLASS:SalamanderMainWindowVer25]", "")
EndIf
EndIf
Sleep(10)
WEnd
Sleep(10)
WEnd
Func On_Exit()
DllClose($hDLL)
Exit
EndFunc