Search found 186 matches

by Miguel7
24 Apr 2018, 06:20
Forum: Scripts and Functions (v1)
Topic: Freezer - A GUI for Python's cx_freeze
Replies: 3
Views: 1826

Re: Freezer - A GUI for Python's cx_freeze

The short version is "libraries". AHK is awesome, and on Windows I'd say as good as or maybe even better than Python for most things (cuz as you pointed out Python seems to have way too many compatibility problems). But people aren't writing AHK bindings to popular open-source libraries, or implemen...
by Miguel7
23 Apr 2018, 21:40
Forum: Scripts and Functions (v1)
Topic: Freezer - A GUI for Python's cx_freeze
Replies: 3
Views: 1826

Freezer - A GUI for Python's cx_freeze

Hey guys, So for any of you Python buffs out there, this little script can be a nice shortcut. For those of you who don't know, Python is an interpreted language like AHK, but sharing them on Windows can be a PITA. So they invented a program called "cx_freeze" that compiles scripts to an EXE. But it...
by Miguel7
27 Feb 2018, 17:07
Forum: Other Programming Languages
Topic: SQL timestamps: ON UPDATE do nothing?
Replies: 0
Views: 1972

SQL timestamps: ON UPDATE do nothing?

Hey guys, I've been dealing with a bizarre and frustrating problem on my web server (it's a LAMP stack) where for some reason, every time you create a field of type TIMESTAMP (from the UI, from SQL code, or programmatically from PHP) it makes a unilateral decision that I absolutely need to add "ON U...
by Miguel7
31 Jan 2018, 17:33
Forum: Other Programming Languages
Topic: Git questions for web apps
Replies: 1
Views: 2452

Git questions for web apps

Hey guys, So usually whenever I'm doing anything in Git, the steps are pretty straightforward: clone the repo I want to work on to my local machine, write some code, test it, commit it, and push (and of course branching, merging etc. are part of this also - your basic Git stuff). This works great fo...
by Miguel7
21 Dec 2017, 09:33
Forum: Other Programming Languages
Topic: [SOLVED] How do AHK's A_ScreenWidth/Height work?
Replies: 7
Views: 7821

Re: How do AHK's A_ScreenWidth/Height work?

@jeeswg - Thanks for the suggestion. I like the idea of trying something in AHK to then translate it into C++, mostly because it would give me a lot more experience with DllCall and maybe lead to some fun AHK projects using open-source libs I use all the time. But in the end, it was querty12's answe...
by Miguel7
21 Dec 2017, 08:31
Forum: Other Programming Languages
Topic: [SOLVED] How do AHK's A_ScreenWidth/Height work?
Replies: 7
Views: 7821

Re: How do AHK's A_ScreenWidth/Height work?

@nnnik - Thanks for explaining all that! I assumed the code had something to do with the interpreter but never actually knew how an interpreter works. I've also never seen nested ternary operators like that before (though obviously it works) - guess they were trying to be Pythonic even though it's C...
by Miguel7
20 Dec 2017, 16:40
Forum: Other Programming Languages
Topic: [SOLVED] How do AHK's A_ScreenWidth/Height work?
Replies: 7
Views: 7821

Re: How do AHK's A_ScreenWidth/Height work?

Yeah, I've often had a hard time understanding the AHK source; so much of it seems to be in supporting the interpreter for the custom language that figuring out the actual functionality is like finding that one Christmas light out of hundreds that isn't lighting (lol). So I went where you suggested ...
by Miguel7
20 Dec 2017, 15:56
Forum: Other Programming Languages
Topic: [SOLVED] How do AHK's A_ScreenWidth/Height work?
Replies: 7
Views: 7821

[SOLVED] How do AHK's A_ScreenWidth/Height work?

Hey. I've been working on a C++ function to save a screenshot of the entire desktop to memory (for some cool computer vision stuff with OpenCV later) and I've run into a kinda weird problem: None of the Win32 APIs seem to be able to include the entire screen. Here's some of the things I've tried: //...
by Miguel7
01 Dec 2017, 23:41
Forum: Ask for Help (v1)
Topic: DllCall/A_LastError confusion
Replies: 2
Views: 955

DllCall/A_LastError confusion

Hey guys, I'm writing a script that uses the Windows Magnification API to make a game window on a website go fullscreen. I originally wrote my script in C++, and that worked fine, but now I want to add joystick mapping... which is a stupidly complex task in C++ (especially compared to AHK's examples...
by Miguel7
07 Sep 2017, 14:45
Forum: C#
Topic: C#: "field is not assigned to" warning
Replies: 0
Views: 7497

C#: "field is not assigned to" warning

Hey guys, newbie question here: I've got a class with a property that is an instance of another class. That other class has no parameters in its constructor (and really, no constructor at all) but I'm getting this ridonkulous message saying the property is never assigned too, will always be null, an...
by Miguel7
28 Jul 2017, 05:48
Forum: Ask for Help (v1)
Topic: Understanding Num/StrPut/Get and VarSetCapacity
Replies: 5
Views: 1822

Re: Understanding Num/StrPut/Get and VarSetCapacity

Very cool, :cool: I'll check them out tonight. Anyway, an idea just occurred to me, that maybe because the DLL returns a "const wchar_t *" (pointer to a Unicode string) maybe it returns a pointer to an invalid address somehow (like the string goes out of scope or something)? That's a pretty common m...
by Miguel7
28 Jul 2017, 02:44
Forum: Ask for Help (v1)
Topic: Understanding Num/StrPut/Get and VarSetCapacity
Replies: 5
Views: 1822

Re: Understanding Num/StrPut/Get and VarSetCapacity

Wow, these are really good tutorials! I wish I had found them ages ago when I barely even knew what a DLL was . It was a great refresher, and IMO there should be more great tutorial content like that on YouTube. But he only dealt with ints, and getting DllCall to work with ints is, as the guy said, ...
by Miguel7
27 Jul 2017, 16:15
Forum: Ask for Help (v1)
Topic: Understanding Num/StrPut/Get and VarSetCapacity
Replies: 5
Views: 1822

Understanding Num/StrPut/Get and VarSetCapacity

Hey guys, what's up Now that I know how to create my own DLLs, I've been very interested in learning how AHK can interact with them through DllCall. I wrote a super-simple DLL, code is below: #include "stdafx.h" #include <iostream> #include <string> #include <sstream> #include <Windows.h> #define EX...
by Miguel7
21 Jul 2017, 15:54
Forum: AutoHotkey_H
Topic: Looking for tutorials on AutoHotKey.dll
Replies: 2
Views: 5131

Re: Looking for tutorials on AutoHotKey.dll

Okay, awesome! This is exactly what I was looking for. Thanks. :) And what a cool idea to use the DLL from the AHK_H language itself to implement multithreading! In AHK_L I wrote a class that imitated this using Post/Send/OnMessage, and I've also used stdout or files to send data between two scripts...
by Miguel7
20 Jul 2017, 17:11
Forum: AutoHotkey_H
Topic: Looking for tutorials on AutoHotKey.dll
Replies: 2
Views: 5131

Looking for tutorials on AutoHotKey.dll

Hey guys, First off, way to go, HotKeyIt! :bravo: It's totally amazing that you built your own custom version of AHK. I'm an intermediate/borderline-advanced C++ developer myself, and I know how huge a project that is. Mostly because I started something similar. I wanted to separate AHK's functional...
by Miguel7
13 Jul 2017, 13:28
Forum: Other Programming Languages
Topic: Float+int math, c++ gcc
Replies: 1
Views: 2523

Re: Float+int math, c++ gcc

Off-hand, my best guess would be that the float (0.5f) is being reduced to 0 when you cast it to an int. Anything * 0 = 0, so it would make sense that calling it wouldn't return anything. On a separate note, what is the MCode? In the comment you said it's the compiled C++; does that mean it's some w...
by Miguel7
13 Jul 2017, 13:16
Forum: C/C++
Topic: ComObjCreate equivalent in C++?
Replies: 1
Views: 2532

ComObjCreate equivalent in C++?

Hey guys, So after hours of research and seemingly endless trial'n'error, I can get CoCreateInstance to work (theoretically - that is, it passes a check using the "FAILED" Win32 function)). Now I'm getting even further into the seedy underbelly of Microsoft's COM interop API, and I can't help but wo...
by Miguel7
12 May 2017, 12:27
Forum: Ask for Help (v1)
Topic: CLR.ahk question
Replies: 3
Views: 1361

Re: CLR.ahk question

Interesting. Guess I'll have to see how you did it in CLR.ahk itself. Thanks for the info. :)
by Miguel7
11 May 2017, 20:58
Forum: Ask for Help (v1)
Topic: Trying to up my game - questions for the gurus
Replies: 1
Views: 807

Trying to up my game - questions for the gurus

Hey what's up, I found a function I wanted to use in a project, and it works great, but I have absolutely no idea what the heck it's doing. Here's the code: SystemCursor(OnOff=1) ; INIT = "I","Init"; OFF = 0,"Off"; TOGGLE = -1,"T","Toggle"; ON = others { static AndMask, XorMask, $, h_cursor ,c0,c1,c...

Go to advanced search