Search found 3598 matches

by evilC
15 Dec 2017, 09:54
Forum: Gaming
Topic: Face Character Towards Mouse
Replies: 4
Views: 45

Re: Face Character Towards Mouse

Or, if all your directions do basically the same thing, but with parameters, you could do like this: #SingleInstance force ; Build array of "Bound Functions" (Functions with parameters pre-supplied) Funcs := [Func("DoAction").Bind("+{Up}", 50, 100, 1), Func("DoActi...
by evilC
15 Dec 2017, 09:44
Forum: Gaming
Topic: Face Character Towards Mouse
Replies: 4
Views: 45

Re: Face Character Towards Mouse

When working with angles like this, esp if you want it to wrap around, you can get sneaky. Round(angle / 90) will give you a "Cardinal" (Pure North, South, East or West). It still wraps around, but it is a simple check you need to make anyway. Also, it appears as if the game is isometric d...
by evilC
15 Dec 2017, 08:58
Forum: Ask For Help
Topic: GetKeyState not working
Replies: 3
Views: 49

Re: GetKeyState not working

Oh and FYI you cannot Send Joy1 You cannot alter how a game sees a physical joystick. This is not a limitation of AHK, basically nothing can. All you can really do is drive a virtual joystick which mimics your real joystick, just with the required changes. I have an AHK library for vJoy here: https:...
by evilC
15 Dec 2017, 07:18
Forum: Gaming
Topic: Joystick JoyPOV to a Single Click. Topic is solved
Replies: 2
Views: 53

Re: Joystick JoyPOV to a Single Click. Topic is solved

A couple of problems here: WatchPOV: GetKeyState, POV, JoyPOV KeyToHoldDownPrev = %KeyToHoldDown% if POV < 0 KeyToHoldDown = else if POV = 0 KeyToHoldDown = ; Those 3 are the problem, Im not using up arrow. else if POV = 9000 Send {Click, 465, 540} else if POV = 18000 Send {Click, 418, 591} else if ...
by evilC
15 Dec 2017, 07:10
Forum: Ask For Help
Topic: Multiple Dynamic HotKeys in a single ahk file
Replies: 13
Views: 210

Re: Multiple Dynamic HotKeys in a single ahk file

The default AHK hotkey guicontrol pretty lame. I have written my own system which provides user-defined dynamic hotkeys, will remember the settings between runs (Stores hotkey selection in an INI file) and also allows you to easily add GuiControls whose values are remembered between runs. See AppFac...
by evilC
15 Dec 2017, 07:05
Forum: Ask For Help
Topic: GetKeyState not working
Replies: 3
Views: 49

Re: GetKeyState not working

GetKeyState, ctrl, Ctrl GetKeyState, shift, Shift GetKeyState, alt, Alt Loop { if (ctrl = D or alt = D or shift = D) the IF block only evaluates the state of the keys at the instant the script was run. the value of your ctrl , shift and alt variables never changes. Just do it all in the send loop: ...
by evilC
13 Dec 2017, 10:22
Forum: Gaming
Topic: Need help with creating panorama/360"screenshot capturer"
Replies: 1
Views: 36

Re: Need help with creating panorama/360"screenshot capturer"

The /Teleport command in MineCraft can not only control location, but also which way you are facing. https://www.digminecraft.com/game_commands/teleport_command.php Note that the teleport command can be prefixed with ~ to make the values for x/y/z relative, so you do not need to know your current lo...
by evilC
13 Dec 2017, 06:45
Forum: Gaming
Topic: Universal Control Remapper (UCR) - v0.1.17 21st Aug 2017
Replies: 653
Views: 110386

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

Guest wrote:Does UCR support 4 player?(srry for bad english)

That's a very open-ended question.
What output do you need to send?
Currently, I think UCR can only emulate one Xbox controller.
Emulating multiple vJoy sticks is not a problem.
Obviously, if you need to output to keyboard, that would not be a problem
by evilC
13 Dec 2017, 06:42
Forum: Gaming
Topic: Universal Control Remapper (UCR) - v0.1.17 21st Aug 2017
Replies: 653
Views: 110386

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

This (AutoHotkey) version of UCR will probably never be able to emulate DS4 as I will probably not bother implementing ViGEm support. The new (C#) version of UCR is the one with ViGEm support. We have something semi-usable now (For one controller only), I am intending to make an initial test release...
by evilC
11 Dec 2017, 05:51
Forum: Gaming
Topic: Anything with which I can have updative text on game window(fullscreen)?
Replies: 1
Views: 39

Re: Anything with which I can have updative text on game window(fullscreen)?

Proper Fullscreen - not with normal AHK. Fullscreen Window - just use a normal Gui, set +AlwaysOnTop and you can also make the background transparent. To add overlays to proper fullscreen games, you can use Indicium-Supra , or if the game is DX9, there are ready-made AHK samples in DX9-Overlay-API
by evilC
11 Dec 2017, 05:45
Forum: Gaming
Topic: Clipboard parsing Topic is solved
Replies: 2
Views: 32

Re: Clipboard parsing Topic is solved

Also, there is a more efficient way to do this: autoCraft(craftSkill) { if(craftSkill == "Weapon") { itemType = 14 } else if(craftSkill == "Armor") { itemType = 20 } else if(craftSkill == "Bow") { itemType = 12 } else if(craftSkill == "Spell") { itemType = 17 ...
by evilC
11 Dec 2017, 05:41
Forum: Gaming
Topic: Clipboard parsing Topic is solved
Replies: 2
Views: 32

Re: Clipboard parsing Topic is solved

I found zero intermittent behavior. findText("Weaponcrafting") always returns 88. FYI, you probably need a check in findText , as if you search for something that is not present, it returns the last line. autoCraft(craftSkill) { if(craftSkill == "Weapon") { itemType = 14 ...
by evilC
06 Dec 2017, 12:49
Forum: Ask For Help
Topic: Very simple problem, but totally different approach
Replies: 5
Views: 67

Re: Very simple problem, but totally different approach

Also, note that you could use more than one bound parameter and completely remove the need for the if/else block fn := Func("KeyPressed").Bind(1, "Apple") hotkey, q, % fn fn := Func("KeyPressed").Bind(2, "Orange") hotkey, w, % fn return KeyPressed(whichkey, fr...
by evilC
06 Dec 2017, 12:41
Forum: Ask For Help
Topic: Very simple problem, but totally different approach
Replies: 5
Views: 67

Re: Very simple problem, but totally different approach

By the way, if you are willing to learn how to use functions, there is a more elegant way to route multiple hotkeys through the same function. fn := Func("KeyPressed").Bind(1) hotkey, q, % fn fn := Func("KeyPressed").Bind(2) hotkey, w, % fn return KeyPressed(whichkey){ if (whichk...
by evilC
06 Dec 2017, 12:32
Forum: Ask For Help
Topic: Very simple problem, but totally different approach
Replies: 5
Views: 67

Re: Very simple problem, but totally different approach

Same problem if (null = Box1) { Here you are comparing the contents of the null variable ("Box1", "Box2" or "Box3") with the contents of the Box1 variable (Always "Q"). This line is effectively if (null = "Q") { I think you want if &#...
by evilC
06 Dec 2017, 05:52
Forum: Ask For Help
Topic: Very simple problem, but totally different approach
Replies: 5
Views: 67

Re: Very simple problem, but totally different approach

if (null = Preset1) { You used brackets, so you are comparing the variable null with the variable Preset1 (Which does not exist)

Even if you were comparing strings, null would never be "Preset1", it would be "Box1", "Box2" or "Box3"
by evilC
06 Dec 2017, 05:11
Forum: Scripts and Functions
Topic: MicroTimer - Sub-10ms timers for AHK (C# DLL)
Replies: 45
Views: 3611

Re: MicroTimer - Sub-10ms timers for AHK (C# DLL)

Out of interest, are you using x64 AHK or x86? Try x86 if using x64
by evilC
05 Dec 2017, 12:32
Forum: Gaming
Topic: Autorun: WheelUp and WheelDown
Replies: 2
Views: 54

Re: Autorun: WheelUp and WheelDown

WheelUp:: is doing everything AHK can to stop the game from seeing the wheel.
If the game still sees the wheel, AHK's built-in commands cannot stop it.
It could be done with Interception, but that is not trivial, and requires installing a driver.
by evilC
05 Dec 2017, 11:24
Forum: Scripts and Functions
Topic: MicroTimer - Sub-10ms timers for AHK (C# DLL)
Replies: 45
Views: 3611

Re: MicroTimer - Sub-10ms timers for AHK (C# DLL)

I know we had a problem in the past where the DLLs that I posted were bad and refused to load on some people's machines - this may be what is happening here.
I take it you tried the version from the releases page of the github repo?

Go to advanced search