Search found 20 matches
- 10 Aug 2021, 17:20
- Forum: Ask for Help (v1)
- Topic: How to simulate keystroke using SendInput via dllcall? Topic is solved
- Replies: 5
- Views: 1221
Re: How to simulate keystroke using SendInput via dllcall? Topic is solved
An example: KeyArray := [{sc: 0x23, event: "Down"}, {sc: 0x23, event: "Up"}, {sc: 0x17, event: "Down"}, {sc: 0x17, event: "Up"}] InputKeyboardEvents(KeyArray) InputKeyboardEvents(KeyArray) { static INPUT_KEYBOARD := 1, KEYEVENTF_KEYUP := 2, KEYEVENTF_SCANCODE := 8, InputSize := 16 + A_PtrSize*3 Var...
- 05 Aug 2021, 09:04
- Forum: Ask for Help (v1)
- Topic: How to simulate keystroke using SendInput via dllcall? Topic is solved
- Replies: 5
- Views: 1221
Re: How to simulate keystroke using SendInput via dllcall? Topic is solved
those struct offsets look super wrong. two adjacent words in the same struct padded out to a pointer is a dead giveaway something's not right. ure filling the struct with garbage uve put in random places, so the DllCall returning 0 is probably not indicative of "the input being already blocked by a...
- 04 Aug 2021, 20:09
- Forum: 请求帮助
- Topic: 请问如何使用DllCall的方式模拟键盘按键?
- Replies: 2
- Views: 2959
Re: 请问如何使用DllCall的方式模拟键盘按键?
singleSpace() { VarSetCapacity(Key1_Down, A_PtrSize*5+4, 0) static INPUT_KEYBOARD := 1, KEYEVENTF_EXTENDEDKEY := 0x0001, KEYEVENTF_KEYUP := 0x0002 VirtualKey := int2hex(GetKeyVK("Space")) ScanCode := int2hex(GetKeySC("Space")) NumPut(INPUT_KEYBOARD, Key1_Down, "UInt") ;4 bit NumPut(VirtualKey, Key1...
- 04 Aug 2021, 20:06
- Forum: Ask for Help (v1)
- Topic: How to simulate keystroke using SendInput via dllcall? Topic is solved
- Replies: 5
- Views: 1221
Re: How to simulate keystroke using SendInput via dllcall? Topic is solved
singleSpace() { VarSetCapacity(Key1_Down, A_PtrSize*5+4, 0) static INPUT_KEYBOARD := 1, KEYEVENTF_EXTENDEDKEY := 0x0001, KEYEVENTF_KEYUP := 0x0002 VirtualKey := int2hex(GetKeyVK("Space")) ScanCode := int2hex(GetKeySC("Space")) NumPut(INPUT_KEYBOARD, Key1_Down, "UInt") ;4 bit NumPut(VirtualKey, Key1...
- 29 Jul 2021, 20:31
- Forum: 请求帮助
- Topic: 请问如何使用DllCall的方式模拟键盘按键?
- Replies: 2
- Views: 2959
请问如何使用DllCall的方式模拟键盘按键?
目前已经测试成功一种方式: DllCall("keybd_event", "Int", VirtualKey, "Int", ScanCode, "Int", 1, "Int", 0) DllCall("keybd_event", "Int", VirtualKey, "Int", ScanCode, "Int", 2, "Int", 0) 但由于这个函数(keybd_event)已经被取代了,我想尝试最新的SendInput函数但遇到了问题 尝试如下: ~*1:: press_key("Space") Return press_key(key_name) { VarSetCapacity(K...
- 29 Jul 2021, 15:24
- Forum: Ask for Help (v1)
- Topic: How to simulate keystroke using SendInput via dllcall? Topic is solved
- Replies: 5
- Views: 1221
How to simulate keystroke using SendInput via dllcall? Topic is solved
Since SendInput {Key Down} and SendInput {Key Up} is a bit slow in some cases (even if i used SetBatchLines, -1 and SetKeyDelay, -1, -1), I am now looking for a method which can do the same job faster (ahk SendInput could use up to 40ms on my laptop). I found one way to do so is using DllCall("keybd...
- 07 May 2021, 12:08
- Forum: Ask for Help
- Topic: AHK Compiler <error>
- Replies: 24
- Views: 10308
Re: AHK Compiler <error>
@HotKeyIt
64bit Unicode 1.1.33.2 for AHK_H
yeah i tried but when double clicked ahk2exe.exe it still gives me that error (illegal character)
64bit Unicode 1.1.33.2 for AHK_H
yeah i tried but when double clicked ahk2exe.exe it still gives me that error (illegal character)
- 01 May 2021, 11:22
- Forum: Gaming Help (v1)
- Topic: How to achieve precise sleep delay but avoid blocking AHK's thread(due to DLLCall\Sleep)?
- Replies: 4
- Views: 2654
Re: How to achieve precise sleep delay but avoid blocking AHK's thread(due to DLLCall\Sleep)?
ecvent0r I am not sure if it helps: https://docs.microsoft.com/zh-cn/windows/win32/api/synchapi/nf-synchapi-sleepex And this is the precise sleep delay i am using...but it contains dllcall\sleep... SystemTime() { freq := 0, tick := 0 If (!freq) DllCall("QueryPerformanceFrequency", "Int64*", freq) D...
- 30 Apr 2021, 23:50
- Forum: Ask for Help (v1)
- Topic: Memory issue
- Replies: 6
- Views: 667
- 30 Apr 2021, 23:47
- Forum: Ask for Help (v1)
- Topic: Is there any way to search for multiple pixels for multiple color??
- Replies: 5
- Views: 1419
Re: Is there any way to search for multiple pixels for multiple color??
Is it possible to check if certain area of my screen (160*90 pixel) contains ANY one of those colors? Of course it is possible. Every screen search algorithm consists of 2 parts. 1) Get screen byte array with different API. 2) Search inside this array. I am too lazy to compare different algorithms ...
- 27 Apr 2021, 20:08
- Forum: Ask for Help (v1)
- Topic: Memory issue
- Replies: 6
- Views: 667
- 27 Apr 2021, 20:00
- Forum: Ask for Help (v1)
- Topic: Is there any way to search for multiple pixels for multiple color??
- Replies: 5
- Views: 1419
Re: Is there any way to search for multiple pixels for multiple color??
Pixelsearch and pixelgetcolor both need averagely 7 ms for each run on my laptop, and i need the new method take less 20ms for each run. Is it possible? I guess there's a typo above. You say it averages 7 ms but you need it to take less than 20 ms. You could use LockBits and write some code in C an...
- 27 Apr 2021, 19:39
- Forum: Ask for Help (v1)
- Topic: Memory issue
- Replies: 6
- Views: 667
Re: Memory issue
no such thing is observed when testing with U64 #Requires AutoHotkey v1.1.33.08 MsgBox without knowing what script ure running its impossible to say anything. but its probably a problem in ur script I didn't post script just because it literally happened to every scripts on my laptop For example: #...
- 27 Apr 2021, 17:52
- Forum: Ask for Help (v1)
- Topic: Is there any way to search for multiple pixels for multiple color??
- Replies: 5
- Views: 1419
Is there any way to search for multiple pixels for multiple color??
Well i don't mean color range I have a list of color which contains 0xFF0000, 0x00FF00, 0x00FFFF, 0x1949EE... totally 100+ different colors. Is it possible to check if certain area of my screen (160*90 pixel) contains ANY one of those colors? I understand i can check one by one but it is TOO SLOW. P...
- 27 Apr 2021, 15:42
- Forum: Ask for Help
- Topic: AHK Compiler <error>
- Replies: 24
- Views: 10308
Re: AHK Compiler <error>
Make sure you copy the AutoHotkey.exe from the ahk_h package into Compiler folder and rename it to Ahk2Exe.exe, then double click it. Note! If you want to compile ANSI (Win32a) you will need the AutoHotkey.exe from the same folder, otherwise from Win32w or x64w! Hello @HotKeyIt , I followed your gu...
- 21 Apr 2021, 21:11
- Forum: Ask for Help (v1)
- Topic: Memory issue
- Replies: 6
- Views: 667
Memory issue
Hello there: I am not sure if this is counted as an issue or is mentioned earlier, but when I was running my script, it only use 2~10 Mb of my memory. However, every time if I right-clicked the tray icon, the memory use would dramatically increase to over 100 Mb. I am using unicode 64 bits version. ...
- 17 Apr 2021, 09:48
- Forum: Ask for Help
- Topic: Not sure if it is a bug or not
- Replies: 3
- Views: 2744
Re: Not sure if it is a bug or not
Here is the zip file how do i start this script in crossfire and can you make gg vip script no reciol ? Go to https://github.com/JiaPai12138/Crossfirer/tree/main/Crossfirer_v2.x , download the full folder, (install ahk at default location) double click 请低调使用.bat , select the menu. If you want to us...
- 03 Apr 2021, 21:07
- Forum: Gaming Help (v1)
- Topic: Background clicking while in fullscreen game
- Replies: 1
- Views: 2923
Re: Background clicking while in fullscreen game
https://www.youtube.com/watch?v=n6O4rexibx4
[Mod edit: video above seems to demonstrate how to automate NelLimiter (see above) with help of the Acc.ahk library; with written chinese comments]
[Mod edit: video above seems to demonstrate how to automate NelLimiter (see above) with help of the Acc.ahk library; with written chinese comments]
- 25 Mar 2021, 10:03
- Forum: Ask for Help
- Topic: Not sure if it is a bug or not
- Replies: 3
- Views: 2744
Re: Not sure if it is a bug or not
Here is the zip file
- 25 Mar 2021, 00:31
- Forum: Ask for Help
- Topic: Not sure if it is a bug or not
- Replies: 3
- Views: 2744
Not sure if it is a bug or not
First, make sure you are using the latest ahk_h v1 Next, download the attached zip file, then unzip the downloaded file Then, double click the file Crossfirer_Recoilless.ahk in the folder, it works fine for now... However , if you try to edit this file, at line 143, change the following code from ~*...