Search found 1147 matches
- 04 Aug 2020, 17:59
- Forum: Ask for Help (v1)
- Topic: Is there any easy method to randomise an array
- Replies: 7
- Views: 4760
Re: Is there any easy method to randomise an array
Inspired by JEE_StrRept by jeeswg : array := RandomizeArray(["Howard", "Robin", "Fred", "Gary", "Ronnie"]) for i, v in array, out := "" out .= v . A_Space MsgBox, % RTrim(out) return RandomizeArray(arr) { loop % count:=arr.Count(ranStr:="") { Random, rand, 1, % count ranStr .= "{" . rand . "}" . A_S...
- 04 Aug 2020, 16:56
- Forum: Ask for Help (v1)
- Topic: Parsing a sentence into first letters??
- Replies: 7
- Views: 3061
Re: Parsing a sentence into first letters??
Hi bjukrain, I would define and compute these following: PunctArray := [ ".", "," , ":", ";", "?", "!", """" ] PArrayLength := PunctArray.length() outside any kind of loop or subroutine as they have nothing 'loopy'. Also, be careful not to confuse = and := : ; ... if (FirstCharacter := PunctArray[In...
- 04 Aug 2020, 09:55
- Forum: Ask for Help (v1)
- Topic: GUI with external parameters
- Replies: 8
- Views: 5885
Re: GUI with external parameters
Hi, #NoEnv #SingleInstance force ParAnz := A_Args.Length() ; if (ParAnz < 3) ; { ; MsgBox % "The script needs at least 3 parameters, but only " ParAnz " were delivered." ; ExitApp ; } else if (ParAnz > 5) { ; MsgBox % "The scripts needs a maximum of 5 parameters, but " ParAnz " were delivered." ; Ex...
- 02 Aug 2020, 06:37
- Forum: Scripts and Functions (v1)
- Topic: [Class] eAutocomplete - Custom word completion for (Rich)Edit controls
- Replies: 33
- Views: 15353
Re: [Class] eAutocomplete - Custom word completion for (Rich)Edit controls
Hi ahk_rad, Thank you for your interest in this script. I'm glad you like it. I couldn't get the above script to hook with WordPad. I should also say thank you for letting me know about this bug - because, actually, this is a bug. Instead of keylogging, eAutocomplete hooks the EVENT_OBJECT_VALUECHAN...
- 25 Jul 2020, 15:05
- Forum: Scripts and Functions (v1)
- Topic: [Class] eAutocomplete - Custom word completion for (Rich)Edit controls
- Replies: 33
- Views: 15353
Re: [Class] eAutocomplete - Custom word completion for (Rich)Edit controls
v1.2.31 The script now supports fuzzy search by default; the script integrates the score function by Uberi : if not match is found in the autocompletion list, the script starts a fuzzy search (may be slower in cases where the pending word matchs several tens of thousands items). Essentially, I did ...
- 24 Jul 2020, 10:05
- Forum: Scripts and Functions (v1)
- Topic: [Lib] vKeyboard - a visual keyboard library
- Replies: 8
- Views: 3292
Re: [Lib] Keypad - a visual keyboard library
Hi, I made a full re-write of the script, renamed as ' vKeyboard ': . the script now uses JSON by coco (thanks coco). . a basic KeymapMaker script allows to create the WYSIWYG-way keyboard layouts. . the autocomplete component is more reliable and also supports fuzzy search. . all GUI components are...
- 24 Jul 2020, 04:29
- Forum: Ask for Help (v1)
- Topic: How to send text to a location in a window? Topic is solved
- Replies: 29
- Views: 16208
Re: How to send text to a location in a window? Topic is solved
in Chrome (in debug mode), using Chrome.ahk by GeekDude: ... ChromeInst := new Chrome("ChromeProfile") winwait, - Google Chrome ... I understand that the first creates an object that is an instance of the class Chrome defined in Chrome.ahk . You're right. See __New meta-function . Know that you can...
- 23 Jul 2020, 18:12
- Forum: Ask for Help (v1)
- Topic: How to send text to a location in a window? Topic is solved
- Replies: 29
- Views: 16208
Re: How to send text to a location in a window? Topic is solved
Hi, it is possible to programmatically - and somehow - set values in firefox from ahk. The following example demonstrate how to do this using a custom temporary extension - admittedly, this is for specific real use cases and has limited possibilities. . restart firefox and navigate to about:debuggin...
- 13 Jul 2020, 09:40
- Forum: Ask for Help (v1)
- Topic: Creating an array using Object notation Topic is solved
- Replies: 2
- Views: 981
Re: Creating an array using Object notation Topic is solved
Hi john_c , Unless I am mistaken both syntax are equivalent (both expressions return the same thing). As for me, I generally use the first one: after all, you're creating an object not an ordered list - as a list of parameters might still suggest: capitalCities := {"France": "Paris", "United States"...
- 12 Jul 2020, 17:59
- Forum: Scripts and Functions (v1)
- Topic: [Class] eAutocomplete - Custom word completion for (Rich)Edit controls
- Replies: 33
- Views: 15353
Re: [Class] eAutocomplete - Custom word completion for (Rich)Edit controls
Hi r2997790 , Thank you very much for your feedback, much appreciated. And first sorry for the delayed response... I'm struggling to get it to work with Sublime Text and Microsoft Outlook however and wondered if someone could give me some pointers on this... the dropdown box isn't working (it works ...
- 12 Jul 2020, 17:33
- Forum: Scripts et Fonctions
- Topic: Interface orientée-objet Dictation (reconnaissance vocale).
- Replies: 4
- Views: 16147
Re: Interface orientée-objet Dictation (reconnaissance vocale).
Merhaba hasantr , Thanks for your comments.... and sorry for the delayed response... There is such a problem. When the plugin window does not appear, we get rid of the crowd. Unfortunately, sometimes the plug-in is not closed and continues to listen to conversations for a long time. Unfortunately, I...
- 20 Jul 2019, 10:43
- Forum: Scripts et Fonctions
- Topic: Interface orientée-objet Dictation (reconnaissance vocale).
- Replies: 4
- Views: 16147
Re: Interface orientée-objet Dictation (reconnaissance vocale).
Hi hasantr , Thanks for your feedback hasantr , much appreciated. Can you make an example that will send text to a place where the mouse cursor is checked? Off course :D: I just added a commented exemple . ;) In it, the final recognition result is sent to the input-capable control where the caret li...
- 20 Jul 2019, 10:10
- Forum: Pedir Ayuda
- Topic: FECHAS Topic is solved
- Replies: 4
- Views: 3395
Re: FECHAS Topic is solved
Por favor, me alegra saber que puede ser útil!
Saludos
Saludos
- 04 Jul 2019, 09:19
- Forum: Scripts and Functions (v1)
- Topic: [Class] eAutocomplete - Custom word completion for (Rich)Edit controls
- Replies: 33
- Views: 15353
Re: [Class] eAutocomplete - Custom word completion for (Rich)Edit controls
- 24 Jun 2019, 06:43
- Forum: Ask for Help (v1)
- Topic: Is there a simple and reliable way to process JSON data? Topic is solved
- Replies: 82
- Views: 26847
Re: Is there a simple and reliable way to process JSON data? Topic is solved
You can write a enumerator: sJSON = {"key1": true, "key2": null, "key3": "test", "phoneNumber": [ "15635855", "225822224", "3363576347" ]} obj := JSON.parse.(sJSON) obj.key3 := "AHK" MsgBox % JSON.stringify.(obj,, A_Tab) MsgBox % json2 := JSON.stringify.(obj.phoneNumber.0) var := 0 MsgBox % json2 :=...
- 24 Jun 2019, 06:26
- Forum: Ask for Help (v1)
- Topic: Is there a simple and reliable way to process JSON data? Topic is solved
- Replies: 82
- Views: 26847
Re: Is there a simple and reliable way to process JSON data? Topic is solved
This syntax is more ahk-like (the only discordant factor is that one have to be careful when mixing both litteral dotted and between brackets property syntax while getting/setting an item): (doc:=ComObjCreate("htmlfile")).write("<meta http-equiv=""X-UA-Compatible"" content=""IE=9"">") parse := ObjBi...
- 20 Jun 2019, 19:35
- Forum: Off-topic Discussion
- Topic: Can equaly reasonable minds think differently?
- Replies: 16
- Views: 6452
Re: Can equaly reasonable minds think differently?
There is a clear hardship in estabilishing rational communication with our peers [...] [...]from our limited knowledge about the inner workings of the brain (and how it has been translated to our theories about Artificial Neural Networks) i would say that this is actually to be expected: While inpu...
- 17 Jun 2019, 15:14
- Forum: Off-topic Discussion
- Topic: Can equaly reasonable minds think differently?
- Replies: 16
- Views: 6452
Re: Can equaly reasonable minds think differently?
Sorry, this was not against you! Well, I hope! :D Please wear a sign of Autohotkey on the battlefield and I did'nt shoot you and you! Actually, there's at least one consensus: ahk is the best scripting language that has ever existed! :lol: :superhappy: Gio It is at the very least naive to consider ...
- 17 Jun 2019, 13:32
- Forum: Ask for Help (v1)
- Topic: WinWaitActive in SetTimer keeps interfearing with the rest of the script
- Replies: 4
- Views: 1103
Re: WinWaitActive in SetTimer keeps interfearing with the rest of the script
My guess is that your timer is started from the auto-execute section and your hotkeys created thereafter within it using the Hotkey command (rather than being created using double-colon label). If so, it can be expected that before the script may have encountered them and set them, the WinWaitActiv...
- 17 Jun 2019, 13:10
- Forum: Pedir Ayuda
- Topic: Ejecutar la tecla Win con otra tecla Topic is solved
- Replies: 1
- Views: 1407
Re: Ejecutar la tecla Win con otra tecla Topic is solved
Hola amigo,4R13L wrote: ↑15 Jun 2019, 22:04
Esto debería funcionar:
Code: Select all
~Space::Send, {LWin}