Search found 340 matches
- 11 Mar 2020, 08:01
- Forum: Ask for Help (v1)
- Topic: Is there any way to embed a CMD / Console in a GUI?
- Replies: 14
- Views: 3948
Re: Is there any way to embed a CMD / Console in a GUI?
Hi, your example gave me an idea. But now I found another problem haha. https://i.gyazo.com/acabeff957a2c924d1610c9a7a2b58b5.gif When I use setParent the child window (cmd) will go behind the parent and I can't bring it back with winActivate nor with winSet, Top @edit: Using WinMove to resize the wi...
- 11 Mar 2020, 07:36
- Forum: Ask for Help
- Topic: Display resizable website in resizable GUI (using chrome- or Firefox Browser) Topic is solved
- Replies: 8
- Views: 4784
Re: Display resizable website in resizable GUI (using chrome- or Firefox Browser) Topic is solved
The problem is that you use an specific width and height for the ActiveX control. You can hook the resize message using onMessage to use a function that resizes the control according to the new gui size. Thanks kyuuuri , would you have an example of that. I don't seem to be smart enough to understa...
- 10 Mar 2020, 17:30
- Forum: Ask for Help (v1)
- Topic: Is there any way to embed a CMD / Console in a GUI?
- Replies: 14
- Views: 3948
Re: Is there any way to embed a CMD / Console in a GUI?
Hello, I don't understand your code. I read it like 10 times and still don't see about the DOS window being embedded into the GUI
- 10 Mar 2020, 08:40
- Forum: Ask for Help
- Topic: Display resizable website in resizable GUI (using chrome- or Firefox Browser) Topic is solved
- Replies: 8
- Views: 4784
Re: Display resizable website in resizable GUI (using chrome- or Firefox Browser) Topic is solved
The problem is that you use an specific width and height for the ActiveX control. You can hook the resize message using onMessage to use a function that resizes the control according to the new gui size.
- 10 Mar 2020, 02:29
- Forum: Ask for Help
- Topic: [H] what is /MT? Topic is solved
- Replies: 22
- Views: 13947
Re: [H] what is /MT? Topic is solved
You can check the topic I created about MT vs MD https://www.autohotkey.com/boards/viewtopic.php?f=65&t=73168
- 06 Mar 2020, 21:11
- Forum: Ask for Help (v1)
- Topic: Randoms
- Replies: 5
- Views: 588
Re: Randoms
Same way:
Code: Select all
random, rand, minValue, maxValue
sleep % rand
- 06 Mar 2020, 21:10
- Forum: Ask for Help (v1)
- Topic: Get area where image was found, using GDI imagesearch
- Replies: 5
- Views: 974
Re: Get area where image was found, using GDI imagesearch
Try using bottom right preference on imagesearch
- 06 Mar 2020, 20:15
- Forum: Ask for Help (v1)
- Topic: Randoms
- Replies: 5
- Views: 588
Re: Randoms
Hello, remember to use code tags to show your code.
You can use:
keys := [1,2,3,4,5,6,7,8]
and inside the loop you can do a random that goes from 1 to keys' max index:
That will "pick" a random element from the array keys and send it.
You can use:
keys := [1,2,3,4,5,6,7,8]
and inside the loop you can do a random that goes from 1 to keys' max index:
Code: Select all
random, rand, 1, % keys.maxIndex()
send % keys[rand]
- 06 Mar 2020, 20:13
- Forum: Ask for Help (v1)
- Topic: Click not working
- Replies: 2
- Views: 347
Re: Click not working
Please show us your code so we can see what's wrong
- 06 Mar 2020, 20:11
- Forum: Ask for Help (v1)
- Topic: Get area where image was found, using GDI imagesearch
- Replies: 5
- Views: 974
Re: Get area where image was found, using GDI imagesearch
D = %A_ScriptDir%\title.png find := Gdip_CreateBitmapFromFile(D) search := Gdip_ImageSearch(screen,find,LIST,0,0,1920,1080,80,0xFFFFFF,1,0) If %search% != 0 { CoordMode, Mouse, Screen Loop, Parse, LIST, `n { StringSplit, Coord, A_LoopField, `, FileAppend Found: %search% X:%Coord1% Y: %Coord2% } } W...
- 06 Mar 2020, 20:09
- Forum: Ask for Help (v1)
- Topic: Is there any way to embed a CMD / Console in a GUI?
- Replies: 14
- Views: 3948
- 05 Mar 2020, 01:10
- Forum: Ask for Help (v1)
- Topic: Is there any way to embed a CMD / Console in a GUI?
- Replies: 14
- Views: 3948
Is there any way to embed a CMD / Console in a GUI?
Introduction Hello, I'm trying to embed a CMD in a GUI window (probably using setParent or something) but had no luck. I tried some codes I found on the old forum but they do not work. Why? I want to run UPX.exe and be able to show the output on a GUI. Example https://i.gyazo.com/419da2645d6b990c1f...
- 04 Mar 2020, 01:10
- Forum: AutoHotkey_H
- Topic: Can "CleanUpAndPack" be changed so versions are optional?
- Replies: 4
- Views: 2838
- 03 Mar 2020, 18:20
- Forum: AutoHotkey_H
- Topic: Can "CleanUpAndPack" be changed so versions are optional?
- Replies: 4
- Views: 2838
Re: Can "CleanUpAndPack" be changed so versions are optional?
Of course, simply update: - here: https://github.com/HotKeyIt/ahkdll/blob/master/CleanUpAndPack.ahk#L9 - and here: https://github.com/HotKeyIt/ahkdll/blob/master/CleanUpAndPack.ahk#L21 I made some changes, hope you like them: If (InStr(A_AhkVersion,"1")=1) { MsgBox Requires AutoHotkey V2 version, s...
- 03 Mar 2020, 01:54
- Forum: AutoHotkey_H
- Topic: [Info] MD vs MT && Unicode vs ANSI
- Replies: 8
- Views: 6806
[Info] MD vs MT && Unicode vs ANSI
/MD (Multi-threaded DLL) versions When compiling with /MD the dlls are not included with the .exe, that's why you have to distribute vcruntime140.dll with the exe (unless the user has Visual C++ Redistributable for Visual Studio 2015 installed) Pros: The executable will be smaller. (only 1-2 MB) Th...
- 03 Mar 2020, 01:25
- Forum: AutoHotkey_H
- Topic: [Guide] Compiling Ahk_h's source step by step Topic is solved
- Replies: 51
- Views: 49947
Re: [Guide] Compiling Ahk_h's source step by step Topic is solved
i just followed the steps for this right now, with the latest AHK_H commit on master v1 branch: 973709968f5698c1f95f95d28e94e897be1780ec Nov 29, 2019 Fix bug for compressed scripts here are my notes after following the first post in this thread: 1.1) i never got the Retarget Projects popup when ope...
- 02 Mar 2020, 23:27
- Forum: AutoHotkey_H
- Topic: Can "CleanUpAndPack" be changed so versions are optional?
- Replies: 4
- Views: 2838
Can "CleanUpAndPack" be changed so versions are optional?
Hello, right now when you use "CleanUpAndPack.exe" it will complain when it can't find a version.
Can it be changed so each version is optional?
We have:
Can it be changed so each version is optional?
We have:
- Win32a
- Win32w
- x64w
- Win32a_MT
- Win32w_MT
- x64w_MT
- 01 Mar 2020, 00:28
- Forum: Forum Issues
- Topic: Slow forum
- Replies: 88
- Views: 21718
Re: Slow forum
Thank you so much!
- 31 Jan 2020, 21:32
- Forum: Ask for Help (v1)
- Topic: [WinApi] alternative to LoadImage (animated cursor)
- Replies: 1
- Views: 575
[WinApi] alternative to LoadImage (animated cursor)
Since one of the latest updates LoadImage broke and now I can't use it to load an Animated Cursor (this is confirmed by an employee of Microsoft). I wonder what alternatives do I have. This was my code (that worked until Microsoft broke it): gui, 1:add, text, x0 y0 w20 h20, test gui, 1:-caption hwnd...
- 21 Jan 2020, 19:35
- Forum: Ask for Help
- Topic: AhkExported not working as expected Topic is solved
- Replies: 1
- Views: 3430
AhkExported not working as expected Topic is solved
Hello I've been testing this code: newThread = (%` f1:: ahkExe := ahkExported() msgbox % ahkExe.ahkgetvar("A_IsCompiled") msgbox % ahkExe.ahkReady() return ) CritObj := CriticalObject() #persistent CritObj.Thread2:=AhkThread(newThread) I double checked this time, there is no typos hahaah. I don't kn...