Search found 224 matches

by Cuadrix
14 May 2020, 14:30
Forum: Gaming
Topic: More elegant solution than ImageSearch to change mouse profile?
Replies: 17
Views: 1336

Re: More elegant solution than ImageSearch to change mouse profile?

Since the splash and main windows have the same window name, try this: MySettings = C:\Users\2015 Win10\AppData\Local\Logitech\Logitech Gaming Software\settings.json ; Location of settings file NewProfile = "persistentProfile" : "{5FAEA13C-DF17-44E4-8714-A0E9BF212D4E}" SoftwareProcessName = LCore.ex...
by Cuadrix
11 May 2020, 10:33
Forum: Gaming
Topic: More elegant solution than ImageSearch to change mouse profile?
Replies: 17
Views: 1336

Re: More elegant solution than ImageSearch to change mouse profile?

The reason it the splash screen comes is because the script completely closes the program whereas when you manually click on the x it only closes the main window, meaning that you can still probably see a small logitech icon in the system tray on the right side of the screen near the date/time. I'm ...
by Cuadrix
09 May 2020, 08:57
Forum: Gaming
Topic: More elegant solution than ImageSearch to change mouse profile?
Replies: 17
Views: 1336

Re: More elegant solution than ImageSearch to change mouse profile?

You are attempting to close and reopen the script a second time when it's not necessary. Remove these: RunWait mouse_close.bat ; Basic taskkill line to Close the mouse program because your more elegant Process, Close, %SoftwareProcessName% confusingly would not work. RunWait, %SoftwareExecutable% ; ...
by Cuadrix
08 May 2020, 13:05
Forum: Gaming
Topic: More elegant solution than ImageSearch to change mouse profile?
Replies: 17
Views: 1336

Re: More elegant solution than ImageSearch to change mouse profile?

It's possible in many ways. Simplest way in my opinion is to use a parsing loop, not tested: MySettings = C:\My Documents\My Settings.txt ; Location of settings file NewProfile = "persistentProfile" : "{5FAEA13C-DF17-44E4-8714-A0E9BF212D4E}" ; First check if the settings file exists If (!FileExist(M...
by Cuadrix
08 May 2020, 07:21
Forum: Gaming
Topic: More elegant solution than ImageSearch to change mouse profile?
Replies: 17
Views: 1336

Re: More elegant solution than ImageSearch to change mouse profile?

First backup the file just in case. For example, copy the settings file to the desktop or something. This should work, not tested: MySettings = C:\My Documents\My Settings.txt ; Location of settings file OldProfile = "persistentProfile" : "{09D92D75-3C8C-4723-B06C-4090BCB899C0}" NewProfile = "persis...
by Cuadrix
06 May 2020, 20:33
Forum: Ask For Help
Topic: Expressions vs. conditions Topic is solved
Replies: 7
Views: 569

Re: Expressions vs. conditions Topic is solved

An expression is something that results in a value, for example a math operation (2 + 2) or a function that returns something. A condition is a comparison of values in a conditional statement such as if , that returns either true or false . See this example: message := "Hello world" ; if... is a con...
by Cuadrix
03 May 2020, 04:26
Forum: Gaming
Topic: More elegant solution than ImageSearch to change mouse profile?
Replies: 17
Views: 1336

Re: More elegant solution than ImageSearch to change mouse profile?

Maybe the program has a dedicated folder for storing profiles somewhere?
If so, maybe just some simple file write and rename magic would do the trick.
by Cuadrix
28 Apr 2020, 03:31
Forum: Ask For Help
Topic: What should I use
Replies: 3
Views: 258

Re: What should I use

2 choices.
- OCR
- Memory reading

Autohotkey is lacking in OCR scripts, so;
Memory reading is the easiest, but it's still far too difficult for a novice.

I'm just giving suggestions. I'm not interested in doing any paid work.
by Cuadrix
28 Apr 2020, 03:25
Forum: Ask For Help
Topic: Substring / StrReplace - huge 1 GB files - inline replace?
Replies: 12
Views: 931

Re: Substring / StrReplace - huge 1 GB files - inline replace?

Can you tell why? I ask so I can learn since I haven't experienced problems with it. You haven't experienced any problems because your files aren't 1GB. Try looping through million lines of anything and see how long it takes. Imagine doing a conditional check for each and every line in a file conta...
by Cuadrix
26 Apr 2020, 16:00
Forum: Ask For Help
Topic: DllCall: handles and pointers
Replies: 6
Views: 531

Re: DllCall: handles and pointers

Regarding pointers, I'm just gonna say this;
The best way to understand pointers is by learning C or C++
Once you've got the basic knowledge of them, everything becomes clear, even your understanding of DllCalls in Autohotkey
by Cuadrix
08 Apr 2020, 20:03
Forum: Ask For Help
Topic: FileCopy Line Doesn't Work
Replies: 7
Views: 433

Re: FileCopy Line Doesn't Work

Bacon19331 wrote:
08 Apr 2020, 19:46
Ok, this worked. Thanks! But just wondering if a space was present in the source path, wouldn't you need quotes?
You don't need quotes in commands at all, even if you have a space in your string
Quotes are needed around strings if the string is in an expression though e.g. % "C:\Program Files"
by Cuadrix
08 Apr 2020, 19:58
Forum: Ask For Help
Topic: [SOLVED] Process launch -> automatically press key Space
Replies: 10
Views: 699

Re: Pb If process exist > press key keyboard

- Process is a command. - If is a statement that evaluates expressions. - Commands are not expressions. - The If statement won't recognize a command as an expression because it isn't a value and it does not return a value like an expression does. For your script to work, you have to separate them in...
by Cuadrix
08 Apr 2020, 19:41
Forum: Ask For Help
Topic: FileCopy Line Doesn't Work
Replies: 7
Views: 433

Re: FileCopy Line Doesn't Work

It's not working because the command thinks that the quotes are a part of the path, which they are not. You don't need quotes in autohotkey commands because everything is already treated as a string: FileCopy, %logdir%%time%.txt, C:\OM\%name%.txt To write the above as an expression you would do it t...
by Cuadrix
04 Apr 2020, 17:04
Forum: Gaming
Topic: auto walk coor read menory
Replies: 2
Views: 567

Re: auto walk coor read menory

Explanation is unclear
by Cuadrix
29 Mar 2020, 08:36
Forum: 脚本函数
Topic: AHK源代码加密器 v3.1
Replies: 102
Views: 47169

Re: AHK源代码加密器 v2.7

WHat if I want to include files?
by Cuadrix
28 Mar 2020, 05:23
Forum: Ask For Help
Topic: Could you communicate with a driver with AHK?
Replies: 0
Views: 277

Could you communicate with a driver with AHK?

I have come to realize that Autohotkey is very powerful, and was wondering if even this is within the reach of it's capabilities. One way I can think of is by writing memory to a shared memory address in the ram, then having the driver read from the address and take action based on what was read. Bu...
by Cuadrix
27 Mar 2020, 13:39
Forum: Ask For Help
Topic: DllCall VirtualProtectEx error 87 and 988 Topic is solved
Replies: 4
Views: 343

Re: DllCall VirtualProtectEx error 87 and 988 Topic is solved

Turns out the issue was the address I was passing to the function. Basically I used classMemory by RHCP to get the address of a region with a string as a haystack. I passed in an array of bytes encoded as UTF-8 instead of UTF-16 which messed up the return result, thus leading VirtualProtectEx to fai...
by Cuadrix
26 Mar 2020, 23:25
Forum: Ask For Help
Topic: DllCall VirtualProtectEx error 87 and 988 Topic is solved
Replies: 4
Views: 343

DllCall VirtualProtectEx error 87 and 988 Topic is solved

I'm trying to change the protection of a page in memory using DllCall but I run into some troubles; With the code snippet below, I get error 87 in A_LastError , which means I have an invalid paramater. I tried a couple combinations with no luck. I need to store the old protection to lpflOldProtect ,...

Go to advanced search