Search found 656 matches

by rommmcek
21 Sep 2019, 20:04
Forum: Ask For Help
Topic: Link on existing IE instance without ID or Name
Replies: 18
Views: 622

Re: Link on existing IE instance without ID or Name

And this is shorter COM version: WinActivate ahk_class IEFrame WinWaitActive ahk_class IEFrame wb:=wbGet() While ((el:=wb.document.getElementsByTagName("a")[A_Index-1]).innerText) { ;if (el.href = "file:///FileFullPath#") { ; note hashtag at the end if (el.href ~= "#") { ; short version el.focus() ;...
by rommmcek
21 Sep 2019, 13:58
Forum: Ask For Help
Topic: Link on existing IE instance without ID or Name
Replies: 18
Views: 622

Re: Link on existing IE instance without ID or Name

This is COM version: #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Warn ; Enable warnings to assist with detecting common errors. SendMode Input ; Recommended for new scripts due to its superior speed and reliability. SetWorkingDir %A_ScriptDir% ; Ensures...
by rommmcek
21 Sep 2019, 12:14
Forum: Ask For Help
Topic: Link on existing IE instance without ID or Name
Replies: 18
Views: 622

Re: Link on existing IE instance without ID or Name

First script:

Code: Select all

Send, {Enter 2} ; first Send, {Enter} modified
Second script:

Code: Select all

While (SearchTxt != "COMP") {
    ControlGetText, SearchTxt, Edit3, ahk_class IEFrame
    Sleep, 50
}
ControlSend, Edit3, {Enter}, ahk_class IEFrame ; added line
ControlSend, Edit3, {Esc}, ahk_class IEFrame
by rommmcek
21 Sep 2019, 11:04
Forum: Ask For Help
Topic: Link on existing IE instance without ID or Name
Replies: 18
Views: 622

Re: Link on existing IE instance without ID or Name

This is quicker and more reliable version: WinActivate ahk_class IEFrame WinWaitActive ahk_class IEFrame Send, ^f While !IeEdit3 { ControlGet, IeEdit3, Visible,, Edit3, ahk_class IEFrame sleep, 50 } ControlSetText, Edit3, WTC, ahk_class IEFrame While (SearchTxt != "WTC") { ControlGetText, SearchTxt,...
by rommmcek
21 Sep 2019, 10:27
Forum: Ask For Help
Topic: Link on existing IE instance without ID or Name
Replies: 18
Views: 622

Re: Link on existing IE instance without ID or Name

Not the best, but might be acceptable idea:

Code: Select all

WinActivate ahk_class IEFrame
WinWaitActive ahk_class IEFrame
Send ^{f}
Sleep, 300
Send, WTC
Sleep, 200
Send, {Enter}
Sleep, 300
Send, {Esc}
Sleep, 200
Send, {Enter}
by rommmcek
21 Sep 2019, 09:52
Forum: Ask For Help
Topic: Link on existing IE instance without ID or Name
Replies: 18
Views: 622

Re: Link on existing IE instance without ID or Name

Can you post url, the html you posted is just plain text.
by rommmcek
21 Sep 2019, 06:11
Forum: Ask For Help
Topic: Link on existing IE instance without ID or Name
Replies: 18
Views: 622

Re: Link on existing IE instance without ID or Name

Try to replace WBGet(WinTitle="ahk_class IEFrame", Svr#=1) with WBGet(WinTitle="A", Svr#=1).
by rommmcek
20 Sep 2019, 18:44
Forum: Ask For Help
Topic: Link on existing IE instance without ID or Name
Replies: 18
Views: 622

Re: Link on existing IE instance without ID or Name

There seems to be a typo: icon.external vs. icon-external.
by rommmcek
17 Sep 2019, 22:14
Forum: Ask For Help
Topic: Recognize if bold text is in Clipboard
Replies: 1
Views: 156

Re: Recognize if bold text is in Clipboard

Maybe this code could help you.
by rommmcek
17 Sep 2019, 02:02
Forum: Scripts and Functions
Topic: Save/Load a TreeView and save Check/Bold/Expanded attributes for each node
Replies: 11
Views: 710

Re: Save/Load a TreeView and save Check/Bold/Expanded attributes for each node

I actually came up with this: if IsExpanded := TV_Get(A_EventInfo,"E") TV_Modify(A_EventInfo, "-Expand") else TV_Modify(A_EventInfo, "Expand") but it didn't work if doubleClick occurred on + / - sign. Your one liner works just fine!!! Launching sites from TreeView is for me very useful especially fo...
by rommmcek
16 Sep 2019, 11:54
Forum: Scripts and Functions
Topic: [Tool] Show Me That Color (display selected text colors in a GUI)
Replies: 27
Views: 1882

Re: [Tool] Show Me That Color (display selected text colors in a GUI)

Great news! Thanks!
Remains to see if there are further bugs! (I'm already aware of a tiny one - If one dimension of range frame is 1 pixel)
by rommmcek
16 Sep 2019, 11:45
Forum: Scripts and Functions
Topic: Save/Load a TreeView and save Check/Bold/Expanded attributes for each node
Replies: 11
Views: 710

Re: Save/Load a TreeView and save Check/Bold/Expanded attributes for each node

Here is my first attempt for launching Ahk sites via Tree structure (only for Bold Items). ;https://www.autohotkey.com/boards/viewtopic.php?f=6&t=67922 #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Warn ; Enable warnings to assist with detecting common er...
by rommmcek
15 Sep 2019, 04:26
Forum: Scripts and Functions
Topic: Save/Load a TreeView and save Check/Bold/Expanded attributes for each node
Replies: 11
Views: 710

Re: Save/Load a TreeView and save Check/Bold/Expanded attributes for each node

Thanks for explanation! Now I think I get it. I tried to save tree structure from Ahk Example and your function works great!

Thanks for Ideas too, but don't bother with the exemple, I have to figure it out by myself!
by rommmcek
14 Sep 2019, 13:12
Forum: Scripts and Functions
Topic: Save/Load a TreeView and save Check/Bold/Expanded attributes for each node
Replies: 11
Views: 710

Re: Save/Load a TreeView and save Check/Bold/Expanded attributes for each node

Comments or just empty lines would improve readability of ServiceTree data for sure. The problem is that current code can't keep them after saving. I was thinking about escape character too (for strings with semicolons), but that is not so important. Here is Ahk site service tree. AutoHotkey;Downloa...
by rommmcek
14 Sep 2019, 12:48
Forum: Scripts and Functions
Topic: [Tool] Show Me That Color (display selected text colors in a GUI)
Replies: 27
Views: 1882

Re: [Tool] Show Me That Color (display selected text colors in a GUI)

It must be a RegEx issue! When I was getting rid of flickering, there was the same issue on Win10 too, but outside ListView controls, so was able to filter that out. Will test it next week on W7... On previous page is a new 1.57.5 version with further improvements and initial anti-flicker OnMouseMov...
by rommmcek
13 Sep 2019, 08:59
Forum: Scripts and Functions
Topic: Save/Load a TreeView and save Check/Bold/Expanded attributes for each node
Replies: 11
Views: 710

Re: Save/Load a TreeView and save Check/Bold/Expanded attributes for each node

Thanks for the code, I think it could be quite useful! Q: The format in the .txt file, is it kind of standard or did you invent it for that purpose? I noticed in the LoadTree() function there should be better: . . . Gui, TreeView, %sTreeName% GuiControl, -Redraw, %sTreeName% TV_Delete() . . . to del...
by rommmcek
13 Sep 2019, 06:48
Forum: Scripts and Functions
Topic: [Tool] Show Me That Color (display selected text colors in a GUI)
Replies: 27
Views: 1882

Re: [Tool] Show Me That Color (display selected text colors in a GUI)

I noticed a bit of flicker even on Win10 when Color name was very long and since it was not too bad...
Now fixed, I believe.

P.s.: I'm not happy with "Color stealer" yet (It does not pick colors exactly inside the frame)
by rommmcek
11 Sep 2019, 17:15
Forum: Ask For Help
Topic: Rebind left alt to push to talk key, " ` " (vkDFsc029)
Replies: 93
Views: 4318

Re: Rebind left alt to push to talk key, " ` " (vkDFsc029)

- The lag is due to ToolTips display slowing down the Kbd funciton. That's why in the real Kbd function we use Timers to mitigate that. Kbd function with ToolTips is ment to explore kbd events (one press at a time) - "extra info tooltip" has a typo and should be numget(lParam+8, "UInt")&0x80 - Kbd t...

Go to advanced search