Search found 85 matches

by atnbueno
06 Jan 2018, 03:28
Forum: Scripts and Functions
Topic: Get the URL of the current (active) browser tab
Replies: 127
Views: 57366

Re: Get the URL of the current (active) browser tab

No, sorry. The status bar is not available via the API this script is based on.

BUT it's trivial to access it via JavaScript: https://developer.mozilla.org/en-US/doc ... dow/status
by atnbueno
04 Jan 2018, 12:05
Forum: Scripts and Functions
Topic: Get the URL of the current (active) browser tab
Replies: 127
Views: 57366

Re: Get the URL of the current (active) browser tab

Ouch :wtf:

I'm looking into it. The URL is still there, and it's accessible via ACC, so it looks promising :think:

Big thanks to Kudos for the heads up :thumbup:


Regards,
Antonio
by atnbueno
28 May 2017, 03:48
Forum: Scripts and Functions
Topic: Get the URL of the current (active) browser tab
Replies: 127
Views: 57366

Re: Get the URL of the current (active) browser tab

Hello It seems it does not work properly if I have many tabs opened. It does not return the url of the current active tab. (Sorry for not seeing your message before) That shouldn't happen :think: Which browser/version are you using? Are you using the script from the first page unmodified? Please ex...
by atnbueno
11 Mar 2017, 15:52
Forum: Scripts and Functions
Topic: PBKDF2 makes passwords harder to crack
Replies: 10
Views: 4724

Re: PBKDF2 makes passwords harder to crack

Hello Mike.

(sorry I didn't see your message before)

Check jNizM's excellent work with CNG (the succesor to CryptoAPI):
https://autohotkey.com/boards/viewtopic.php?f=6&t=23413

Regards,
Antonio
by atnbueno
15 Jul 2016, 16:02
Forum: Ask For Help
Topic: Using hotstrings as text macros doesn't work in browser.
Replies: 6
Views: 1120

Re: Using hotstrings as text macros doesn't work in browser.

Blackholyman , I'm sorry but I'm not sure understand your reasoning for the Sleep (" ...the script does not know when the program is done pasting ") :eh: When I tried to use ClipWait , I cleared the clipboard. But this does not work :( SendFast: ; WARNING: FastText must be defined before jumping he...
by atnbueno
15 Jul 2016, 06:38
Forum: Ask For Help
Topic: Using hotstrings as text macros doesn't work in browser.
Replies: 6
Views: 1120

Re: Using hotstrings as text macros doesn't work in browser.

Hello again. You're right. I hadn't followed the Stack Overflow link :oops: In my computer I can go as low as ClipWait + Sleep, 50 and it still works :) I find intriguing why ClipWait doesn't seem to work as expected :think: In fact ClipWait isn't necessary with Sleep, 100 : ::\hi:: FastText = ( Hel...
by atnbueno
15 Jul 2016, 04:47
Forum: Ask For Help
Topic: Using hotstrings as text macros doesn't work in browser.
Replies: 6
Views: 1120

Re: Using hotstrings as text macros doesn't work in browser.

Hello rywi.

I've been able to reproduce your problem and a Sleep, 100 after each ClipWait seems to fix the problem.

But you can also do this:

Code: Select all

::\hi::
(
Hello, 
 
How are you today?
)
::\bye::
(
Bye, see you next time.
)
Regards,
Antonio B.
by atnbueno
10 Jun 2016, 12:07
Forum: Scripts and Functions
Topic: Get the URL of the current (active) browser tab
Replies: 127
Views: 57366

Re: Get the URL of the current (active) browser tab

Stan , this problem reminds me the conversation with mc-lemons from last January . I'm guessing that #If calls the function too frequently, everytime there's a window event, and my code is not ready for that. The particular error you mention is typical when the code tries to access an object that d...
by atnbueno
08 Jun 2016, 14:23
Forum: Scripts and Functions
Topic: Get the URL of the current (active) browser tab
Replies: 127
Views: 57366

Re: Get the URL of the current (active) browser tab

Hello yar_man . I'm sorry but I'm not familiar with #If . But before that, your IS_google() function always returns 1 :wtf: This one works for me (the function, not the #if ): isGoogle() { Return InStr(GetActiveBrowserURL(), "google") > 0 } I've tried to tweak your #if code and the 'hh' hotkey somet...
by atnbueno
05 Jun 2016, 05:37
Forum: Ask For Help
Topic: Sort CSV Date Column
Replies: 5
Views: 1246

Re: Sort CSV Date Column

Really nice improvement, art :thumbup:

I've tried the three versions with a longer list (79K lines, 4MB string) and art's (1x) is significantly better than just me's (2.8x), which still is better than mine (4.2x).

Antonio B.
by atnbueno
04 Jun 2016, 06:45
Forum: Ask For Help
Topic: Sort CSV Date Column
Replies: 5
Views: 1246

Re: Sort CSV Date Column

Hello newpie . Indeed, you need to define a callback function that tells Sort how to compare your data. Something like this: var = ( foo,bar,foo,bar,foo,2016/05/30,bar foo,bar,foo,bar,foo,2016/05/30,bar foo,bar,foo,bar,foo,2016/05/27,bar foo,bar,foo,bar,foo,2016/05/30,bar foo,bar,foo,bar,foo,2016/05...
by atnbueno
19 May 2016, 15:50
Forum: Scripts and Functions
Topic: Get the URL of the current (active) browser tab
Replies: 127
Views: 57366

Re: Get the URL of the current (active) browser tab

Kudos , ouch :roll: technotron , I'm a big fan of GreaseMonkey/TamperMonkey myself :thumbup: A quite common trick to expose the URL of each tab is to add it to the page title when it loads, so AutoHotkey can easily get it. The GM script for this couldn't be simpler and you wouldn't need to use the ...
by atnbueno
18 May 2016, 15:32
Forum: Pedir Ayuda
Topic: Busco programador con nivel alto de AHK para trabajo pago
Replies: 9
Views: 2812

Re: Busco programador con nivel alto de AHK para trabajo pago

Hola. Secundo el consejo de Alepaff : tendrás mucha más audiencia en los subforos en inglés. Así a bote pronto se me ocurre: Lector de códigos o una cámara? Si es lo primero, hay unas cuantas variantes, cada una con su software. La cámara quizás sería un caso más general. Sugerencia para leer QRs de...
by atnbueno
18 May 2016, 15:16
Forum: Scripts and Functions
Topic: Get the URL of the current (active) browser tab
Replies: 127
Views: 57366

Re: Get the URL of the current (active) browser tab

Hello Kudos , Don't worry. We all have our downtimes :-) If the current code still fails, I still have no idea of what's happening to you. I've been using Edge with the published code for days without a single problem. But hey, let's keep trying. I've gone back to the "ugly workaround" in this versi...
by atnbueno
16 May 2016, 12:34
Forum: Scripts and Functions
Topic: Get the URL of the current (active) browser tab
Replies: 127
Views: 57366

Re: Get the URL of the current (active) browser tab

Thanks, qwerty12 . Really useful information. The Pale Moon link is clear: They don't care for automation/accessibility, so I guess I won't care about Pale Moon :mrgreen: I did not gave up inmediately. I also tried using DDE (the older inter-process messaging technology I use with legacy browsers) b...
by atnbueno
15 May 2016, 17:43
Forum: Scripts and Functions
Topic: Get the URL of the current (active) browser tab
Replies: 127
Views: 57366

Re: Get the URL of the current (active) browser tab

Hello again. technotron , you're right. I've tried both x86 and x64 versions of Pale Moon and I can't reach the address bar (my script needs a "path" from the window to the address bar than can be detected with ACC). It's the same problem I have with the Vivaldi browser: The address bar is there, bu...
by atnbueno
15 May 2016, 07:10
Forum: Scripts and Functions
Topic: Get the URL of the current (active) browser tab
Replies: 127
Views: 57366

Re: Get the URL of the current (active) browser tab

technotron , if ahk_class is "MozillaWindowClass", the tweak I mentioned a couple of months ago should work with Pale Moon (both x86 and x64 versions). If there's any problem, I'll gladly look into it :) I've updated the original code with this change, as well as with the fix for occasional Edge pr...
by atnbueno
11 May 2016, 15:55
Forum: Scripts and Functions
Topic: Get the URL of the current (active) browser tab
Replies: 127
Views: 57366

Re: Get the URL of the current (active) browser tab

goosey, unfortunately no :-(

Vivaldi does not support neither DDE nor MSAA (the two methods my script uses to get information from the browsers).

As soon as version 1.1 came out I re-tried, again without success :-(
by atnbueno
07 May 2016, 05:32
Forum: Ask For Help
Topic: (SOLVED) RegExReplace - How to replace "\Q\E" string while "\Q\E" option is already in use?
Replies: 6
Views: 1113

Re: RegExReplace - How to replace "\Q\E" string while "\Q\E" option is already in use?

Would this do?

Code: Select all

Text = AAA - \Q\E - AAA
 
string1 = \Q\E
 
string2 = @
 
MsgBox, % RegExReplace(text, "\\Q" string1 "\\E", string2)	;"\Q\E" option is already in use!
					;output should be, and IS :), Text = AAA - @ - AAA 
by atnbueno
15 Apr 2016, 14:36
Forum: Scripts and Functions
Topic: Get the URL of the current (active) browser tab
Replies: 127
Views: 57366

Re: Get the URL of the current (active) browser tab

I'm glad it works with Firefox Nightly, haichen :)

About the error, I don't know what to tell you :eh: The only DDL used for non-legacy browsers (like both Firefox Nightly and MS Edge) is oleacc.dll :think:


Regards,
Antonio

P.S. Test script updated above

Go to advanced search