Is it possible to somehow add php support?
All I found is this, which relies on php being executed/initiated by your webserver (obviously, not an ahk one).
Search found 48 matches
- 15 Jan 2017, 06:04
- Forum: Scripts and Functions (v1)
- Topic: AHKhttp - HTTP Server
- Replies: 60
- Views: 42848
- 24 Oct 2016, 20:47
- Forum: Ask for Help (v1)
- Topic: Make G-Label execute the specified function with pre-defined arguments
- Replies: 26
- Views: 7085
Re: Make G-Label execute the specified function with pre-defined arguments
That's a mistake I did, I meant just some function, not the built-in AHK's func() function that is related to Functional Objects.nnnik wrote:You need to read up on the func function.
You use func( "banana" ) to get the func-Object of the function named banana.
- 24 Oct 2016, 13:57
- Forum: Ask for Help (v1)
- Topic: Make G-Label execute the specified function with pre-defined arguments
- Replies: 26
- Views: 7085
Re: Make G-Label execute the specified function with pre-defined arguments
The simpler the code - the less error prone it is. True but this code doesn't have any errors, nor is it that complex. And if I were to discuss your class as a replacement for the feature I requested - you should be aware, that your class in general doesn't achieve what I requested, it only does so...
- 24 Oct 2016, 13:38
- Forum: Ask for Help (v1)
- Topic: Make G-Label execute the specified function with pre-defined arguments
- Replies: 26
- Views: 7085
Re: Make G-Label execute the specified function with pre-defined arguments
The shorter the code (if it's not the economy on code readability) - the better. That's oversimplified. No, it's not. That's an axiom. The only condition I omitted (because it's obvious) is that the code is supposed to achieve the result it was written to achieve. My aim is to bind a funcA(funcB())...
- 24 Oct 2016, 05:48
- Forum: Ask for Help (v1)
- Topic: Make G-Label execute the specified function with pre-defined arguments
- Replies: 26
- Views: 7085
Re: Make G-Label execute the specified function with pre-defined arguments
nnnik , oh jeez, that's way more complex and way longer than even having a label for the purpose to make a funcA(funcB()) call. Why would I do that? Seems like we have a misunderstanding. Sounds like It's too complex. I want everything to be easy and so that I can solve it easily without having to ...
- 23 Oct 2016, 14:47
- Forum: Ask for Help (v1)
- Topic: Make G-Label execute the specified function with pre-defined arguments
- Replies: 26
- Views: 7085
Re: Make G-Label execute the specified function with pre-defined arguments
youre wanting to pass a dynamic function as a parameter to another bound function. i guess thats not possible Oh, and I thought I was requesting a feature that already existed. nnnik , oh jeez, that's way more complex and way longer than even having a label for the purpose to make a funcA(funcB()) ...
- 23 Oct 2016, 10:28
- Forum: Ask for Help (v1)
- Topic: Make G-Label execute the specified function with pre-defined arguments
- Replies: 26
- Views: 7085
Re: Make G-Label execute the specified function with pre-defined arguments
MsgBox, % "The dice has rolled " dice_N ^why would you ever think that that syntax calls a function? where did you get that idea? I didn't think so and I don't know where you got that idea that I thought it did call a function. What I was requesting is that I wouldn't have to spawn useless labels l...
- 23 Oct 2016, 10:22
- Forum: Ask for Help (v1)
- Topic: Make G-Label execute the specified function with pre-defined arguments
- Replies: 26
- Views: 7085
Re: Make G-Label execute the specified function with pre-defined arguments
? … dealer(dice_N) { MsgBox, % "The dice has rolled " %dice_N%() } … Nah, this ruins the whole purpose of using functional objects if I have to modify my function. If I modify the function this way - it stops working for simple calls like dealer(var) . If I am to modify my function - I could probab...
- 23 Oct 2016, 09:09
- Forum: Ask for Help (v1)
- Topic: Make G-Label execute the specified function with pre-defined arguments
- Replies: 26
- Views: 7085
Re: Make G-Label execute the specified function with pre-defined arguments
Could you, please, show how? I thought you meant rollTheDice_F := Func("rollTheDice") dealer_F := Func("dealer").Bind(rollTheDice_F) Gui, New Gui, Add, Button, Vvar_H, Click me GuiControl, +G, var_H, %dealer_F% Gui, Show Return dealer(dice_N) { MsgBox, % "The dice has rolled " dice_N } rollTheDice()...
- 23 Oct 2016, 06:20
- Forum: Ask for Help (v1)
- Topic: Make G-Label execute the specified function with pre-defined arguments
- Replies: 26
- Views: 7085
Re: Make G-Label execute the specified function with pre-defined arguments
I was too quick in my judgment: functors as G-Labels suck, they don't give what I initially expressed as a feature request: they accept only simple arguments, another function call can't be properly used as an argument for the main function call: functor_F := Func("dealer").Bind(rollTheDice()) Gui, ...
- 21 Oct 2016, 12:27
- Forum: Ask for Help (v1)
- Topic: How to release the object from memory?
- Replies: 13
- Views: 4849
Re: How to release the object from memory?
It's a pity this didn't get resolved.
- 17 Oct 2016, 18:07
- Forum: Ask for Help (v1)
- Topic: Getting TID from PID
- Replies: 2
- Views: 1702
Re: Getting TID from PID
http://msdn.microsoft.com/en-us/library ... 85%29.aspx
Code: Select all
processID_N := 2016
For thread In ComObjGet("winmgmts:").ExecQuery("SELECT Handle FROM Win32_Thread WHERE ProcessHandle = " processID_N)
MsgBox, % thread.Handle
- 17 Oct 2016, 17:42
- Forum: Ask for Help (v1)
- Topic: Make G-Label execute the specified function with pre-defined arguments
- Replies: 26
- Views: 7085
Re: Make G-Label execute the specified function with pre-defined arguments
See, ErrorLevel . Oh, thanks for pointing at it, I totally missed this paragraph: Each thread retains its own value of ErrorLevel, meaning that if the current thread is interrupted by another, when the original thread is resumed it will still have its original value of ErrorLevel, not the ErrorLeve...
- 17 Oct 2016, 12:53
- Forum: Ask for Help (v1)
- Topic: Make G-Label execute the specified function with pre-defined arguments
- Replies: 26
- Views: 7085
Make G-Label execute the specified function with pre-defined arguments
Latest stable version of AHK does support function calls, but very often it is useless because the user can't specify own arguments for that call. I need that. Docs say that the function may get called with these args: function(CtrlHwnd, GuiEvent, EventInfo, ErrorLevel:="") , and I know I could pass...
- 17 Oct 2016, 10:34
- Forum: Ask for Help (v1)
- Topic: LAN discovery
- Replies: 2
- Views: 1551
Re: LAN discovery
Thanks for the hint, although I said I needed to get a list of online nodes - I actually need a list of both online and known offline nodes, so yeah, I think I'll use arp's table, but that's not enough, as most of items from that table are dynamic and thus get periodically wiped. I know I could eith...
- 17 Oct 2016, 09:30
- Forum: Ask for Help (v1)
- Topic: LAN discovery
- Replies: 2
- Views: 1551
LAN discovery
Is there a way to get a list of online nodes from the LAN subnet (with 16 (or even just 24) bit mask)? It doesn't matter if they will be represented by their hostnames or by their IP addresses. I know of only two ways to do that. The first one is to loop through the list of addresses of that subnet ...
- 17 Oct 2016, 07:49
- Forum: AutoHotkey Development
- Topic: if var in MatchList
- Replies: 11
- Views: 15725
Re: if var in MatchList
was there any replacement for it? No. That's why in is reserved for future use. or do we just have to write it ourselves with Loop, Parse? No. You can copy someone else or use some other method if you want. :P It probably wouldn't be difficult for someone to reuse the if-var-in code to implement th...
- 17 Oct 2016, 07:40
- Forum: Scripts and Functions (v1)
- Topic: AHK - WMI - Snippets
- Replies: 32
- Views: 33463
Re: AHK - WMI - Snippets
What works faster? Executing WMI queries to get data or do direct WinAPI calls?
I suppose executing WMI queries should be a slower approach (although, I honestly don't know that), but I wonder how much slower (because I could choose WMI-query approach as it takes up less lines of code, lol).
I suppose executing WMI queries should be a slower approach (although, I honestly don't know that), but I wonder how much slower (because I could choose WMI-query approach as it takes up less lines of code, lol).
- 17 Oct 2016, 07:13
- Forum: AutoHotkey Development
- Topic: MsgBox, InputBox, TrayTip
- Replies: 13
- Views: 11081
Re: MsgBox, InputBox, TrayTip
Honestly, I don't know. I just feel like for better support of dynamic GUIs AHK should better support getting options from a variable (that contains a string) or an array (since I figured out how to work with arrays and objects - I now use them almost everywhere to store lists instead of using plain...
- 16 Oct 2016, 18:51
- Forum: AutoHotkey Development
- Topic: MsgBox, InputBox, TrayTip
- Replies: 13
- Views: 11081
Re: MsgBox, InputBox, TrayTip
JavaScript has alert(), confirm() and prompt(). I'd like to see those in AHKv2 as well. MsgBox Text [, Title, Options, ByRef Result] Result := MsgBox(Text [, Title, Options, ByRef Result]) That is acceptable. Options would be as it is now, or optionally a space-delimited list of more memorable stri...