Search found 89 matches
- 14 Feb 2023, 17:07
- Forum: Scripts and Functions (v2)
- Topic: ConvertBase() adapted to AHK v2
- Replies: 0
- Views: 451
ConvertBase() adapted to AHK v2
ConvertBase() adapted to AHK v2 🙂 ConvertBase(InputBase, OutputBase, nptr) { VarSetStrCapacity(&s, 66) value := DllCall("msvcrt.dll\_wcstoui64", "Str", nptr, "UInt", 0, "UInt", InputBase, "CDECL Int64") DllCall("msvcrt.dll\_i64tow", "Int64", value, "Str", s, "UInt", OutputBase, "CDECL") Return s }
- 14 Feb 2023, 16:36
- Forum: Scripts and Functions (v1)
- Topic: Convert Base | HEX, DEC, OCT, BIN, INT, RGB, STR
- Replies: 19
- Views: 13494
Re: Convert Base | HEX, DEC, OCT, BIN, INT, RGB, STR
ConvertBase() adapted to AHK v2 🙂 ConvertBase(InputBase, OutputBase, nptr) { VarSetStrCapacity(&s, 66) value := DllCall("msvcrt.dll\_wcstoui64", "Str", nptr, "UInt", 0, "UInt", InputBase, "CDECL Int64") DllCall("msvcrt.dll\_i64tow", "Int64", value, "Str", s, "UInt", OutputBase, "CDECL") Return s }
- 01 Feb 2023, 09:37
- Forum: About This Community
- Topic: AutoHotkey v2 Official Release Announcement - Q&A
- Replies: 38
- Views: 21675
- 01 Feb 2023, 07:27
- Forum: About This Community
- Topic: AutoHotkey v2 Official Release Announcement - Q&A
- Replies: 38
- Views: 21675
Re: AutoHotkey v2 Official Release Announcement - Q&A
Congrats to the team on the v2 release! 👏🏼👏🏼 While I like the concept of the dashboard, and the efforts to make painless the co-existence of v1 and v2 scripts in a system, I'm considering (just for myself) renaming all my v1 *.ahk scripts to *.ahk1 and associating them to the v1 AutoHotkeyU64.exe, a...
- 06 Jan 2018, 03:28
- Forum: Scripts and Functions (v1)
- Topic: Get the URL of the current (active) browser tab
- Replies: 196
- Views: 138336
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
BUT it's trivial to access it via JavaScript: https://developer.mozilla.org/en-US/doc ... dow/status
- 04 Jan 2018, 12:05
- Forum: Scripts and Functions (v1)
- Topic: Get the URL of the current (active) browser tab
- Replies: 196
- Views: 138336
Re: Get the URL of the current (active) browser tab
Ouch
I'm looking into it. The URL is still there, and it's accessible via ACC, so it looks promising
Big thanks to Kudos for the heads up
Regards,
Antonio
I'm looking into it. The URL is still there, and it's accessible via ACC, so it looks promising
Big thanks to Kudos for the heads up
Regards,
Antonio
- 28 May 2017, 03:48
- Forum: Scripts and Functions (v1)
- Topic: Get the URL of the current (active) browser tab
- Replies: 196
- Views: 138336
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...
- 11 Mar 2017, 15:52
- Forum: Scripts and Functions (v1)
- Topic: PBKDF2 makes passwords harder to crack
- Replies: 10
- Views: 7052
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
(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
- 15 Jul 2016, 16:02
- Forum: Ask for Help (v1)
- Topic: Using hotstrings as text macros doesn't work in browser.
- Replies: 6
- Views: 2284
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...
- 15 Jul 2016, 06:38
- Forum: Ask for Help (v1)
- Topic: Using hotstrings as text macros doesn't work in browser.
- Replies: 6
- Views: 2284
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...
- 15 Jul 2016, 04:47
- Forum: Ask for Help (v1)
- Topic: Using hotstrings as text macros doesn't work in browser.
- Replies: 6
- Views: 2284
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:
Regards,
Antonio B.
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.
)
Antonio B.
- 10 Jun 2016, 12:07
- Forum: Scripts and Functions (v1)
- Topic: Get the URL of the current (active) browser tab
- Replies: 196
- Views: 138336
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...
- 08 Jun 2016, 14:23
- Forum: Scripts and Functions (v1)
- Topic: Get the URL of the current (active) browser tab
- Replies: 196
- Views: 138336
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...
- 05 Jun 2016, 05:37
- Forum: Ask for Help (v1)
- Topic: Sort CSV Date Column
- Replies: 5
- Views: 2430
Re: Sort CSV Date Column
Really nice improvement, art
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.
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.
- 04 Jun 2016, 06:45
- Forum: Ask for Help (v1)
- Topic: Sort CSV Date Column
- Replies: 5
- Views: 2430
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...
- 19 May 2016, 15:50
- Forum: Scripts and Functions (v1)
- Topic: Get the URL of the current (active) browser tab
- Replies: 196
- Views: 138336
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 ...
- 18 May 2016, 15:32
- Forum: Pedir Ayuda
- Topic: Busco programador con nivel alto de AHK para trabajo pago
- Replies: 9
- Views: 4757
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...
- 18 May 2016, 15:16
- Forum: Scripts and Functions (v1)
- Topic: Get the URL of the current (active) browser tab
- Replies: 196
- Views: 138336
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...
- 16 May 2016, 12:34
- Forum: Scripts and Functions (v1)
- Topic: Get the URL of the current (active) browser tab
- Replies: 196
- Views: 138336
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...
- 15 May 2016, 17:43
- Forum: Scripts and Functions (v1)
- Topic: Get the URL of the current (active) browser tab
- Replies: 196
- Views: 138336
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...