Search found 3766 matches

by evilC
Today, 10:04
Forum: Gaming
Topic: help to use a second mouse on the pc as joystick
Replies: 3
Views: 26

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
Today, 09:50
Forum: Ask For Help
Topic: DLLCall("mouse_event"): How do I use continous values?
Replies: 2
Views: 39

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
Today, 08:52
Forum: Gaming
Topic: help to use a second mouse on the pc as joystick
Replies: 3
Views: 26

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: 754

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: 110

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: 86

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: 86

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: 102

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: 102

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: 102

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: 86

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...
by evilC
15 Feb 2018, 07:52
Forum: Ask For Help
Topic: If Window = another window
Replies: 14
Views: 86

Re: If Window = another window

Also this code is pointless:

Code: [Select all]GeSHi © Codebox Plus

	else
{
fileappend, %Title% %time% `na`n, %A_ScriptDir%\folder\lol.txt
lastWindow := thisWindow ; <-- Pointless
}

If the else block is hit, then by definition, lastWindow is already equal to thisWindow, so you do not need to assign.
by evilC
15 Feb 2018, 07:46
Forum: Ask For Help
Topic: If Window = another window
Replies: 14
Views: 86

Re: If Window = another window

Again WinGetTitle, Title, A only runs once, at the start of the script. By definition therefore, the active window when the script runs will likely be Explorer (if you double-clicked the AHK file in a folder) or the desktop (If you clicked a desktop shortcut) or maybe an editor such as SciTE if you ...
by evilC
15 Feb 2018, 07:22
Forum: Ask For Help
Topic: If Window = another window
Replies: 14
Views: 86

Re: If Window = another window

If it is hitting the Msgbox, then by definition if (thisWindow != lastWindow) is false, so thiswindow is equal to lastwindow. If it is the first time through the code, then lastWindow is 0, so thisWindow must also be 0. FYI thisWindow := WinActive() is only executed once, at the star...
by evilC
15 Feb 2018, 06:50
Forum: Ask For Help
Topic: Script won't go to start of loop Topic is solved
Replies: 1
Views: 32

Re: Script won't go to start of loop Topic is solved

I think that most likely, your problem is that your code indenting is NOT how the code is actually structured. When you have an IF block with no {braces}, ONLY THE LINE AFTER is in the IF block. This is the ACTUAL structure of your code: Loop { Send, {9} Sleep, 20 CoordMode, Pixel, Screen PixelSearc...
by evilC
15 Feb 2018, 06:39
Forum: Ask For Help
Topic: Execute file remotely via ip+tcp port
Replies: 9
Views: 102

Re: Execute file remotely via ip+tcp port

I would like to warn you of the risk you are taking. By allowing an inbound connection to execute arbitrary code, you are creating a HUGE attack vector. It would be MUCH better to only allow a limited set of functions (eg start the video wall software) - eg only scripts which are pre-existing on the...
by evilC
15 Feb 2018, 06:30
Forum: Ask For Help
Topic: If Window = another window
Replies: 14
Views: 86

Re: If Window = another window

WinActive() will give you a unique ID for the active window.

Code: [Select all]GeSHi © Codebox Plus

lastWindow := 0
Loop {
thisWindow := WinActive()
if (thisWindow != lastWindow){
soundbeep
lastWindow := thisWindow
}
Sleep 100
by evilC
15 Feb 2018, 05:43
Forum: Gaming
Topic: Ignore a key that is being held
Replies: 4
Views: 68

Re: Ignore a key that is being held

LShift:: Send {LShift} Self triggers - will cause Infinite loop LShift & Left:: ;Do what you want KeyWait LShift ; <- Serves zero purpose, and is counter-productive (Blocks hotkey thread from exiting) Sigh... why do people insist on using blocking methods to detect key release? AHK does have LS...
by evilC
14 Feb 2018, 18:59
Forum: Gaming
Topic: joy5 Output?
Replies: 7
Views: 96

Re: joy5 Output?

Sorry, I should have clarified, when I meant "possible today", I meant the tech exists, not that I could whip it up for you in a day. Looking at your script, it involves a click, so I suspect you do not *really* need the controller the game sees to be an xbox controller? (It's the combinat...

Go to advanced search