Search found 47 matches

by YMP2
31 Jan 2019, 11:00
Forum: Offtopic
Topic: too many programming languages?
Replies: 15
Views: 816

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...
by YMP2
06 Jan 2019, 01:28
Forum: Ask For Help
Topic: Passing structure to function
Replies: 41
Views: 1712

Re: Passing structure to function

It works if the structure of double's is passed by reference. At least ErrorLevel is 0.
by YMP2
24 Oct 2018, 23:46
Forum: Bug Reports
Topic: Set KBD layout to AHK window. bug?
Replies: 1
Views: 368

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
by YMP2
03 Oct 2018, 10:52
Forum: Ask For Help
Topic: middle click to copy paste like in linux that would work on globally and on chrome?
Replies: 6
Views: 323

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.
by YMP2
07 Sep 2018, 03:15
Forum: Ask For Help
Topic: How can I make `send` give input to Windows cmd terminal? Topic is solved
Replies: 4
Views: 257

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?
by YMP2
06 Sep 2018, 22:37
Forum: Ask For Help
Topic: Need help with script
Replies: 1
Views: 100

Re: Need help with script

Code: Select all

<^XButton2::Send #{Up}
<^XButton1::Send #{Down}
by YMP2
31 Aug 2018, 13:14
Forum: Ask For Help
Topic: Identify installer completion window in any language?
Replies: 2
Views: 159

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.
by YMP2
31 Aug 2018, 06:38
Forum: Ask For Help
Topic: Autohotkey own window Topic is solved
Replies: 9
Views: 376

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?
by YMP2
31 Aug 2018, 06:31
Forum: Ask For Help
Topic: How to check language and switch it if need? Topic is solved
Replies: 3
Views: 242

Re: How to check language and switch it if need? Topic is solved

You don't need to check it, just switch to English.

Code: Select all

WinExist("A")
ControlGetFocus, CtrlFocus
PostMessage, 0x50, 0, 0x4090409, %CtrlFocus%
0x50 is WM_INPUTLANGCHANGEREQUEST and 0x4090409 is US English.
by YMP2
31 Aug 2018, 06:22
Forum: Свободное общение
Topic: Тригер по пикселям со смещениями в стороны
Replies: 1
Views: 822

Re: Тригер по пикселям со смещениями в стороны

Законом это вроде не запрещено, значит можете.
by YMP2
31 Aug 2018, 06:16
Forum: Other Programming Languages
Topic: test windows procedures (XP+)
Replies: 5
Views: 693

Re: test windows procedures (XP+)

Works on XP SP2 Home.
by YMP2
30 Aug 2018, 04:01
Forum: Ask For Help
Topic: Read / Write memory (beginner level) Topic is solved
Replies: 18
Views: 1147

Re: Read / Write memory (beginner level) Topic is solved

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...
by YMP2
30 Aug 2018, 01:56
Forum: Ask For Help
Topic: Read / Write memory (beginner level) Topic is solved
Replies: 18
Views: 1147

Re: Read / Write memory (beginner level) Topic is solved

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...
by YMP2
29 Aug 2018, 01:28
Forum: Ask For Help
Topic: Read / Write memory (beginner level) Topic is solved
Replies: 18
Views: 1147

Re: Read / Write memory (beginner level) Topic is solved

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...
by YMP2
28 Aug 2018, 05:14
Forum: Ask For Help
Topic: Read / Write memory (beginner level) Topic is solved
Replies: 18
Views: 1147

Re: Read / Write memory (beginner level) Topic is solved

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...
by YMP2
27 Aug 2018, 23:04
Forum: Ask For Help
Topic: Read / Write memory (beginner level) Topic is solved
Replies: 18
Views: 1147

Re: Read / Write memory (beginner level) Topic is solved

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.
by YMP2
27 Aug 2018, 06:08
Forum: Ask For Help
Topic: Read / Write memory (beginner level) Topic is solved
Replies: 18
Views: 1147

Re: Read / Write memory (beginner level) Topic is solved

You use the 0xF8 offset twice. Since you've already added it to the address, you shouldn't pass it again to WriteMemory.
by YMP2
26 Aug 2018, 07:23
Forum: Ask For Help
Topic: Read / Write memory (beginner level) Topic is solved
Replies: 18
Views: 1147

Re: Read / Write memory (beginner level) Topic is solved

Try if this will work for you. I divided the code among several functions with self-explanatory names. Does it give you the right value for PlayerObjectPointer? If you want to read numbers of types other than "ptr", use the types that the NumGet() function uses: "short", "int", "uint", etc. SetForma...

Go to advanced search