Search found 3546 matches

by evilC
Yesterday, 18:12
Forum: Scripts and Functions
Topic: [Class] LV_Colors - 1.1.04.01 (2016-05-03)
Replies: 121
Views: 16237

Re: [Class] LV_Colors - 1.1.04.01 (2016-05-03)

Ah, I was going about things the wrong way - if the C# code is being loaded as a library from AHK, then of course I can just hook the messages meant for the AHK GUI (Local hook, not global hook). ManagedWinapi has stuff built-in for this it seems, so now I can hook into the messages sent to the List...
by evilC
Yesterday, 12:23
Forum: Gaming
Topic: Universal Control Remapper (UCR) - v0.1.17 21st Aug 2017
Replies: 637
Views: 102864

Re: Universal Control Remapper (UCR) - v0.1.17 21st Aug 2017

@langos99
When you move a mouse, it sends data very very quickly.
AutoHotkey cannot keep up very well.
The new version of UCR we are writing in C# should be better.
by evilC
16 Nov 2017, 18:53
Forum: About This Community
Topic: Rule Poll
Replies: 20
Views: 429

Re: Rule Poll

EDIT2: @nnnik I don't play games, so maybe I don't know, but if all a person has to do is write AHK code to help with games, they shouldn't be interfered by a rule of the official AHK forum hindering them from getting easy help. One ought to be able to Ask for Help without saying what they are usin...
by evilC
16 Nov 2017, 17:31
Forum: Forum Issues
Topic: Expired certificate popup with ESET Nod32
Replies: 4
Views: 92

Re: Expired certificate popup with ESET Nod32

Ah, I think I just figured out what it is.
I don't think it is happening when I browse *this* forum, I think it is happening when I browse (?or view google results containing?) AHKScript.org pages.
by evilC
16 Nov 2017, 17:03
Forum: Scripts and Functions
Topic: [Class] LV_Colors - 1.1.04.01 (2016-05-03)
Replies: 121
Views: 16237

Re: [Class] LV_Colors - 1.1.04.01 (2016-05-03)

OK, so I was forgetting of course that the pure AHK solution is processing the messages for it's own window. Ideally I want to build this as a C# DLL (Which normally lacks a message pump, so cannot process messages), so I will need a message pump and to somehow intercept the messages for the AHK win...
by evilC
16 Nov 2017, 16:17
Forum: Gaming
Topic: Universal Control Remapper (UCR) - v0.1.17 21st Aug 2017
Replies: 637
Views: 102864

Re: Universal Control Remapper (UCR) - v0.1.17 21st Aug 2017

Not quite sure what you mean

You press NumpadDiv, what is supposed to happen to axis 1?
You release NumpadDiv, what is supposed to happen to axis 1?

repeat. what happens this time?
by evilC
16 Nov 2017, 12:37
Forum: Scripts and Functions
Topic: [Class] LV_Colors - 1.1.04.01 (2016-05-03)
Replies: 121
Views: 16237

Re: [Class] LV_Colors - 1.1.04.01 (2016-05-03)

Significant progress! I have had to add some missing methods to the mwinapi repository, I have forked it here: https://github.com/evilC/mwinapi/ In there is a Test App which can color the rows of an AHK ListView I am following the code from here , I am trying to replicate what the EraseAlternatingRo...
by evilC
16 Nov 2017, 08:14
Forum: Scripts and Functions
Topic: [Class] LV_Colors - 1.1.04.01 (2016-05-03)
Replies: 121
Views: 16237

Re: [Class] LV_Colors - 1.1.04.01 (2016-05-03)

I managed to find a C# library which wraps the WinAPI and appears to be providing the functionality that we need. http://mwinapi.sourceforge.net/doc/index.html IntPtr hwnd = (IntPtr)0x350dfa; // hwnd of an AHK LV var sysWindow = new SystemWindow(hwnd); var lv = SystemListView.FromSystemWindow(sysWin...
by evilC
16 Nov 2017, 07:18
Forum: Scripts and Functions
Topic: [Class] LV_Colors - 1.1.04.01 (2016-05-03)
Replies: 121
Views: 16237

Re: [Class] LV_Colors - 1.1.04.01 (2016-05-03)

Yeah, I am inclined to agree. Such real-time code is inherently unsuitable for AHK. I tried setting critical to 100, still see same issue. For reference, the C code that I have found which seems to do basically the same thing is https://www.codeproject.com/Articles/20796/ListView-Alternating-Row-Col...
by evilC
15 Nov 2017, 17:18
Forum: Scripts and Functions
Topic: [Class] LV_Colors - 1.1.04.01 (2016-05-03)
Replies: 121
Views: 16237

Re: [Class] LV_Colors - 1.1.04.01 (2016-05-03)

BTW if anyone can replicate this code in C++ (Or even better, C#) then please do let me know. I have looked around and found some snippets, but not got anything to work. I managed to get some access to an AHK LV in C# (I could get the top row number of the LV) but I could not get some of the other S...
by evilC
15 Nov 2017, 17:05
Forum: Scripts and Functions
Topic: [Class] LV_Colors - 1.1.04.01 (2016-05-03)
Replies: 121
Views: 16237

Re: [Class] LV_Colors - 1.1.04.01 (2016-05-03)

It seems to help, but it still seems to lock up, and when it does, I can't exit it and have to give it the 3-finger salute
by evilC
15 Nov 2017, 16:45
Forum: Forum Issues
Topic: Expired certificate popup with ESET Nod32
Replies: 4
Views: 92

Expired certificate popup with ESET Nod32

Not sure what is going on here, but occasionally when viewing the AHK forums I get popups from my AV software that an HTTPS cert is expired. https://imgur.com/QEYzfAI.png I don't get it all the time, and when I don't get it, if I view the cert is still valid for another year, so I dunno if my system...
by evilC
15 Nov 2017, 10:09
Forum: Scripts and Functions
Topic: [Class] LV_Colors - 1.1.04.01 (2016-05-03)
Replies: 121
Views: 16237

Re: [Class] LV_Colors - 1.1.04.01 (2016-05-03)

I am seeing an issue with LV_Colors that is locking up ListViews Here is some sample code. The purpose of the code is to synchronise multiple listviews - both the scrolling and the highlighting I can do this without LV_Colors, but all the ListViews apart from the one with focus have grey highlight l...
by evilC
14 Nov 2017, 11:59
Forum: Gaming
Topic: [Help] Left Button Pressed & Released
Replies: 3
Views: 71

Re: [Help] Left Button Pressed & Released

Code: [Select all]GeSHi © Codebox Plus

LButton::
LButton up::
Loop, 8
{
MouseClick, left,
Sleep, 50
}
return
by evilC
14 Nov 2017, 11:56
Forum: Ask For Help
Topic: Define global variables with inputbox, then insert with other macro Topic is solved
Replies: 5
Views: 47

Re: Define global variables with inputbox, then insert with other macro Topic is solved

This code seems pointless:

Code: [Select all]GeSHi © Codebox Plus

	AltCB2 = %Clipboard%
variable1 := AltCB2 ;store clipboard into variable1
AltCB2 := ;empty alternative clipboard


Why not just
by evilC
14 Nov 2017, 07:40
Forum: Gaming
Topic: Shift + Numpad Keys?
Replies: 3
Views: 39

Re: Shift + Numpad Keys?

The difference between the two numpad variants is shift. eg Numlock on, hit 4, you get 4 hold shift and hit 4, you get left arrow. This is normal windows behavior. If you wish to have a hotkey that works for both variants, do it like this: Numpad4:: NumpadLeft:: ; hotkey code here return You may als...
by evilC
14 Nov 2017, 07:32
Forum: Gaming
Topic: AHK not working RO Restart.
Replies: 3
Views: 38

Re: AHK not working RO Restart.

"It's not working" does not help much.
Are you able to send single, non-spammed keys to the game?
by evilC
14 Nov 2017, 07:27
Forum: Ask For Help
Topic: Define global variables with inputbox, then insert with other macro Topic is solved
Replies: 5
Views: 47

Re: Define global variables with inputbox, then insert with other macro Topic is solved

variable1 := "" variable2 := 10 return #1:: if (variable1 == ""){ Send ^c variable1 := clipboard } InputBox, variable1, Reference, Please enter a reference range,,,,,,,,%variable1% ;e.g., "900-000" InputBox, variable2, Counter, Please enter a counter start,,,,,,,, ;e.g...
by evilC
14 Nov 2017, 06:36
Forum: Ask For Help
Topic: Define global variables with inputbox, then insert with other macro Topic is solved
Replies: 5
Views: 47

Re: Define global variables with inputbox, then insert with other macro Topic is solved

It works exactly as you described? The first time you hit #1, variable1 is empty, so the InputBox is empty. The 2nd time you hit #1, the value that you entered the 1st time is pre-populated. If you want to have a default value for variable1 the 1st time you run the script, then set the variable in t...
by evilC
14 Nov 2017, 06:28
Forum: Gaming
Topic: Key Spammer?
Replies: 5
Views: 54

Re: Key Spammer?

I almost guarantee that this is TOO fast. Many games will not recognize a key that is pressed AND released within one frame of animation, and this code would send the space bar at a rate of thousands of times a second. Furthermore, there is zero delay between releasing the key at the end of one loop...

Go to advanced search