Search found 8 matches

by potroveio
30 Sep 2019, 06:19
Forum: Scripts and Functions
Topic: Firefox/Chrome, get tab names/focus tab
Replies: 35
Views: 17778

Re: Firefox/Chrome, get tab names/focus tab

Lovely, many thanks, jeeswg! GetTabNum tested and working on Chrome 77 :)
by potroveio
29 Sep 2019, 14:45
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 515
Views: 172917

Re: FindText - Capture screen image into text and then find it Topic is solved

any ideas on how to make this run on an inactive or minimized window or on virtual destkop on the background? thanks!!
by potroveio
29 Sep 2019, 12:01
Forum: Scripts and Functions
Topic: Firefox/Chrome, get tab names/focus tab
Replies: 35
Views: 17778

Re: Firefox/Chrome, get tab names/focus tab

;================================================== JEE_ChromeGetFocusedTabNum(hWnd) { oAcc := Acc_Get("Object", "4.1.2.2.1", 0, "ahk_id " hWnd) vRet := 0 for _, oChild in Acc_Children(oAcc) { ;STATE_SYSTEM_SELECTED := 0x2 if (oChild.accState(0) & 0x2) { vRet := A_Index break } } oAcc := oChild := ...
by potroveio
27 Sep 2019, 13:40
Forum: Scripts and Functions
Topic: Firefox/Chrome, get tab names/focus tab
Replies: 35
Views: 17778

Re: Firefox/Chrome, get tab names/focus tab

how to invoke this function to show open tabs in Chrome on a tooltip when a hotkey is pressed?

thanks!

Martin
by potroveio
27 Sep 2019, 12:39
Forum: Ask For Help
Topic: Count number of tabs in active window Topic is solved
Replies: 6
Views: 1937

Re: Count number of tabs in active window Topic is solved

Hi!

does this work for Chrome 77 too? How could I get the total open tabs in Chrome with a shortcut in the same way?

really thankful,
Martin
by potroveio
27 Sep 2019, 12:17
Forum: Scripts and Functions
Topic: Acc: get text from all window/control elements
Replies: 22
Views: 7748

Re: Acc: get text from all window/control elements

Hi, is this still working with Chrome 77? I am trying to run this in order to have total tabs open on Chrome shown on a Message Box: JEE_ChromeGetTabCount(hWnd){ oAcc := Acc_Get("Object", "4.1.2.1.1.1", 0, "ahk_id " hWnd) for _, oChild in Acc_Children(oAcc) { vTabText := oChild.accName(0) if !(vTabT...
by potroveio
17 Sep 2019, 15:24
Forum: Ask For Help
Topic: Break from sleep if there is mouse or keyboard activity
Replies: 2
Views: 342

Re: Break from sleep if there is mouse or keyboard activity

wow, thanks! well, actually I just realized need something else. This is the skeleton of my current code. It checks it the computer is idle and then performs a couple of subroutines: Loop { if (A_TimeIdleMouse > IDLE_TIME) && (A_TimeIdleKeyboard > IDLE_TIME) { GoSub, ClickToGetTask GoSub, CheckLogin...
by potroveio
17 Sep 2019, 13:57
Forum: Ask For Help
Topic: Break from sleep if there is mouse or keyboard activity
Replies: 2
Views: 342

Break from sleep if there is mouse or keyboard activity

Hi, I use lots of long sleep times (7s or so) in a script that activates when computer is idle (no mouse or keyboard movement). I would like my script to quit such sleep commands when I come back to the computer without waiting the sleep times to finish. Is there any command that replaces "sleep" in...

Go to advanced search