Search found 39 matches

by svArtist
14 Apr 2019, 06:22
Forum: Scripts and Functions
Topic: OSD Console / Log
Replies: 16
Views: 2097

Re: OSD Console / Log

I'm happy to hear that :)
If it becomes important and you feel like looking at it, keep me in the loop. In case I can improve something. (Error handling in higher level functions is a bitch, not sure if we can even detect something is going wrong from here)
by svArtist
12 Apr 2019, 20:46
Forum: Scripts and Functions
Topic: OSD Console / Log
Replies: 16
Views: 2097

Re: OSD Console / Log

After using the \save command, the save dialog box did pop up and I choose D:\, but the log file didn't appear on the D:\ disk Hmmm... that is strange. I can't reproduce the behavior. Maybe there is an issue with acces rights going on. Have you tried running AHK as Administrator? (Go to the locatio...
by svArtist
12 Apr 2019, 15:54
Forum: Scripts and Functions
Topic: OSD Console / Log
Replies: 16
Views: 2097

Re: OSD Console / Log

How to save the log to the disk? "\save" command and "alwaysFlushToDisk" seems both not working normally on my machine, or I misunderstand or misuse somewhere? If so, please correct me. As the gif below shows, I executed the command "\save" and there's no log file shown on the disk. https://i.imgur...
by svArtist
14 Mar 2019, 11:30
Forum: Ask For Help
Topic: Size and position the UpDown (Numeric Up/Down, spinner) Control in GUI? Topic is solved
Replies: 2
Views: 87

Re: Size and position the UpDown (Numeric Up/Down, spinner) Control in GUI? Topic is solved

Try this: [...] "buddy" [...] gui, tpset: add, Edit, w200 gui, tpset: add, UpDown,, 5 I hope that helps. Aaaaah, I didn't look closely enough on what the UpDown control actually is! I thought it was always a numeric spinner - I didn't know it's actually and weirdly only a half-component, latching o...
by svArtist
14 Mar 2019, 09:36
Forum: Ask For Help
Topic: Size and position the UpDown (Numeric Up/Down, spinner) Control in GUI? Topic is solved
Replies: 2
Views: 87

Size and position the UpDown (Numeric Up/Down, spinner) Control in GUI? Topic is solved

I can't seem to get the UpDown control to conform to ANY of my size and positioning options. I compared it to the exact same line, only replacing it with an Edit control: That one works perfectly, just as expected. I've tried different methods of positioning and sizing the UpDown (absolute, relative...
by svArtist
10 Dec 2018, 10:30
Forum: Scripts and Functions
Topic: OSD Console / Log
Replies: 16
Views: 2097

UPDATE: OSD Console / Log

I just realized I never updated this thread. I've since switched to a class-based implementation to keep everything tidy. Along the way I also added some things. Version 1.1.1 : ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Ben's Console, V 1.1.1 ; ; Contact: ahk@benjamin-philipp.com ; ;;;;;;;;;;;;;;;;;;...
by svArtist
09 Mar 2018, 07:25
Forum: Ask For Help
Topic: Disabling "ctrl" for single process, or unless used with other key
Replies: 0
Views: 128

Disabling "ctrl" for single process, or unless used with other key

Hi! I'm currently on a computer with a program that picks up the CTRL key, of all keys, to activate a Push-To-Talk function within a conference setting. Now, since I'm a heavy user of shortcuts, I'm constantly sending short bursts of static over PTT. I'd like to: either stop the program (easy to add...
by svArtist
14 Sep 2017, 01:59
Forum: Ask For Help
Topic: WinSet, Region displays gray bar even when Caption / Title Bar is removed?
Replies: 1
Views: 192

WinSet, Region displays gray bar even when Caption / Title Bar is removed?

Hi, I'm using a script to remove the title bar (caption) and borders of a window using styles. In addition to that, I thought it would be nice to get rid of some 30-ish pixels within the window as well. However, when I use WinSet, Region, I am presented with something that looks like a title bar aga...
by svArtist
07 Feb 2017, 12:56
Forum: Scripts and Functions
Topic: OSD Console / Log
Replies: 16
Views: 2097

Re: OSD Console / Log

In most cases #SingleInstance force does work, but what I found is that it fails spectacularly at times when running a script as a task for example where the windows task scheduler occasionally starts multiple instances regardless. So I use my instance checking approach as a redundancy,as I run som...
by svArtist
07 Feb 2017, 10:57
Forum: Ask For Help
Topic: Handling negative values in LParam DWORD in WM_MOVE (0x03) message Topic is solved
Replies: 10
Views: 964

Re: Handling negative values in LParam DWORD in WM_MOVE (0x03) message Topic is solved

Another option: ; Numput() stores the value of lParam (DWORD / UInt) in x86 (litte endian / inverse) byte order. ; So 0xHHHLLHLL becomes LLLHHLHH in memory. ; The x-position (low word) is stored at address_of_buffer + 0. ; The y-position (high word) ist stored at address_of_buffer + 2. ; Using "Sho...
by svArtist
07 Feb 2017, 10:40
Forum: Ask For Help
Topic: Handling negative values in LParam DWORD in WM_MOVE (0x03) message Topic is solved
Replies: 10
Views: 964

Re: Handling negative values in LParam DWORD in WM_MOVE (0x03) message Topic is solved

The calculator that comes with windows, in "programmer" mode is a pretty good tool for visualizing this. Look at the binary representation of the numbers. 1. Yes. "Ternary" operator. 2. 0x8000 is 1000 0000 000 0000 in binary. 3. The leftmost bit is the "sign" bit. If it is 1 then the number is nega...
by svArtist
07 Feb 2017, 10:24
Forum: Ask For Help
Topic: Handling negative values in LParam DWORD in WM_MOVE (0x03) message Topic is solved
Replies: 10
Views: 964

Re: Handling negative values in LParam DWORD in WM_MOVE (0x03) message Topic is solved

We have a shorthand à la condition ? outputIfTrue : outputIfNegative The condition uses bitwise AND for the input (which is a DWORD (32 bit)) and 0x8000 (which is 2^15; 1 + half the maximum value of a 16 bit integer in HEX) Somehow 2) determines if the number is negative. How? Alright, I've basical...
by svArtist
07 Feb 2017, 09:50
Forum: Ask For Help
Topic: Handling negative values in LParam DWORD in WM_MOVE (0x03) message Topic is solved
Replies: 10
Views: 964

Re: Handling negative values in LParam DWORD in WM_MOVE (0x03) message Topic is solved

jfi (found in my script collection) max(a, b) { return (a > b) ? a : b } min(a, b) { return (a < b) ? a : b } MAKEWORD(a, b) { return (a & 0xff) | ((b & 0xff) << 8) } MAKELONG(a, b) { return (a & 0xffff) | ((b & 0xffff) << 16) } LOWORD(l) { return l & 0xffff } HIWORD(l) { return (l >> 16) & 0xffff ...
by svArtist
07 Feb 2017, 08:55
Forum: Ask For Help
Topic: Handling negative values in LParam DWORD in WM_MOVE (0x03) message Topic is solved
Replies: 10
Views: 964

Re: Handling negative values in LParam DWORD in WM_MOVE (0x03) message Topic is solved

... X := (l & 0x8000 ? "-" ((~l)&0x7FFF)+1 : l&0x7FFF) ... Y := ((l>>16) & 0x8000 ? "-" ((~l>>16)&0x7FFF)+1 : (l>>16)&0x7FFF) - https://en.wikipedia.org/wiki/Two's_complement - http://www.vbforums.com/showthread.php?405047-Classic-VB-Why-is-TRUE-equal-to-1-and-not-1 <-- I'm usually suggesting this ...
by svArtist
06 Feb 2017, 23:21
Forum: Ask For Help
Topic: Handling negative values in LParam DWORD in WM_MOVE (0x03) message Topic is solved
Replies: 10
Views: 964

Handling negative values in LParam DWORD in WM_MOVE (0x03) message Topic is solved

Alright, I haven't the slightest clue about bitshifting, properly converting between signed and unsigned types, and the likes. This makes it damn near impossible to figure out where I even need to look for the problem here: I am using the message WM_MOVE to monitor when a window is moved. It works ...
by svArtist
06 Feb 2017, 19:46
Forum: Ask For Help
Topic: fn := Func(%this.Confused%) Topic is solved
Replies: 9
Views: 525

Re: fn := Func(%this.Confused%) Topic is solved

this.localFunctionName.Bind() takes the first argument for context I think this is incorrect, I think it is more like: A class method takes a *hidden* first parameter, which, when you call it in context, is passed for you. So by using Bind on a class method, you have to bind that first parameter as...
by svArtist
06 Feb 2017, 17:31
Forum: Ask For Help
Topic: fn := Func(%this.Confused%) Topic is solved
Replies: 9
Views: 525

Re: fn := Func(%this.Confused%) Topic is solved

Nice! I was just looking for that!!! :) One note to make things clearer: (I came here before looking up the proper documentation, so I was a bit thrown at first :D) While you can call a global function from inside a class with Func("FunctionName").Bind(Argument) and that's that, note that this.local...
by svArtist
06 Feb 2017, 09:02
Forum: Ask For Help
Topic: NewLine stopped working in Edit GUI Control? O.o Topic is solved
Replies: 5
Views: 582

Re: NewLine stopped working in Edit GUI Control? O.o Topic is solved

... or you should be able to set multiline for Edits at runtime. +Multi ? Well, first of all: Thank you. You're right. Second of all: AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAARGH!!!!!!!!!! I... I sincerely apologize for my inaptitude. I found it now, under GUI Styles. I had been m...
by svArtist
05 Feb 2017, 23:01
Forum: Ask For Help
Topic: NewLine stopped working in Edit GUI Control? O.o Topic is solved
Replies: 5
Views: 582

Re: NewLine stopped working in Edit GUI Control? O.o Topic is solved

Its working fine ... console.log("string`n") You should just add a newline manually when stuff are added to the console GuiControl, Text, % this.LogContsID, % this.LogContents . "`n" Holy. Shit. I actually just wrote a reply, talking about how I still don't know why it was behaving this way, and th...
by svArtist
05 Feb 2017, 18:49
Forum: Ask For Help
Topic: NewLine stopped working in Edit GUI Control? O.o Topic is solved
Replies: 5
Views: 582

NewLine stopped working in Edit GUI Control? O.o Topic is solved

What the... This has always been working. Today, it stopped working: Newline characters (`n) now don't do anything in my Edit control. I did not change anything about my AHK installation or any settings... I can simply write msgbox, % this.LogContents GuiControl, Text, % this.LogContsID, % this.LogC...

Go to advanced search