Search found 1093 matches

by A_AhkUser
12 Aug 2020, 17:14
Forum: Ask For Help
Topic: Import Variables from file Topic is solved
Replies: 4
Views: 962

Re: Import Variables from file Topic is solved

Both the Ini and JSON data-interchange formats have an advantage that can be significant; data can be layered. Here's a another possible solution for a non-hierarchical list a key-values pairs (cf. convert list to simple array ): file := FileOpen(A_Desktop . "\testing.txt", 4, "UTF-8") ; 4 (0x4) rep...
by A_AhkUser
12 Aug 2020, 06:04
Forum: Ask For Help
Topic: can't change semi transparency
Replies: 1
Views: 638

Re: can't change semi transparency

Hi deontopolis, my code for a window look like this: As I see it, the problem has to do with the fact that the GUI window has no been yet shown or is not currently visible. You have at least two options to operate upon the hidden GUI window: Gui, +HwndGuiHwnd +AlwaysOnTop +LastFound ; ... WinSet, Tr...
by A_AhkUser
11 Aug 2020, 17:40
Forum: Ask For Help
Topic: Stringreplace function
Replies: 5
Views: 1975

Re: Stringreplace function

Thank you A_AhkUser that was good information :) i'm glad that was helpful :D (...) Normally yes, but in this case I had to include the ':=' because it is required EasyINI syntax for write to inis. I would agree without reservation for the last example but, unless I'm missing something, I am more d...
by A_AhkUser
11 Aug 2020, 16:09
Forum: Ask For Help
Topic: Stringreplace function
Replies: 5
Views: 1975

Re: Stringreplace function

hi majstang, I tried it in an another way but its hard executing functions inside in expressions. string := "test" returnValueIfFalse := "It is false!" MsgBox % var := (string = "") ? "never executed..." : (returnValueIfFalse, stuffIfFalse()) ; the left most expression in the winning branch will be ...
by A_AhkUser
05 Aug 2020, 19:08
Forum: Ask For Help
Topic: trigger listbox via enter and doubleclick Topic is solved
Replies: 6
Views: 2611

Re: trigger listbox via enter and doubleclick Topic is solved

Hi, I might mention that, in future cases where you will have more than one focus-capable control in your GUI, you can take advantage of GuiControlGet or of the following (cryptic admittedly): ; ... #If (DllCall("User32.dll\GetFocus", "Ptr") = hListBox) ; hListBox should contains the hwnd of your li...
by A_AhkUser
05 Aug 2020, 18:35
Forum: Ask For Help
Topic: Is there any easy method to randomise an array
Replies: 7
Views: 4220

Re: Is there any easy method to randomise an array

teadrinker Your answer is, as always, great and - unlike mine - as closely as possible to the question : "Is there any easy method to randomise an array?" : your function is maybe one of the most transparent way to achieve this. Nevertheless, I think it is preferable in this case to handle a list b...
by A_AhkUser
04 Aug 2020, 17:59
Forum: Ask For Help
Topic: Is there any easy method to randomise an array
Replies: 7
Views: 4220

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...
by A_AhkUser
04 Aug 2020, 16:56
Forum: Ask For Help
Topic: Parsing a sentence into first letters??
Replies: 7
Views: 2762

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...
by A_AhkUser
04 Aug 2020, 09:55
Forum: Ask For Help
Topic: GUI with external parameters
Replies: 8
Views: 4293

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...
by A_AhkUser
02 Aug 2020, 06:37
Forum: Scripts and Functions
Topic: [Class] eAutocomplete - Custom word completion for (Rich)Edit controls
Replies: 30
Views: 9245

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...
by A_AhkUser
25 Jul 2020, 15:05
Forum: Scripts and Functions
Topic: [Class] eAutocomplete - Custom word completion for (Rich)Edit controls
Replies: 30
Views: 9245

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 ...
by A_AhkUser
24 Jul 2020, 10:05
Forum: Scripts and Functions
Topic: [Lib] vKeyboard - a visual keyboard library
Replies: 8
Views: 2291

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...
by A_AhkUser
24 Jul 2020, 04:29
Forum: Ask For Help
Topic: How to send text to a location in a window? Topic is solved
Replies: 29
Views: 7193

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...
by A_AhkUser
23 Jul 2020, 18:12
Forum: Ask For Help
Topic: How to send text to a location in a window? Topic is solved
Replies: 29
Views: 7193

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...
by A_AhkUser
13 Jul 2020, 09:40
Forum: Ask For Help
Topic: Creating an array using Object notation Topic is solved
Replies: 2
Views: 820

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"...
by A_AhkUser
12 Jul 2020, 17:59
Forum: Scripts and Functions
Topic: [Class] eAutocomplete - Custom word completion for (Rich)Edit controls
Replies: 30
Views: 9245

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 ...
by A_AhkUser
12 Jul 2020, 17:33
Forum: Scripts et Fonctions
Topic: Interface orientée-objet Dictation (reconnaissance vocale).
Replies: 4
Views: 7365

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...
by A_AhkUser
20 Jul 2019, 10:43
Forum: Scripts et Fonctions
Topic: Interface orientée-objet Dictation (reconnaissance vocale).
Replies: 4
Views: 7365

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...
by A_AhkUser
20 Jul 2019, 10:10
Forum: Pedir Ayuda
Topic: FECHAS Topic is solved
Replies: 4
Views: 2070

Re: FECHAS Topic is solved

Por favor, me alegra saber que puede ser útil!

Saludos
by A_AhkUser
04 Jul 2019, 09:19
Forum: Scripts and Functions
Topic: [Class] eAutocomplete - Custom word completion for (Rich)Edit controls
Replies: 30
Views: 9245

Re: [Class] eAutocomplete - Custom word completion for (Rich)Edit controls

Hi oldbrother,
oldbrother wrote:
04 Jul 2019, 08:04
Bug Report:
it doesn't work with words start with "0"
Actually; thanks much for the information. This should work now (v1.2.21).
Cheers.

Go to advanced search