Search found 3774 matches

by evilC
Today, 08:58
Forum: Ask For Help
Topic: Need help with solving two problem in binding script
Replies: 6
Views: 67

Re: Need help with solving two problem in binding script

If games don't see the input AHK sends, then you probably need to run the script as admin. The ONLY thing inside an #if statement should be hotkeys. #if GroupAdd, WatchProg_1, ahk_exe Notepad++.exe This is totally not valid. 1) #if on it's own CLOSES an #if block. This line is before any other #if s...
by evilC
Today, 05:11
Forum: Gaming
Topic: Universal Control Remapper (UCR) - v0.1.19 26th Dec 2017
Replies: 806
Views: 133504

Re: Universal Control Remapper (UCR) - v0.1.19 26th Dec 2017

Uninstall vJoy completely, and reinstall. It's a bug with the vJoy installer.
by evilC
Today, 05:10
Forum: Ask For Help
Topic: How do I prevent monitor from turning on.. Topic is solved
Replies: 4
Views: 66

Re: How do I prevent monitor from turning on.. Topic is solved

*Maybe* if you blocked the mouse using Interception, it would not register.
Seeing as it is at a driver level (Below RawInput), then you may be able to convince windows that the mouse is not moving.
by evilC
Today, 05:06
Forum: Ask For Help
Topic: Need help with solving two problem in binding script
Replies: 6
Views: 67

Re: Need help with solving two problem in binding script

You are still using #if for random stuff I have no clue why you are using it.

Why did you use #if for these bits of code?

Code: [Select all]GeSHi © Codebox Plus

#If
GroupAdd, WatchProg_1, ahk_exe Notepad++.exe
GroupAdd, WatchProg_2, ahk_exe WINWORD.exe


Code: [Select all]GeSHi © Codebox Plus

#If
Scrolllock::
by evilC
Yesterday, 11:47
Forum: Ask For Help
Topic: Access a variable from one function inside another function
Replies: 9
Views: 106

Re: Access a variable from one function inside another function

What you maybe want is a class. With a class, you can store variables in the class, and the functions ("methods") of the class can also access these variables. #SingleInstance force #Persistent mc := new MyClass() mc.function1() mc.function2() class MyClass { function1() { this.person1 := ...
by evilC
Yesterday, 11:36
Forum: Ask For Help
Topic: Need help with solving two problem in binding script
Replies: 6
Views: 67

Re: Need help with solving two problem in binding script

You are using #if wrong. #If WinActive(WatchProg_2) WinGet, WinID_2, ID, % WatchProg_2 MouseGetPos,,, CurID_2,, 1 #if is purely to turn on/off hotkeys due to context. Code inside an #if block does not run when the condition is true, it just affects whether a hotkey declaration inside the #if block i...
by evilC
Yesterday, 10:58
Forum: Scripts and Functions
Topic: Improved Joystick to Keyboard remap script
Replies: 10
Views: 3849

Re: Improved Joystick to Keyboard remap script

Hmm, looking back at the code, if you want to use axes other than X and Y, you need to edit the section under the comment ; === Internal vars - do not edit ===, so I removed that comment.
by evilC
Yesterday, 05:44
Forum: Scripts and Functions
Topic: Improved Joystick to Keyboard remap script
Replies: 10
Views: 3849

Re: Improved Joystick to Keyboard remap script

Thank you, evilC! I see from your GitHub page you're actually developing a URC program that will cover my use case also. Do you think it is ready for general consumption? Both the old AHK UCR (See link in signature below) and the new C# UCR do joystick remappings. Can you write a scripts for the tr...
by evilC
20 Feb 2018, 10:04
Forum: Gaming
Topic: help to use a second mouse on the pc as joystick
Replies: 3
Views: 37

Re: help to use a second mouse on the pc as joystick

You want one running copy of a game to take input from two separate mice? I am telling you - never ever gonna happen. Technically possible (The RawInput API can differentiate input from different mice), but no games that I am aware of do it. At best, what you could do is use 3rd party software to ma...
by evilC
20 Feb 2018, 09:50
Forum: Ask For Help
Topic: DLLCall("mouse_event"): How do I use continous values?
Replies: 2
Views: 48

Re: DLLCall("mouse_event"): How do I use continous values?

There are absolutely no windows settings which alter the behaviour of the mouse in mouse-aim games. Windows "Sensitivity" is utterly unrelated, that is to do with mouse cursor. The ONLY thing that will alter it is changing the DPI setting in the software that came with your mouse. If your ...
by evilC
20 Feb 2018, 08:52
Forum: Gaming
Topic: help to use a second mouse on the pc as joystick
Replies: 3
Views: 37

Re: help to use a second mouse on the pc as joystick

Forget it, not gonna happen. As far as windows games are concerned, there is only one mouse.
by evilC
18 Feb 2018, 11:52
Forum: Ask For Help
Topic: How to capture trackman marble mouse special buttons?
Replies: 7
Views: 759

Re: How to capture trackman marble mouse special buttons?

I have code which will do that, as long as the buttons can be seen by AHK. When you say "Button 3 & 4", you mean the two "extended" buttons of a mouse? ie what would normally be "Forward" and "Back"? Try this code to identify if AHK can see those buttons. ...
by evilC
16 Feb 2018, 12:05
Forum: Gaming
Topic: No "recoil" fortnite
Replies: 1
Views: 151

Re: No "recoil" fortnite

This is a forum for asking for CODING help. Do you have any interest in learning to code at all, or do you just want a cheat handed to you on a plate? What made you think it was appropriate to post here?
This is not a rhetorical question, I am genuinely interested in knowing why you posted here.
by evilC
15 Feb 2018, 08:47
Forum: Ask For Help
Topic: If Window = another window
Replies: 14
Views: 87

Re: If Window = another window

Also, please correct me if I am wrong, but looking at it, this appears to be a keylogger intended to harvest passwords etc
by evilC
15 Feb 2018, 08:44
Forum: Ask For Help
Topic: If Window = another window
Replies: 14
Views: 87

Re: If Window = another window

As I said, an if/else block and repeating the fileAppend is pointless #SingleInstance Force #NoTrayIcon lastWindow := 0 SendMode, Input ~a:: FormatTime, time, h:m:s tt WinGetTitle, Title, A thisWindow := WinActive() str := "" if (thisWindow != lastWindow) { str := Title " " time ...
by evilC
15 Feb 2018, 08:41
Forum: Ask For Help
Topic: Execute file remotely via ip+tcp port
Replies: 9
Views: 104

Re: Execute file remotely via ip+tcp port

Thinking about it, I am not so sure it is any less safe to just run the script that the server puts in the folder. If you could push a new script to a client's Commands folder anyway, little difference. Maybe if you restrict write access to those folders, it would give you some security, or maybe be...
by evilC
15 Feb 2018, 08:36
Forum: Ask For Help
Topic: Execute file remotely via ip+tcp port
Replies: 9
Views: 104

Re: Execute file remotely via ip+tcp port

Here you go... #SingleInstance force Gui, Add, Button, gTest w200, TEST Gui, Add, Edit, Disabled w200 vOutput R10 Gui, Show clientFolders := ["Client1"] return GuiClose: ExitApp Test: for id, folder in clientFolders { FileAppend, , % folder "\Test" } for id, folder in clientFolde...
by evilC
15 Feb 2018, 08:03
Forum: Ask For Help
Topic: Execute file remotely via ip+tcp port
Replies: 9
Views: 104

Re: Execute file remotely via ip+tcp port

If you want quick, dirty and simple, then have each "client" monitor a network share for a file (Each client monitors a separate folder), and the "server" puts the files in the folder for each client. Once the client sees the file and takes the appropriate action, it deletes it, ...
by evilC
15 Feb 2018, 07:55
Forum: Ask For Help
Topic: If Window = another window
Replies: 14
Views: 87

Re: If Window = another window

Personally I would write it thus: str := "" if (thisWindow != lastWindow){ str := Title " " time "`n" } fileappend, %str%a`n, %A_ScriptDir%\folder\lol.txt That way, you avoid duplication of code - the fileappend command is only used once - if you want to change where it...

Go to advanced search