Search found 150 matches

by LinearSpoon
26 Jun 2015, 08:52
Forum: Ask For Help
Topic: [SOLVED] Help calling Shell_NotifyIconGetRect(), build NOTIFYICONIDENTIFIER structure
Replies: 3
Views: 775

Re: Help calling Shell_NotifyIconGetRect(), build NOTIFYICONIDENTIFIER structure

For reference, here is the layout of the structure on all AHK builds: ANSI/Unicode 32 Struct: NOTIFYICONIDENTIFIER total size: 28 Member Pos C++ Type AHK Type cbSize @ 0 unsigned long uint hWnd @ 4 struct HWND__ * ptr uID @ 8 unsigned int uint guidItem @ 12 struct _GUID Unicode 64 bit Struct: NOTIFY...
by LinearSpoon
14 May 2015, 18:14
Forum: About This Community
Topic: Forum upgraded to phpBB v3.1.x
Replies: 177
Views: 89259

Re: Forum upgraded to phpBB v3.1.x

Code boxes are very difficult to read on Digi (Dark Blue)... If you can't change the highlighting, is there at least a way to change the background of code tags to a lighter color?
Image
by LinearSpoon
31 Mar 2015, 18:29
Forum: Ask For Help
Topic: [SOLVED] Problem getting old function regiongetcolor to work
Replies: 2
Views: 426

Re: Problem getting old function regiongetcolor to work

Everything works fine as posted on 32 bit AHK. I'm guessing you're running 64 bit AHK, which is a problem here since machine code differs between them. I couldn't find the C code infogulch used, but based on the function name and parameters I think I have guessed the intent. Replace SumIntBytes with...
by LinearSpoon
24 Mar 2015, 17:47
Forum: Ask For Help
Topic: [SOLVED] SSD disk + log file (modify last access time)
Replies: 6
Views: 818

Re: [HELP] SSD disk + log file (modify last access time)

I am unable to replicate this by simply opening the file. I have tested when the file was on an SSD and a "classic" hard drive, opening with Notepad, Notepad++, Visual Studio, SciTE4AutoHotkey, and HxD. Is it possible the program that creates the log file is updating it? You might want to ...
by LinearSpoon
19 Feb 2015, 00:45
Forum: Ask For Help
Topic: How does A_IsAdmin work?
Replies: 8
Views: 1012

Re: How does A_IsAdmin work?

This looks promising, but I've not tried it myself.
How to tell if the current user is in administrators group
by LinearSpoon
02 Feb 2015, 20:58
Forum: Ask For Help
Topic: Fungus Could Be Among Us
Replies: 9
Views: 1271

Re: Fungus Could Be Among Us

Found this:
https://github.com/unlimitedbacon/kfungus

I haven't tried it but python is cross platform so I would expect this would work for you.
by LinearSpoon
29 Jan 2015, 09:06
Forum: Ask For Help
Topic: Questions about DllCall's
Replies: 109
Views: 8945

Re: Questions about DllCall's

@jNizM
ULARGE_INTEGER is a union that is basically a UInt64. So in AHK, PULARGE_INTEGER is a "UInt64*", but AHK uses signed 64 bit integers. You'd probably be best off if you do what it says in the DllCall manual, ie: use Int64 and interpret negative values as very large values.
by LinearSpoon
24 Jan 2015, 11:29
Forum: Ask For Help
Topic: String appending - how does it work
Replies: 3
Views: 535

Re: String appending - how does it work

Add VarSetCapacity(string,-1) after the DllCall. The DllCall modifies the string, AHK's internal string length counter now has the wrong value. Append is probably optimized to jump to the end of the string based on the length counter rather than searching for the NULL. VarSetCapacity(str...
by LinearSpoon
14 Jan 2015, 17:34
Forum: Ask For Help
Topic: How can I prevent a program to open more than one window?
Replies: 5
Views: 608

Re: How can I prevent a program to open more than one window

You might get away with just changing the exe filename on one version. I don't have firefox installed so I can't really say if that might break anything (such as updating).

Then all you have to do is keep track of which one is running, and watch for the other version to pop up.
by LinearSpoon
14 Jan 2015, 14:42
Forum: Ask For Help
Topic: Search for selection "inside quotes" on Google
Replies: 11
Views: 1011

Re: Search for selection "inside quotes" on Google

Your problem is most likely that characters like quote and space need to be escaped in urls. This is sort of a brute force solution that just escapes the entire search term. SetFormat, Integer, H !#g:: ;Requires integer format set to hex (See SetFormat command) selection := getSelection() str := &qu...
by LinearSpoon
14 Jan 2015, 00:01
Forum: Ask For Help
Topic: PixelSearch faster than Gdip on benchmarks?
Replies: 2
Views: 1691

Re: PixelSearch faster than Gdip on benchmarks?

There is a lot of overhead in the GDIP_BitmapFromScreen call. It uses GDI to copy the screen into a bitmap, then converts that into a format usable by GDIP (which is GDI "plus"). If your only goal is to read a single pixel off the screen repeatedly, you don't even need GDIP. You can and sh...
by LinearSpoon
12 Jan 2015, 17:10
Forum: Ask For Help
Topic: [solved] 7-zip dll in AHK
Replies: 22
Views: 2952

Re: 7-zip dll in AHK

Assuming you got the dll from here: https://sevenzipsharp.codeplex.com/ I've looked at it and it doesn't seem to export any functions at all. At least, not in the way DllCall wants them. I don't know how easy it would be to get it working; I can't find an example of how to use a C# dll that doesn't ...
by LinearSpoon
26 Oct 2014, 19:30
Forum: Ask For Help
Topic: Getting the size of a data type
Replies: 13
Views: 1580

Re: Getting the size of a data type

char: 1 short: 2 int: 4 int64: 8 float: 4 double: 8 ptr: A_PtrSize (built in variable) Unsigned types are the same size as above, the only difference is that they represent a different range of values. These aren't going to change since AHK defines their sizes. Presumably if there is ever a 128 bit ...
by LinearSpoon
06 Oct 2014, 05:53
Forum: Offtopic
Topic: « What's on your mind? » Topic is solved
Replies: 3306
Views: 304725

Re: « What's on your mind? » Topic is solved

Anyone know why different Windows versions have different memory limits? (Not talking about 32 vs 64 bit). For example, Windows 7 limits . Is this just a sales decision Microsoft makes to sell more expensive Windows versions, or is there some software overhead required to make Windows work at higher...
by LinearSpoon
06 Oct 2014, 05:32
Forum: Ask For Help
Topic: >4gb variable Topic is solved
Replies: 2
Views: 406

Re: >4gb variable Topic is solved

You can probably use VarSetCapacity. You will also need to use a 64 bit version of AHK.
by LinearSpoon
21 Sep 2014, 17:34
Forum: Ask For Help
Topic: Who called my app?
Replies: 8
Views: 1530

Re: Who called my app?

@trismark: No. It's true LONG is int type (4 bytes) on 64 bit Windows. The issue is that th32DefaultHeapID is an "int64" type. This has several implications. First, th32DefaultHeapID must sit on an address offset from the start of the struct that is a multiple of its size (8 bytes). The pr...
by LinearSpoon
21 Sep 2014, 16:26
Forum: Ask For Help
Topic: Compiling C++ DLL and passing a string by reference
Replies: 3
Views: 1834

Re: Compiling C++ DLL and passing a string by reference

MilesAhead is right about str type. You will want your C++ function to accept/return char* or wchar_t* to use AHK str type. Specifying cdecl calling convention is sufficient to avoid name mangling, but you will need to specify cdelc whenever you write dllcall. You can also set up a DEF file . In th...
by LinearSpoon
11 Sep 2014, 00:05
Forum: Ask For Help
Topic: Boolean Search as the needle searching a haystack
Replies: 52
Views: 3995

Re: Boolean Search as the needle searching a haystack

Hi LinearSpoon, Your code has worked on everything I've tried. Nice approach on the test cases - great idea being able to process all of them in a single run via the loop/parse/`n technique. It throws an error on un-paired parentheses, as you anticipated with the Throw command, and that's fine - as...
by LinearSpoon
10 Sep 2014, 07:22
Forum: Ask For Help
Topic: Boolean Search as the needle searching a haystack
Replies: 52
Views: 3995

Re: Boolean Search as the needle searching a haystack

I had wrote this a few days ago, but I didn't post it because it seemed you had a solution. For those versed in CS, this is a recursive descent parser for the grammar: O -> A (OR A)* | A A -> N (AND N)* | N N -> NOT* T | T T -> {text} | (O) I'm leaving for classes in a few minutes, so it's not as we...
by LinearSpoon
06 Sep 2014, 18:09
Forum: Ask For Help
Topic: Script to minimise all windows in Windows 7?
Replies: 3
Views: 591

Re: Script to minimise all windows in Windows 7?

The WinMinimizeAll command seems to have the effect you want, although it would probably minimize windows on all monitors. An alternative would be WinGet, with the List parameter which grabs a list of all windows in the system. From there, you can loop through them, checking which ones are on a part...

Go to advanced search