Search found 48 matches
- 09 Oct 2023, 07:00
- Forum: Помощь
- Topic: Ошибка в форме для редактирования скрипта Topic is solved
- Replies: 3
- Views: 1956
Re: Ошибка в форме для редактирования скрипта Topic is solved
Скрипт для версии 1, а запускаете, видимо, в версии 2. Не тот AutoHotkey установлен.
- 31 Jan 2019, 11:00
- Forum: Off-topic Discussion
- Topic: too many programming languages?
- Replies: 14
- Views: 6957
Re: too many programming languages?
I am afraid that if everything gets simple and easy, we will become weak and stupid. Then what was easy will become difficult and what was simple will become complex and we will want something easier and simpler. Until there is one button in every programming IDE titled 'Write a program'. You will n...
- 06 Jan 2019, 01:28
- Forum: Ask for Help (v1)
- Topic: Passing structure to function
- Replies: 41
- Views: 12345
Re: Passing structure to function
It works if the structure of double's is passed by reference. At least ErrorLevel is 0.
- 24 Oct 2018, 23:46
- Forum: Bug Reports
- Topic: Set KBD layout to AHK window. bug?
- Replies: 1
- Views: 1347
Re: Set KBD layout to AHK window. bug?
Try if this works for you:
Code: Select all
F1::
WinExist("A")
ControlGetFocus, CtrlFocus
PostMessage, 0x50, 0, 0x40A0409, %CtrlFocus%
Return
- 03 Oct 2018, 10:52
- Forum: Ask for Help (v1)
- Topic: middle click to copy paste like in linux that would work on globally and on chrome?
- Replies: 6
- Views: 2132
Re: middle click to copy paste like in linux that would work on globally and on chrome?
See my code here: http://forum.script-coding.com/viewtopic.php?id=237. Use Google Translate to translate the post into English, it does a good enough translation.
- 07 Sep 2018, 03:15
- Forum: Ask for Help (v1)
- Topic: How can I make `send` give input to Windows cmd terminal? Topic is solved
- Replies: 4
- Views: 2968
Re: How can I make `send` give input to Windows cmd terminal? Topic is solved
It works on Windows 10. What version of Windows do you use?
- 06 Sep 2018, 22:43
- Forum: Ask for Help (v1)
- Topic: How to assign/disable buttons in a specific program
- Replies: 1
- Views: 780
- 06 Sep 2018, 22:37
- Forum: Ask for Help (v1)
- Topic: Need help with script
- Replies: 1
- Views: 584
Re: Need help with script
Code: Select all
<^XButton2::Send #{Up}
<^XButton1::Send #{Down}
- 06 Sep 2018, 22:31
- Forum: Ask for Help (v1)
- Topic: how do i read memory
- Replies: 1
- Views: 1594
- 31 Aug 2018, 13:14
- Forum: Ask for Help (v1)
- Topic: Identify installer completion window in any language?
- Replies: 2
- Views: 867
Re: Identify installer completion window in any language?
Would it help if you knew the user's language? Then you could probably use DllCall("GetUserDefaultLangID") to find it out.
- 31 Aug 2018, 06:38
- Forum: Ask for Help (v1)
- Topic: Autohotkey own window Topic is solved
- Replies: 9
- Views: 2481
Re: Autohotkey own window Topic is solved
That's very odd. But what do you call "AutoHotkey own window"? Maybe it's the black window of Windows command line console?
- 31 Aug 2018, 06:31
- Forum: Ask for Help (v1)
- Topic: How to check language and switch it if need? Topic is solved
- Replies: 3
- Views: 1174
Re: How to check language and switch it if need? Topic is solved
You don't need to check it, just switch to English.
0x50 is WM_INPUTLANGCHANGEREQUEST and 0x4090409 is US English.
Code: Select all
WinExist("A")
ControlGetFocus, CtrlFocus
PostMessage, 0x50, 0, 0x4090409, %CtrlFocus%
- 31 Aug 2018, 06:22
- Forum: Свободное общение
- Topic: Тригер по пикселям со смещениями в стороны
- Replies: 2
- Views: 8119
Re: Тригер по пикселям со смещениями в стороны
Законом это вроде не запрещено, значит можете.
- 31 Aug 2018, 06:16
- Forum: Other Programming Languages
- Topic: test windows procedures (XP+)
- Replies: 5
- Views: 5375
Re: test windows procedures (XP+)
Works on XP SP2 Home.
- 30 Aug 2018, 04:01
- Forum: Ask for Help (v1)
- Topic: Read / Write memory (beginner level)
- Replies: 20
- Views: 18691
Re: Read / Write memory (beginner level)
WinGet, PID, PID ; Recover the PID from windows name and store it in a variable called PID. But how does winget know that it's the window of assaultcube? Normally it should not be: WinGet, PID, PID, assaultcube? https://autohotkey.com/docs/misc/WinTitle.htm#LastFoundWindow HandleFromPid(Pid) ; 2)te...
- 30 Aug 2018, 01:56
- Forum: Ask for Help (v1)
- Topic: Read / Write memory (beginner level)
- Replies: 20
- Views: 18691
Re: Read / Write memory (beginner level)
ProcessBaseFromWindow(Window) ; 1) This is the first thing that happens in your code. { static GWL_HINSTANCE := -6 ; You create a variable GWL_HINSTANCE with a value of -6, and you configure this variable so that it is only visible in this function. Why ? GWL_HINSTANCE is a critical value that shou...
- 29 Aug 2018, 01:28
- Forum: Ask for Help (v1)
- Topic: Read / Write memory (beginner level)
- Replies: 20
- Views: 18691
Re: Read / Write memory (beginner level)
Yes, you can use it with other processes. I can explain if you don't understand something in it. Don't feel sorry, I come to the forum when I have time and am willing to come, so it's my own decision. I had long wanted to write my own functions to read/write process memory, so that was a chance to d...
- 28 Aug 2018, 05:14
- Forum: Ask for Help (v1)
- Topic: Read / Write memory (beginner level)
- Replies: 20
- Views: 18691
Re: Read / Write memory (beginner level)
OK, I have installed the game and tried to write to it with my set of functions. It worked and the game saw the change. Try my code below. If it works for you, then you should probably make sure you calculate the address correctly in your code. Press F3 to see the current health, then F4 to change i...
- 27 Aug 2018, 23:04
- Forum: Ask for Help (v1)
- Topic: Read / Write memory (beginner level)
- Replies: 20
- Views: 18691
Re: Read / Write memory (beginner level)
If you can read the right value of health, you can read it again after the write operation and make sure the value has changed. If the game doesn't seem to see the change, it's another matter. Is the health of 200 even possible in it? Maybe try a lower value, like 80 or 50.
- 27 Aug 2018, 06:08
- Forum: Ask for Help (v1)
- Topic: Read / Write memory (beginner level)
- Replies: 20
- Views: 18691
Re: Read / Write memory (beginner level)
You use the 0xF8 offset twice. Since you've already added it to the address, you shouldn't pass it again to WriteMemory.