Search found 110 matches

by Ralf_Reddings200244
21 Jan 2024, 16:55
Forum: Tutorials (v1)
Topic: FindText tutorial
Replies: 105
Views: 74848

Re: FindText tutorial

@Descolada

I have been using FindText for these kinds of tasks for while now, I completely forgot about CoorMode, pixel! I can confirm that it is working now. Thank you man!
by Ralf_Reddings200244
20 Jan 2024, 15:17
Forum: Tutorials (v1)
Topic: FindText tutorial
Replies: 105
Views: 74848

Re: FindText tutorial

Descolada FindText.PixelSearch() fails when I specify a rectangular region Following your amazing guide again, to get a bit deeper into this library. I am trying to get FindText().PixelSearch() to only look within a rectangular region but it keeps failing on me. The function works when I dont speci...
by Ralf_Reddings200244
15 Jan 2024, 12:32
Forum: Ask for Help (v1)
Topic: AHKV1: GetKeyState() not working with #if
Replies: 1
Views: 113

AHKV1: GetKeyState() not working with #if

The following does not work. The tooltips never fire, when I am holding control: #singleinstance, force #Persistent #If GetKeyState("LControl", "p") WheelUp:: tooltip, WheelUp + lctrl Return WheelDown:: tooltip, WheelDown + lctrl Return #If But this works, pressing a while ctrl is down fires the too...
by Ralf_Reddings200244
11 Oct 2023, 11:57
Forum: Ask for Help (v1)
Topic: I cant figure out how to use this function
Replies: 3
Views: 338

Re: I cant figure out how to use this function

mikeyww wrote:
11 Oct 2023, 11:31
Hello,

I ran your script and saw no error messages.
I think you would only get the errors I mentioned if you are using #Warn, All, OutputDebug.
If you look at the first message box it reports a value, while the second message box reports nothing.
by Ralf_Reddings200244
11 Oct 2023, 11:22
Forum: Ask for Help (v1)
Topic: I cant figure out how to use this function
Replies: 3
Views: 338

I cant figure out how to use this function

I have been using Polyethene's Command Functions library which is supposed to act as a replacement for allot of commands, The AutoHotkey docs recommends the library HERE . I have made use of it allot but I am struggling to make use of one function though, which is GuiControlGet , a replacement for t...
by Ralf_Reddings200244
09 Oct 2023, 12:15
Forum: Ask for Help (v1)
Topic: DllCall() - I keep getting ErrorLevel '-4' Topic is solved
Replies: 3
Views: 514

DllCall() - I keep getting ErrorLevel '-4' Topic is solved

I am learning how to make DLL calls in AHK V1 and I have covered some distance and understand a great deal, mostly thanks to this excellent article DllCall and structs tutorial by jeeswg but I am at a stumbling block I cant seem to get past. I am using the code found HERE by user shinywong, as a sta...
by Ralf_Reddings200244
05 Oct 2023, 10:40
Forum: Ask for Help (v1)
Topic: Understanding Example #3 of FileOpen() from the documentation page Topic is solved
Replies: 2
Views: 400

Re: Understanding Example #3 of FileOpen() from the documentation page Topic is solved

Amazing expalantion. I understand much better now. Thank you so much for taking the time to explain this to me!
by Ralf_Reddings200244
04 Oct 2023, 07:53
Forum: Ask for Help (v1)
Topic: Understanding Example #3 of FileOpen() from the documentation page Topic is solved
Replies: 2
Views: 400

Understanding Example #3 of FileOpen() from the documentation page Topic is solved

With the FileAppend command, its as simple as calling a compiled .ahk file from a terminal window, to get back an output from the script. For example: ;@Ahk2Exe-ConsoleApp FileAppend, Hello World! , * I want to start using FileOpen() but it seems more complicated, regardless I want to use it, from h...
by Ralf_Reddings200244
03 Oct 2023, 14:39
Forum: Ask for Help (v1)
Topic: How to get the width and height of the active monitor?
Replies: 1
Views: 259

How to get the width and height of the active monitor?

#singleinstance, force #Warn, All, OutputDebug space:: Gui HUD:New, +AlwaysOnTop +ToolWindow -Caption +HwndMainHwnd, hudWin Gui HUD:Font,s14,Consolas Gui, Add, Text,,% Clipboard GuiControlGet, OutputVar, Pos, Static1 Gui HUD:Show Return The above is a simple program that is meant to show display th...
by Ralf_Reddings200244
23 Sep 2023, 14:28
Forum: Ask for Help (v1)
Topic: how to create a new object through double dref and declare it to be global?
Replies: 0
Views: 283

how to create a new object through double dref and declare it to be global?

test() OutputDebug, % foo.baz test (){ bar := "foo" global %bar% := {} ; this object is called foo %bar%.baz := "100" } I cant know what name this global object is going to have, as it is just a window handle number, I need to dynamically create it and set it to global so that once its known, other...
by Ralf_Reddings200244
21 Sep 2023, 12:32
Forum: Ask for Help (v1)
Topic: G33kDude cJson - After loading Json string into AHK, how to access a key via AHK notation? Topic is solved
Replies: 2
Views: 353

G33kDude cJson - After loading Json string into AHK, how to access a key via AHK notation? Topic is solved

I have the following json file and want to turn it into an AHK object: { "folders": [ { "path": "." } ], "settings": { "files.exclude": { "[b]/.git": true, "[/b]/.svn": true, "[b]/.hg": true, "[/b]/CVS": true, "[b]/.DS_Store": true, "[/b]/Thumbs.db": true, "[i][/i].lnk":true, "*.code-workspace" :tru...
by Ralf_Reddings200244
20 Sep 2023, 11:57
Forum: Ask for Help (v1)
Topic: Struggling to resolve Tap Hold Manager Lshift and Rhsift key conflict Topic is solved
Replies: 2
Views: 291

Re: Struggling to resolve Tap Hold Manager Lshift and Rhsift key conflict Topic is solved

@Rohwedder
pretty neat solution, were my codebase not kneed deep in THM I would have gone with it. Thank you for the help though.
by Ralf_Reddings200244
17 Sep 2023, 09:44
Forum: Ask for Help (v1)
Topic: Struggling to resolve Tap Hold Manager Lshift and Rhsift key conflict Topic is solved
Replies: 2
Views: 291

Struggling to resolve Tap Hold Manager Lshift and Rhsift key conflict Topic is solved

I have been trying to solve this issue for the better part of yesterday and I seem to be getting nowhere. I want to use Lshift and Rshift as a standalone triggers and also be able to use them as modifiers to trigger combinations like LShift + a / Rshift + a / Lshift + Rshift + a . Using Lshift and R...
by Ralf_Reddings200244
09 Sep 2023, 08:49
Forum: Ask for Help (v1)
Topic: How to nest '#If' conditions? Topic is solved
Replies: 2
Views: 311

How to nest '#If' conditions? Topic is solved

I have tried the following, it throws an error, "unexpected {": #If !(MG_Active){ #If WinActive("ahk_exe foobar2000.exe") WheelUp:: ToolTip, foobar2000 Up Return WheelDown:: ToolTip, foobar2000 Down return #If WinActive("ahk_exe firefox.exe") WheelUp:: ToolTip, firefox Up Return WheelDown:: ToolTip,...
by Ralf_Reddings200244
04 Sep 2023, 14:25
Forum: Ask for Help (v1)
Topic: Console based AutoHotkey will not use a unicode character as a delimeter in StrlSplit()
Replies: 0
Views: 218

Console based AutoHotkey will not use a unicode character as a delimeter in StrlSplit()

I recently made a copy of the AutoHotkey executable ( C:\Program Files\AutoHotkey\AutoHotkey.exe ), moved to another folder and changed its sub system to a console application using Explorer Suite , so I can execute AutoHotkey code at the command line and return Output directly to the terminal, with...
by Ralf_Reddings200244
31 Aug 2023, 15:39
Forum: Ask for Help (v1)
Topic: How to output to the command line window that called the AHK executable program? Topic is solved
Replies: 2
Views: 456

How to output to the command line window that called the AHK executable program? Topic is solved

The following is code that belongs to a compiled AHK script: ;@Ahk2Exe-ConsoleApp FileAppend, Hello World, * ExitApp When the compiled exe is called from windows terminal, it will return "Hello World". A few weeks ago I was asking around how I can return output to the terminal without compiling the ...

Go to advanced search