Search found 1073 matches

by A_AhkUser
Yesterday, 06:43
Forum: Ask For Help
Topic: Is there a simple and reliable way to process JSON data? Topic is solved
Replies: 38
Views: 583

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 :=...
by A_AhkUser
Yesterday, 06:26
Forum: Ask For Help
Topic: Is there a simple and reliable way to process JSON data? Topic is solved
Replies: 38
Views: 583

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...
by A_AhkUser
20 Jun 2019, 19:35
Forum: Offtopic
Topic: Can equaly reasonable minds think differently?
Replies: 16
Views: 775

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...
by A_AhkUser
17 Jun 2019, 15:14
Forum: Offtopic
Topic: Can equaly reasonable minds think differently?
Replies: 16
Views: 775

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 ...
by A_AhkUser
17 Jun 2019, 13:32
Forum: Ask For Help
Topic: WinWaitActive in SetTimer keeps interfearing with the rest of the script
Replies: 4
Views: 173

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...
by A_AhkUser
17 Jun 2019, 13:10
Forum: Pedir Ayuda
Topic: Ejecutar la tecla Win con otra tecla Topic is solved
Replies: 1
Views: 93

Re: Ejecutar la tecla Win con otra tecla Topic is solved

4R13L wrote:
15 Jun 2019, 22:04
Hola amigo,

Esto debería funcionar:

Code: Select all

~Space::Send, {LWin}
> Send - Syntax & Usage
by A_AhkUser
17 Jun 2019, 13:02
Forum: Pedir Ayuda
Topic: Una ayudita?
Replies: 1
Views: 78

Re: Una ayudita?

Hola ARTEL,
ARTEL wrote:
08 Jun 2019, 19:04
Infortunadamente, no existe medio directo in ahk para "remapear", es decir reasignar un botón del mando a otros determinados botones del mando (vid. Trying to remap or "send" as a joystick?).

Saludos
by A_AhkUser
15 Jun 2019, 16:49
Forum: Offtopic
Topic: Can equaly reasonable minds think differently?
Replies: 16
Views: 775

Re: Can equaly reasonable minds think differently?

So that there is no ambiguity: I made the cynical politician speak. My goal was to show that each choice is choice of the finitness. The militarization is actually a political problem ; which must in any case be denounced - and it begins with the refusal of the common, pious explication: 'the count...
by A_AhkUser
15 Jun 2019, 15:00
Forum: Offtopic
Topic: Can equaly reasonable minds think differently?
Replies: 16
Views: 775

Re: Can equaly reasonable minds think differently?

(I really need to stop with such fussy writing; I barely understand what I wrote above... :? :terms: Sorry) - Should our country (USSR) spend more or less on military? - The most important thing is that we stay in power! Regarding your question: difficult to say; for historical reasons, our country...
by A_AhkUser
13 Jun 2019, 09:17
Forum: Ask For Help
Topic: How to store variables outside a function ? Topic is solved
Replies: 4
Views: 126

Re: How to store variables outside a function ? Topic is solved

HI WalkerOfTheDay , I want to store the MouseGetPos coordinates outside of the function so I can use them later on in the script to click the position. How do I do this ?? Parameters are always implicitly locals, simply remove their declaration in the function definition: ClickPosition("Invoicenumbe...
by A_AhkUser
12 Jun 2019, 20:42
Forum: Offtopic
Topic: Can equaly reasonable minds think differently?
Replies: 16
Views: 775

Re: Can equaly reasonable minds think differently?

Gio Allow me to see this as a feedback of the symptomatic discussion " Gods don't exist . Dot.". So, what happened there? An unscrupulous emphasis on freedom, what is more using an obsolete metaphysic of freedom... A prejudicial nihilification of other's speech by subsuming it summoning ideal types...
by A_AhkUser
12 Jun 2019, 19:45
Forum: Скрипты для Игр
Topic: Нужно, значит, написать один скрипт...
Replies: 3
Views: 1446

Re: Нужно, значит, написать один скрипт...

привет jojoadventure,
jojoadventure wrote:
11 Jun 2019, 15:36
А как возможно передвинуть курсор после этого?
> MouseMove (на русском).
в некоторых разделах русской документации могут быть приведены устаревшие сведения. Поэтому не исключено, что вам необходимо будет также рассмотреть документацию на английском языке.
by A_AhkUser
12 Jun 2019, 19:31
Forum: Ask For Help
Topic: Javascript Retrieve Value Without Assigning Variable Topic is solved
Replies: 3
Views: 127

Re: Javascript Retrieve Value Without Assigning Variable Topic is solved

Btw, for this specific example, you can write, for example:

Code: Select all

doc := ComObjCreate("htmlfile")
doc.write("<meta http-equiv=""X-UA-Compatible"" content=""IE=9"">")
MsgBox, % doc.parentWindow.JSON.stringify(doc.parentWindow.Array(5))
by A_AhkUser
11 Jun 2019, 10:46
Forum: Ask For Help
Topic: Differentiating between a label and a function.
Replies: 6
Views: 248

Re: Differentiating between a label and a function.

for k, v in ObjClone(SomeClass.instances) instance.dispose(), SomeClass.instances.delete(k) k would be a instances of the class, and v would be the keys (right?). How would I get the keys and values to be represented by k and v? This is how SomeClass.instances is populated: SomeClass.instances[ hwn...
by A_AhkUser
09 Jun 2019, 17:53
Forum: Ask For Help
Topic: Differentiating between a label and a function.
Replies: 6
Views: 248

Re: Differentiating between a label and a function.

I notice that you are using Local I had assumed that even without adding that they would be local. [...] I have the feeling that this will create a local variable even if there is a super global declared elsewhere. You're right about that - see also assume-global mode and force-local mode for more ...
by A_AhkUser
08 Jun 2019, 10:27
Forum: Ask For Help
Topic: Differentiating between a label and a function.
Replies: 6
Views: 248

Re: Differentiating between a label and a function.

Hi Hellbent , As I see it, your implementation is consistent and cogent. However, you missed at least two things in the current one: if the label is a function it can optionally accept parameter(s) ; also, in this case, the return value can be significant . Some other suggestions: the user-defined l...
by A_AhkUser
07 Jun 2019, 19:48
Forum: Offtopic
Topic: Do you have any religion? | What's your religion?
Replies: 21
Views: 2941

Re: Do you have any religion? | What's your religion?

Here's some ideas about atheism since I "voted" atheist. I see atheism by excellence as nothing other than the criticism of the theistic theses. This being said, it is, especially in this case, interesting to always have in mind the etymology of criticism (critical etc.): crisis . First of all, crit...
by A_AhkUser
07 Jun 2019, 19:01
Forum: Ask For Help
Topic: Can't stop Timer object from instance Topic is solved
Replies: 3
Views: 183

Re: Can't stop Timer object from instance Topic is solved

Hi josemaloco , I'm not sure to fully understand what you're trying to implement. Here's a code more or less based on yours: #NoEnv #SingleInstance force #Warn SendMode, Input OnExit, handleExit return F1::new Timer(1000, Func("send").bind("1")) F2::new Timer(2000, Func("send").bind("2")) F3:: hand...
by A_AhkUser
07 Jun 2019, 18:17
Forum: Ask For Help
Topic: Can you move the mouse in a random curved path?
Replies: 23
Views: 567

Re: Can you move the mouse in a random curved path?

wolf_II wrote:
07 Jun 2019, 15:46
Example:
Nice one wolf_II, thanks for sharing.
by A_AhkUser
27 May 2019, 11:02
Forum: Ask For Help
Topic: Who can give an example of a simple User-defined function objects? Topic is solved
Replies: 4
Views: 283

Re: Who can give an example of a simple User-defined function objects? Topic is solved

I don't know about function objects. I don't understand what Call(a, b) and __Call(method, args*) are used for. Can anyone explain or give a simple example? Example 1: #NoEnv #SingleInstance force #Warn SetTitleMatchMode, 2 fn := new FObject("WinActive") return !i::MsgBox % %fn%("(.*- )?YouTube(?= ...

Go to advanced search