oh damn me, ty ty ty ty ty!HotKeyIt wrote: ↑22 Nov 2020, 20:05See https://www.autohotkey.com/docs/Scripts.htm#ahk2exe
Additionally there is pass parameter for password
Search found 12 matches
- 22 Nov 2020, 21:00
- Forum: AutoHotkey_H
- Topic: compile BAT file - same settings like the GUI? Topic is solved
- Replies: 2
- Views: 4111
Re: compile BAT file - same settings like the GUI? Topic is solved
- 22 Nov 2020, 18:56
- Forum: AutoHotkey_H
- Topic: compile BAT file - same settings like the GUI? Topic is solved
- Replies: 2
- Views: 4111
compile BAT file - same settings like the GUI? Topic is solved
compile.bat @echo off cd C:\Users\User\AppData\Local\_DEV\___ahkdll-v1-release-master\Compiler Ahk2Exe.exe /in "C:\Users\User\AppData\Local\_DEV\__repos\__STRUCTURE\main.ahk" ECHO compiled PAUSE Works fine but... ... how to pass the parameters like with the GUI? Custom Icon and further. I found plen...
- 21 Nov 2020, 09:56
- Forum: AutoHotkey_H
- Topic: RFC: AhkThread() usage + best practices suggestions Topic is solved
- Replies: 8
- Views: 5958
- 20 Nov 2020, 23:28
- Forum: AutoHotkey_H
- Topic: RFC: AhkThread() usage + best practices suggestions Topic is solved
- Replies: 8
- Views: 5958
Re: RFC: AhkThread() usage + best practices suggestions Topic is solved
Also you can read the file, put it into a variable and add the critical object declaration before the script. Then you use this variable to start the thread. This example is only a representation of what you can do (I don't remember the syntax of fileread, and I didn't provide script_ahk) fileread,...
- 20 Nov 2020, 22:27
- Forum: AutoHotkey_H
- Topic: RFC: AhkThread() usage + best practices suggestions Topic is solved
- Replies: 8
- Views: 5958
Re: RFC: AhkThread() usage + best practices suggestions Topic is solved
You do it via Parameters: __THREAD_A := AhkThread("threadA.ahk", "" (&STATE), true) and then object:=CriticalObject(A_Args.1*1) I really appreciate your work here and your help towards my goal! Your solution works perfectly. ....but one more thing, how would i learn that "A_Args.1*1" is correct if ...
- 20 Nov 2020, 21:20
- Forum: AutoHotkey_H
- Topic: RFC: AhkThread() usage + best practices suggestions Topic is solved
- Replies: 8
- Views: 5958
Re: RFC: AhkThread() usage + best practices suggestions Topic is solved
Hello, here are a few tips to improve your code's performance, readability, etc. You can use a variable / file for ahkThread so instead of writing the code as a continuation section (which has limitations like size, escaping, etc.) you can write it on another file. If you don't like the idea of hav...
- 20 Nov 2020, 19:55
- Forum: AutoHotkey_H
- Topic: RFC: AhkThread() usage + best practices suggestions Topic is solved
- Replies: 8
- Views: 5958
RFC: AhkThread() usage + best practices suggestions Topic is solved
hey there friends! further below you will find a working code which uses AhkThread() to start 2 independent infinite loops which are only doing work if a certain variable (namely) object.error is set to none . If either of those loops encounter a problem -> object.error is changed and both loops wil...
- 20 Nov 2020, 08:08
- Forum: AutoHotkey_H
- Topic: NOOB guide on how to use H ? Topic is solved
- Replies: 14
- Views: 8840
Re: NOOB guide on how to use H ? Topic is solved
Don't forget #Persistent for your main thread, otherwise it will exit the program. Yes you are able to separate them but it affects performance and you need a reference to be able to call it #Persistent __THREAD_A := AhkThread(" ( #Persistent fun(a){ MsgBox `% ""From Thread:``n"" a } )") __THREAD_B...
- 19 Nov 2020, 21:40
- Forum: AutoHotkey_H
- Topic: NOOB guide on how to use H ? Topic is solved
- Replies: 14
- Views: 8840
Re: NOOB guide on how to use H ? Topic is solved
All you need is the AutoHotkey.exe, simply replace yours (backup your current one!). If you don't know which one to use, start with the one that does not require vc runtime: 32-bit MT or 64-bit MT . From there all you need for multi-threading is AhkThread function: ahk1:=AhkThread("MsgBox thread 1"...
- 19 Nov 2020, 15:39
- Forum: AutoHotkey_H
- Topic: NOOB guide on how to use H ? Topic is solved
- Replies: 14
- Views: 8840
NOOB guide on how to use H ? Topic is solved
Hello together! I am really running into a wall to start using version H. Simply because it is not a normal installation like the normal version of AHK. My main goal is to proceed using multiple THREADS and not timer which are still single threaded and infinite loops do not work then obviously. I tr...
- 19 Apr 2018, 09:19
- Forum: C/C++
- Topic: [C++] SendInput doesn't work in a game, but AHK's SendInput (from the source code) does
- Replies: 13
- Views: 27125
Re: [C++] SendInput doesn't work in a game, but AHK's SendInput (from the source code) does
There are 2 method to do this. #1 actually does not work in most games but is considered the "better" one to C++ community. Nevertheless, #2 works always and as good as #1. So go and use #2 in any case and u are fine. #1 INPUT KEY; KEY.type = INPUT_KEYBOARD; KEY.ki.wScan = 0; KEY.ki.time = 0; KEY.ki...
- 17 Apr 2018, 15:51
- Forum: C/C++
- Topic: [C++] SendInput doesn't work in a game, but AHK's SendInput (from the source code) does
- Replies: 13
- Views: 27125
Re: [C++] SendInput doesn't work in a game, but AHK's SendInput (from the source code) does
I was searching in the source code for hours now and tried a lot more different methods. And finally I made it to work. :) As it turns out the problem was indeed with the flags, I had to set it to 0 and it works like a charm. No idea how to close the thread, so I'll just leave it be. Thank you! hel...