Search found 31 matches

by Hobby77
15 May 2024, 20:40
Forum: AutoHotkey_H
Topic: What can you use AutoHotkey_H for that would be difficult otherwise?
Replies: 4
Views: 1548

Re: What can you use AutoHotkey_H for that would be difficult otherwise?

Do you know ahk is gpl2, it means if anyone want to know your source code, you must show it. do you know that the GPL only applies to the interpreter itself, not to scripts written? no? read and google When compiling into exe, it references the entire autohotkey and will be contaminated by the GPL ...
by Hobby77
24 Mar 2024, 20:52
Forum: AutoHotkey_H
Topic: What can you use AutoHotkey_H for that would be difficult otherwise?
Replies: 4
Views: 1548

Re: What can you use AutoHotkey_H for that would be difficult otherwise?

In general, AHK_H encompasses all the necessary features required for a production-level AHK software to distribute to the masses, whereas AHK_L is more suitable for personal projects where you execute source script files instead of packaging them into an executable. The dll allows languages like p...
by Hobby77
25 Jun 2023, 23:57
Forum: Ask for Help (v2)
Topic: Can the fat arrow syntax be directly used to define functions? Topic is solved
Replies: 1
Views: 328

Can the fat arrow syntax be directly used to define functions? Topic is solved

Can the fat arrow syntax be directly used to define functions(not in class)? Although using it this way is not wise, I just want to know if it is safe to use it this way?

Such like:

a:=1
b:=2
doSome(a,b)
return

doSome(p1,p2) => MsgBox(p1>p2?"p1 win":"p2 win")
by Hobby77
17 Jun 2023, 00:34
Forum: Ask for Help (v1)
Topic: Does activeX control support CSS animation? Topic is solved
Replies: 7
Views: 747

Re: Does activeX control support CSS animation? Topic is solved

Need to set undocumented feature - FEATURE_ALIGNED_TIMERS. On startup of application, before instantiating the browser control, set the following feature control registry keys under HKCU: FEATURE_BROWSER_EMULATION – set to the desired version of the IE rendering engine FEATURE_GPU_RENDERING – set t...
by Hobby77
16 Jun 2023, 20:41
Forum: Ask for Help (v1)
Topic: Does activeX control support CSS animation? Topic is solved
Replies: 7
Views: 747

Re: Does activeX control support CSS animation? Topic is solved

You dont need any magic for such a task. Gui Add, ActiveX, w980 h981 vWB, about:<!DOCTYPE html><meta http-equiv="X-UA-Compatible" content="IE=edge"> .... It's running, thank you very much for your help!! But it seems that its animation is not smooth, and it will be smoother in the browser, Is there...
by Hobby77
16 Jun 2023, 10:31
Forum: Ask for Help (v1)
Topic: Does activeX control support CSS animation? Topic is solved
Replies: 7
Views: 747

Does activeX control support CSS animation? Topic is solved

This is my script, and the content in the HTML can be run in IE, But it cannot run in ahk Gui Add, ActiveX, w980 h981 vWB, about:blank html := " ( <!DOCTYPE html><html> <head> <meta http-equiv='X-UA-Compatible' content='IE=edge'> <style> div { width:100px; height:100px; background:red; position:rela...
by Hobby77
28 May 2023, 02:25
Forum: Ask for Help (v2)
Topic: How to pass array parameter to dllcall? Topic is solved
Replies: 2
Views: 533

How to pass array parameter to dllcall? Topic is solved

this is a dll function from C program: __declspec(dllexport) int normqsp(double* values) this is my script: values:= [0.12 , 2.12 , 3.12] valuesP := Buffer(8 * values.Length,0) loop values.Length NumPut("Double", values[A_Index],valuesP,8*(A_Index-1)) DllCall("Project1.dll\normqsp","ptr",valuesP,"In...
by Hobby77
10 Apr 2023, 19:23
Forum: Scripts and Functions (v2)
Topic: AHK SDL2 Joystick
Replies: 2
Views: 639

Re: AHK SDL2 Joystick

@geek
Thank you very much for correcting, this really greatly optimizes the code
by Hobby77
10 Apr 2023, 10:57
Forum: Ask for Help (v2)
Topic: Simple AHK wrapper for SDL2 joystick Topic is solved
Replies: 11
Views: 818

Re: Simple AHK wrapper for SDL2 joystick Topic is solved

@swagfag
Thank you for your answer, maybe I need to learn more about it
by Hobby77
10 Apr 2023, 10:46
Forum: Scripts and Functions (v2)
Topic: AHK SDL2 Joystick
Replies: 2
Views: 639

AHK SDL2 Joystick

Im Not sure if anyone will need this, because I'm confused by AHK's default joystick feature, So I made this script, which helps us identify the name, GUID and key of each joystick, It can help us identify PS4 controller, Xbox360 controller, Nintendo switch pro controller etc. we can assign function...
by Hobby77
10 Apr 2023, 09:08
Forum: Ask for Help (v2)
Topic: Simple AHK wrapper for SDL2 joystick Topic is solved
Replies: 11
Views: 818

Re: Simple AHK wrapper for SDL2 joystick Topic is solved

no, like this: joystick := SDL2.SDL_JoystickOpen(0) guid := Buffer(16,0) pguid := DllCall("SDL2.dll\SDL_JoystickGetGUID", 'Ptr', guid, "Ptr", joystick,"CDecl Ptr") also a GUID is not a string, so trying to use StrGet on it makes no sense Thank you very much for your reply, it worked!!! I ended up u...
by Hobby77
10 Apr 2023, 08:12
Forum: Ask for Help (v2)
Topic: Simple AHK wrapper for SDL2 joystick Topic is solved
Replies: 11
Views: 818

Re: Simple AHK wrapper for SDL2 joystick Topic is solved

pass a pointer to a caller-allocated(ie by you) 16byte Buffer as the first hidden parameter Is it like this? But still doesn't work joystick := SDL2.SDL_JoystickOpen(0) pguid := Buffer(16,0) pguid := DllCall("SDL2.dll\SDL_JoystickGetGUID", "Ptr", joystick,"CDecl Ptr") MsgBox(StrGet(pguid))
by Hobby77
10 Apr 2023, 01:21
Forum: Ask for Help (v2)
Topic: Simple AHK wrapper for SDL2 joystick Topic is solved
Replies: 11
Views: 818

Re: Simple AHK wrapper for SDL2 joystick Topic is solved

now it can correctly recognizes the PS4, Nintendo Switch Pro Controller buttons, but the DLLCALL function does not correctly return the value of the GUID type, any good idea?

dll function:
https://wiki.libsdl.org/SDL2/SDL_JoystickGetGUID
by Hobby77
09 Apr 2023, 20:36
Forum: Ask for Help (v2)
Topic: How to get the properties of nested classes Topic is solved
Replies: 2
Views: 320

How to get the properties of nested classes Topic is solved

Is it possible to create nested classes, And get the properties of nested classes, like this: Class ClassP{ propP => "PropP" c => ClassC() Class ClassC{ propC => "PropC" } } test := ClassP() MsgBox(test.c.propC) This script is wrong, I was just wondering if a similar function could be implemented, a...
by Hobby77
09 Apr 2023, 12:04
Forum: Ask for Help (v2)
Topic: Simple AHK wrapper for SDL2 joystick Topic is solved
Replies: 11
Views: 818

Re: Simple AHK wrapper for SDL2 joystick Topic is solved

Sorry I made a stupid mistake, it's a union, so they share some values, I think I need to rewrite the script
by Hobby77
09 Apr 2023, 10:47
Forum: Ask for Help (v2)
Topic: Simple AHK wrapper for SDL2 joystick Topic is solved
Replies: 11
Views: 818

Re: Simple AHK wrapper for SDL2 joystick Topic is solved

https://www.dll-files.com/sdl2.dll.html
This is the download URL of the SDL2.dll, if you are interested, thank you very much.
by Hobby77
09 Apr 2023, 10:41
Forum: Ask for Help (v2)
Topic: Simple AHK wrapper for SDL2 joystick Topic is solved
Replies: 11
Views: 818

Simple AHK wrapper for SDL2 joystick Topic is solved

I am making a simple ahk wrapper for SDL2.dll to help me identify GUIDs, models, mapping keys, etc. I received the SDL_PollEvent value using Buffer, But I don't know how to get more specific values, such as jdevice.which and how to be able to correctly receive the return value of the SDL_JoystickGet...
by Hobby77
29 Mar 2023, 21:52
Forum: Ask for Help (v2)
Topic: How to avoid threads being suspended when the dircopy function running Topic is solved
Replies: 8
Views: 558

Re: How to avoid threads being suspended when the dircopy function running Topic is solved

It's hard to tell in your sentence which part you are attributing to me, but however I break up your sentence, you're incorrectly attributing thoughts to me. I checked the documentation for v2, it does not support real multiple threads No one said v2 does support it. In fact, the point was that it ...
by Hobby77
29 Mar 2023, 20:11
Forum: Ask for Help (v2)
Topic: each click sends key
Replies: 4
Views: 356

Re: each click sends key

Maybe you need an int value variable, add 1 every time you click, and clear it for the third time.

Go to advanced search