Search found 55 matches

by Draken
15 May 2024, 11:56
Forum: Ask for Help (v2)
Topic: Communication via com port
Replies: 2
Views: 186

Re: Communication via com port

@mark_pickhard
Hello, thank you for the reply, but I'm not sure how to edit the script, could you be specific on how to edit my script to make it functional? Thank you.
by Draken
15 May 2024, 05:11
Forum: Ask for Help (v2)
Topic: Communication via com port
Replies: 2
Views: 186

Communication via com port

mark_pickhard https://www.autohotkey.com/boards/viewtopic.php?style=17&t=120880 Hello, I'm trying to use the Com communication from the above post. I built a code that should connect, according to the defined parameters, and successively send "i", "0", Enter key, "1" and Enter key again. The script...
by Draken
05 May 2024, 06:49
Forum: Ask for Help (v2)
Topic: Text in a function as a variable Topic is solved
Replies: 3
Views: 193

Re: Text in a function as a variable Topic is solved

@boiler
Ok thank you, and how do I make the equation change? For example, by inserting it at the beginning of the script using InputBox or from Gui?
by Draken
05 May 2024, 05:58
Forum: Ask for Help (v2)
Topic: Text in a function as a variable Topic is solved
Replies: 3
Views: 193

Text in a function as a variable Topic is solved

Hello, it's a shame, but I keep missing the basics. How to insert a variable as text, but at the same time make it work with variables? In this case, equations1 and equations2 are calculated only once and after the variable (equations1 and equations2) there is a result which does not change dependin...
by Draken
27 Apr 2024, 06:11
Forum: Ask for Help (v2)
Topic: Generating part of a variable Topic is solved
Replies: 1
Views: 180

Generating part of a variable Topic is solved

Hello, I tried to find it in the documentation, but unfortunately. I want to generate part of a variable in the Update_Gui function, so I don't have to have a separate line of code for each Edit, if that's even possible. Thank you. #Requires AutoHotkey v2.0 FFB := [ {var1: "65", var2: "100", var3: "...
by Draken
25 Apr 2024, 01:10
Forum: Ask for Help (v2)
Topic: Reposition a MsgBox? Topic is solved
Replies: 5
Views: 332

Re: Reposition a MsgBox? Topic is solved

@william_ahk
Hello, this is a very elegant solution, I would have a question how to find out the message number to track and why it is before WinMove && (AND?)? If I replace the && with a comma it also works, but I assume it has some meaning. Thank you.
by Draken
24 Apr 2024, 10:34
Forum: Ask for Help (v2)
Topic: How to map win+i to win+up
Replies: 4
Views: 213

Re: How to map win+i to win+up

sachinme I apologize for the mystification. gregster Thanks for the clarification, I take it here as such an exercise to improve my skills and when I think I have it figured out I want to help, but I guess I'm too eager and not knowledgeable enough and my advice might do more harm than good so I'll...
by Draken
23 Apr 2024, 05:21
Forum: Ask for Help (v2)
Topic: How use a hotkey to turn off the timer Topic is solved
Replies: 2
Views: 119

Re: How use a hotkey to turn off the timer Topic is solved

stop timer SetTimer(UpdateOSD, 0) ctrl + x shortcut to turn timer off and on again #Requires AutoHotkey 2.0 MyGui := Gui() MyGui.Opt("+AlwaysOnTop -Caption +ToolWindow") ; +ToolWindow avoids a taskbar button and an alt-tab menu item. MyGui.BackColor := "EEAA99" ; Can be any RGB color (it will be mad...
by Draken
23 Apr 2024, 05:09
Forum: Ask for Help (v2)
Topic: How to change GUI button text (v2) without destroying/recreating new GUI? Topic is solved
Replies: 2
Views: 143

Re: How to change GUI button text (v2) without destroying/recreating new GUI? Topic is solved

Code: Select all

#Requires AutoHotkey v2.0

btn_name := "OLD"

x::{
    global
    MyGui := Gui(, "Mouse")
    MyGui.SetFont("s10") 
    MyGui.Add("Button", "w220 h30 vbtn", btn_name).OnEvent("Click", ButtonClick)

    MyGui.Show("w250 h100")

    ButtonClick(*) {
        Mygui["btn"].Text := "NEW"
    }
}
by Draken
22 Apr 2024, 05:01
Forum: Ask for Help (v2)
Topic: DropDownList OnEvent Change Topic is solved
Replies: 1
Views: 87

DropDownList OnEvent Change Topic is solved

Hello, I thought I already understood the GUI but... could someone explain me why the first script works and the second one doesn't? And how to make the second one work? Thank you. #Requires AutoHotkey 2.0 weight := ["0.0", "0.5", "0.75"] Gui1 := Gui() DLL1 := Gui1.AddDropDownList("x10 ym w50 choose...
by Draken
22 Apr 2024, 00:48
Forum: Ask for Help (v2)
Topic: Reposition a MsgBox? Topic is solved
Replies: 5
Views: 332

Re: Reposition a MsgBox? Topic is solved

Hello, the MsgBox script waits for you to close it and you can't move the window using winmove, but you can work around it. #Requires AutoHotkey 2.0 SetTimer MoveMsgBox, 20 MsgBox("I'm not in the usual place!", "Moved Box") sleep 500 MsgBox("I'm not in the usual place!", "Moved Box") return MoveMsgB...
by Draken
17 Apr 2024, 07:24
Forum: Ask for Help (v2)
Topic: disable touchpad Topic is solved
Replies: 6
Views: 210

Re: disable touchpad Topic is solved

; Ctrl+Shift+[ = Touchpad Disable ^+[:: { Run ‘C:\Windows\System32\SystemSettingsAdminFlows EnableTouchpad 0’ return } ; Ctrl+Shift+] = Touchpad Enable ^+]:: { Run 'C:\Windows\System32\SystemSettingsAdminFlows EnableTouchpad 1' return } https://www.reddit.com/r/AutoHotkey/comments/eflpdi/toggle_tou...
by Draken
15 Apr 2024, 07:16
Forum: Ask for Help (v2)
Topic: change text selection endpoint
Replies: 1
Views: 119

Re: change text selection endpoint

Hello, I think it would be necessary to show a concrete application in practice, can it be done that the text is copied and then the number of the first and last character is entered, or if it is always the same set these values fixed. A_Clipboard := "" ClipWait text := A_Clipboard first := InputBox...
by Draken
15 Apr 2024, 01:35
Forum: Ask for Help (v2)
Topic: How to provide a vertical scroll bar to a Text gui for showing some information. Topic is solved
Replies: 2
Views: 136

Re: How to provide a vertical scroll bar to a Text gui for showing some information. Topic is solved

Hello, if an edit is used a scroll bar appears and ReadOnly ensures that the text cannot be changed, adding additional blank text and focusing on it will not mark the text. my_text := " ( World’s oldest forest fossils The world’s oldest fossilised forest was uncovered in Somerset last week. We head ...
by Draken
11 Mar 2024, 13:33
Forum: Ask for Help (v2)
Topic: MouseMove doesn't work to change speed Topic is solved
Replies: 8
Views: 197

Re: MouseMove doesn't work to change speed Topic is solved

Yes SendMode 'Event' solves this mysterious problem, again you helped me a lot, thank you.
by Draken
11 Mar 2024, 13:07
Forum: Ask for Help (v2)
Topic: MouseMove doesn't work to change speed Topic is solved
Replies: 8
Views: 197

Re: MouseMove doesn't work to change speed Topic is solved

It still doesn't work, I also tried uninstalling AHK completely, installing the latest V2 still doesn't work, after installing V1 and running it as a V1 script it works, tested on two PCs, W10 and W11. I really don't understand where the error could be. edit. MouseClickDrag and MouseClick it's the s...
by Draken
11 Mar 2024, 08:55
Forum: Ask for Help (v2)
Topic: MouseMove doesn't work to change speed Topic is solved
Replies: 8
Views: 197

MouseMove doesn't work to change speed Topic is solved

Hello, I have a problem with the MouseMove command where at any speed the mouse moves instantly. I tried to write a script in notepad without specifying the AHK version, and when running it selected different AHK versions. With AHK V1 the mouse moves at the specified speed, when selecting AHK V2 the...

Go to advanced search