Search found 88 matches

by WAZAAAAA
04 Mar 2024, 13:14
Forum: Tutorials (v2)
Topic: Combining lines for Expressions isn't faster in v2; with caveats.
Replies: 1
Views: 276

Re: Combining lines for Expressions isn't faster in v2; with caveats.

added a link to this thread on the v1 optimizations thread 👌
by WAZAAAAA
27 Dec 2023, 01:24
Forum: Ask for Help (v1)
Topic: React to Wake On LAN magic packet using AutoHotkey
Replies: 1
Views: 572

Re: React to Wake On LAN magic packet using AutoHotkey

Not the prettiest code since I couldn't make Socket.ahk work... I used SimpleWoL on my Android to test WOL packets in the first place. I put several Sleep calls and a Reload because that's the most braindead way I could come up with to deal with repeated packets. The script will beep and put the PC ...
by WAZAAAAA
25 Nov 2023, 16:39
Forum: Scripts and Functions (v1)
Topic: Reduce Flicker dramatically (Double Buffer)
Replies: 30
Views: 14420

Re: Reduce Flicker dramatically (Double Buffer)

Been struggling with flickering GUI from quickly updating GuiControl's for the longest time... added that 1 line, problem solved. Thank you good sir.
by WAZAAAAA
17 Nov 2023, 01:14
Forum: Tutorials (v1)
Topic: How to optimize the speed of a script as much as possible.
Replies: 122
Views: 200904

Re: How to optimize the speed of a script as much as possible.

Hello, using ahk v2 changed something? something should i not use or something use in different way? WAZAAAAA Can you or someone else provide this for ahk v2? Greetings. To be honest this kind of thread is less needed for AHK v2 since the 2 most important lines SetBatchLines and SendMode ( among ot...
by WAZAAAAA
06 Nov 2023, 14:55
Forum: Scripts and Functions (v1)
Topic: Run script as UIAccess with stealing token from system process.
Replies: 1
Views: 586

Re: Run script as UIAccess with stealing token from system process.

Criminally underrated post, thank you for this. Normally, the steps needed to give UIAccess to an AHK script are limited and painful . But with this token trick the only """downside""" you have to endure is to simply let the script restart itself twice: once for admin rights , once for UIAccess. It ...
by WAZAAAAA
29 Oct 2023, 19:27
Forum: Tutorials (v1)
Topic: How to optimize the speed of a script as much as possible.
Replies: 122
Views: 200904

Re: How to optimize the speed of a script as much as possible.

SetBatchLines, -1 Causes my games to completely freeze to 0 fps until the key is released. as mentioned by Animan8000 and by point #5 of the thread, you're pressing buttons too fast and your game can't handle it, you need to slow down 5. The default SetBatchLines value makes your script sleep aroun...
by WAZAAAAA
29 Oct 2023, 19:20
Forum: Gaming Help (v1)
Topic: Sleep duration between 0 and 1
Replies: 4
Views: 764

Re: Sleep duration between 0 and 1

You need to set the Windows' timer resolution to 0.5ms to make sleep precise, and then every time you want to sleep in the script you must use the ZwDelayExecution DllCall sleep in 0.5ms increments (instead of the normal Sleep command). Like this: DllCall("ntdll\ZwSetTimerResolution","Int",5000,"Int...
by WAZAAAAA
21 Dec 2022, 19:11
Forum: Gaming Scripts (v1)
Topic: Game Vivifier - Bring your games to life! (NVIDIA)
Replies: 12
Views: 16389

Re: Game Vivifier - Bring your games to life! (NVIDIA)

For the people from the future: author's git got nuked, but the Internet Archive miraculously had a backup of the project COMPILED: https://web.archive.org/web/20200917134430if_/https://github-production-release-asset-2e65be.s3.amazonaws.com/42313756/fa806be0-86cd-11e7-8484-bda9b8dd72b7?X-Amz-Algori...
by WAZAAAAA
16 Aug 2022, 19:49
Forum: Tutorials (v1)
Topic: How to optimize the speed of a script as much as possible.
Replies: 122
Views: 200904

Re: How to optimize the speed of a script as much as possible.

DllCall("Sleep",UInt,17) ;I just used the precise sleep function to wait exactly 17 milliseconds[/code] hey the precision of this script has gone after windows 10 1803.. :!: :problem: i mean with windows 1809 and later windows 10 now uses QueryPerformanceFrequency as a fixed 10MHZ value and because...
by WAZAAAAA
07 Mar 2020, 23:05
Forum: Ask for Help (v1)
Topic: UI Access impossible with UAC OFF?
Replies: 2
Views: 941

Re: UI Access impossible with UAC OFF?

you only cited 2 microsoft apps.. do any 3rd party apps allow this? now that you mention it, I can't find any non-Microsoft app that behaves like that... 3rd party programs that would normally have UIA ON when UAC is ON will have UIA OFF when UAC is OFF :\ what do you use UI Access for? and in what...
by WAZAAAAA
06 Mar 2020, 13:27
Forum: Ask for Help (v1)
Topic: UI Access impossible with UAC OFF?
Replies: 2
Views: 941

UI Access impossible with UAC OFF?

Tested on Windows 10. Why can I only enable UI Access when UAC is ON but not when UAC is OFF? I can still click "Run with UI Access" from the context menu on .ahk scripts, but it doesn't actually enable it. (Process Explorer has a column that shows what processes have UIA enabled) Please note that t...
by WAZAAAAA
05 Mar 2020, 00:35
Forum: Scripts and Functions (v1)
Topic: SendSAS: Send Ctrl+Alt+Del
Replies: 2
Views: 2331

Re: SendSAS: Send Ctrl+Alt+Del

thanks for the UI Access checker, stealing it if (DllCall("Advapi32\OpenProcessToken", "Ptr", DllCall("GetCurrentProcess", "Ptr"), "UInt", TOKEN_QUERY := 0x0008, "Ptr*", hToken)) { DllCall("Advapi32\GetTokenInformation", "Ptr", hToken, "UInt", TokenUIAccess := 26, "UInt*", isUiAccess, "UInt", 4, "UI...
by WAZAAAAA
28 Jan 2020, 04:23
Forum: Ask for Help (v1)
Topic: Standby/Suspend/Sleep the PC with AHK takes too long Topic is solved
Replies: 4
Views: 4924

Re: Standby/Suspend/Sleep the PC with AHK takes too long Topic is solved

Found a solution/workaround by using the undocumented NtInitiatePowerAction (or ZwInitiatePowerAction) in ntdll. With some debugging I found out that all standby methods will actually call one of those two native API's, so I thought, hey let's just experiment directly with those, and that was a succ...
by WAZAAAAA
21 Feb 2019, 21:57
Forum: Ask for Help (v1)
Topic: Standby/Suspend/Sleep the PC with AHK takes too long Topic is solved
Replies: 4
Views: 4924

Standby/Suspend/Sleep the PC with AHK takes too long Topic is solved

AutoHotkey is consistently slower than many other programs at entering Standby mode (state S3) for me by a few seconds. Tested on one machine with Win7+Win10 (dual boot) with hiberfil.sys and pagefile.sys OFF and a second Win7 machine with those ON. Admin or not made no difference. This has been dis...
by WAZAAAAA
08 Nov 2018, 17:01
Forum: Tutorials (v1)
Topic: How to optimize the speed of a script as much as possible.
Replies: 122
Views: 200904

Re: How to optimize the speed of a script as much as possible.

I tried to use the OP's code at the top and then the altered code at the bottom in one of my automation scripts that checks URLs by copying and pasting them to and from an excel spreadsheet and toggling between Chrome browser and Excel windows. It totally made my computer go haywire both times, tog...
by WAZAAAAA
19 Dec 2017, 15:03
Forum: Ask for Help (v1)
Topic: [SOLVED] Convert string to raw binary data?
Replies: 14
Views: 7481

Re: [SOLVED] Convert string to raw binary data?

To anyone that is going to use @jNizM's code, I would recommend to replace those 0x00000002 0x00000004 etc. with 0x40000002 0x40000004 etc., because the default behavior adds \r\n at the end of strings and no sane person would ever want that. Took me an embarassing amount of time to realize the func...
by WAZAAAAA
05 Dec 2017, 19:53
Forum: About This Community
Topic: Rule Poll
Replies: 59
Views: 90007

Re: Rule Poll

This forum would turn into the shitfest that is the AutoIt forum in an instant with all those arbitrary, oppressive, generic rules. Just make obvious bot spam/flood offenses bannable, that's all a forum really needs to function. The rest of the rules are too debatable and subjective. Applying them w...
by WAZAAAAA
04 Nov 2017, 07:48
Forum: Ask for Help (v1)
Topic: Show all processes with a name and then show detail Topic is solved
Replies: 8
Views: 3924

Re: Show all processes with a name and then show detail Topic is solved

this one checks many details of your running processes called svchost.exe à la task manager such as the command lines, which can help you identify fakes #SingleInstance Ignore ;request admin rights full_command_line := DllCall("GetCommandLine", "str") if not (A_IsAdmin or RegExMatch(full_command_lin...
by WAZAAAAA
02 Nov 2017, 13:07
Forum: Ask for Help (v1)
Topic: Finding a HWND in Win8.1 without UIAccess
Replies: 2
Views: 929

Re: Finding a HWND in Win8.1 without UIAccess

nah man, starting the same script I included in the thread with "Right Click -> Run with UI Access" will output the right HWND

Go to advanced search