Search found 9390 matches

by just me
11 Mar 2024, 05:02
Forum: Ask for Help (v2)
Topic: How to align two sets of Radio buttons Topic is solved
Replies: 2
Views: 66

Re: How to align two sets of Radio buttons Topic is solved

Code: Select all

For K, V In RadioButtons1 {
   RadioGroup1.Push(Wnd.AddRadio((K = 1 ? "xm" : "x") "+5 y15 w60 h20", V))
}
?
by just me
11 Mar 2024, 04:48
Forum: Ask for Help (v2)
Topic: WinClip.SetBitmap paste works erratically
Replies: 3
Views: 78

Re: WinClip.SetBitmap paste works erratically

There's nothing in WinClip() which would store the file path passed to SetBitmap() in the clipboard. Did you clear the clipboard?
by just me
10 Mar 2024, 05:26
Forum: Ask for Help (v2)
Topic: URLEncode for v2 and Decode too. Topic is solved
Replies: 8
Views: 837

Re: URLEncode for v2 and Decode too. Topic is solved

Hi william_ahk , Static CC := 4096 CC must not be Static because it's used as output parameter by UrlEscape() : [in, out] pcchEscaped ... When this function returns successfully, the value receives the number of characters written to the buffer, not including the terminating NULL character. If an E_...
by just me
10 Mar 2024, 04:49
Forum: Ask for Help (v2)
Topic: GUI button mystery Topic is solved
Replies: 4
Views: 140

Re: GUI button mystery Topic is solved

Additional info:
main.Add("Button", "w100 y+25 Disabled", "Stop") returns a GuiControl object.
main.Add("Button", "w100", "Start").OnEvent("Click", Start) returns the result of the OnEvent() method call, which is undefined / an empty string.
by just me
10 Mar 2024, 04:20
Forum: Ask for Help (v2)
Topic: making a function run only once per script use case: gui OnEvent change
Replies: 3
Views: 111

Re: making a function run only once per script use case: gui OnEvent change

Code: Select all

Ctrl_Change(GuiCtrlObj, Info) {
	GuiCtrlObj.OnEvent("Change", A_ThisFunc, 0)
	...
	...
	...
}
?
by just me
10 Mar 2024, 04:02
Forum: Ask for Help (v2)
Topic: Set 0px or 1px width for a window
Replies: 2
Views: 100

Re: Set 0px or 1px width for a window

afshindavoudy wrote:In the following script, I intended to create a simple slider, ...
Why don't you want to use an AHK window to create a slider?
by just me
10 Mar 2024, 03:53
Forum: Ask for Help (v2)
Topic: How to make such Gui Edit Topic is solved
Replies: 13
Views: 515

Re: How to make such Gui Edit Topic is solved

In terms of performance: I tested it already in v1.1 with similar results: #Requires AutoHotkey v2.0 Win1 := Gui( , "Test") Edt1 := Win1.AddEdit("w400", "My Edit!") Win1.Show() Sleep(1) ; syncronize A_TickCount S := A_TickCount Loop 32768 R1 := SendMessage(0x00C1, 0, 0, Edt1.Hwnd) ; EM_LINELENGTH E1...
by just me
09 Mar 2024, 06:26
Forum: Ask for Help (v2)
Topic: WatchFolder() - returning file size
Replies: 8
Views: 708

Re: WatchFolder() - returning file size

Code: Select all

                  Loop Files, Name
                     SizeMB := A_LoopFileSizeKB/1024
Whay don't you want to do it in the UserFunc?
by just me
09 Mar 2024, 06:01
Forum: Ask for Help (v2)
Topic: How to toggle between a Radio and Checkbox group Topic is solved
Replies: 4
Views: 125

Re: How to toggle between a Radio and Checkbox group Topic is solved

Using a RadioButton (it's almost the same): #Requires AutoHotkey v2.0 arrList := ["apple pie", "banana bread", "cherry cobbler", "eggplant parmasan"] CallMiniForm(, arrList) CallMiniForm(theKey:="", theList:="") { arrCB := [] arrCB.Length := arrList.Length mf := Gui() ; "mf" for "MiniForm" mf.Opt("-...
by just me
09 Mar 2024, 04:44
Forum: Ask for Help (v2)
Topic: Turn GuiEdit into Search Box - OnEvent callback for {enter} key whilst inside Gui Edit Topic is solved
Replies: 2
Views: 221

Re: Turn GuiEdit into Search Box - OnEvent callback for {enter} key whilst inside Gui Edit Topic is solved

Another option -> WM_KEYDOWN: #Requires AutoHotkey v2.0 g := Gui() g.OnEvent("Close", (*) => ExitApp()) g.SetFont("cBlack s14","Calibri") g.Add("Edit", "xm ym w400").Name := "SearchBar" SendMessage(0x1501, True, StrPtr("Type Search Text Here"), g["SearchBar"].Hwnd) ; EM_SETCUEBANNER g.Show() OnMessa...
by just me
05 Mar 2024, 12:25
Forum: Ask for Help (v1)
Topic: Is There A SendMessage For Remove Button? Topic is solved
Replies: 2
Views: 63

Re: Is There A SendMessage For Remove Button? Topic is solved

https://www.autohotkey.com/docs/v1/lib/Control.htm#Hide wrote:Control, Hide ,, Control, WinTitle, WinText, ExcludeTitle, ExcludeText
by just me
05 Mar 2024, 04:27
Forum: Ask for Help (v2)
Topic: How change picture or Icon number in Gui? Topic is solved
Replies: 3
Views: 117

Re: How change picture or Icon number in Gui? Topic is solved

If you want to use the handles more than once don't forget to add the *:

Code: Select all

pic1 := 'HBITMAP:*' LoadPicture(base, 'Icon2')

Alternatively you can use:

Code: Select all

	G['Theicon'].Value := "*icon11 shell32.dll"   ; <--- How do I change the Icon number to the "Icon11" ?
by just me
04 Mar 2024, 04:35
Forum: Ask for Help (v2)
Topic: How can I fix the issue of Regular Expressions ? Topic is solved
Replies: 7
Views: 194

Re: How can I fix the issue of Regular Expressions ? Topic is solved

Menu callback functions have three default parameters: MyCallback(ItemName, ItemPos, MyMenu) { ... The first parameter contains the item's name regardless how you call it. You defined userInput as global in the hotkey function. So you can read the variable in every other function without further ado...
by just me
04 Mar 2024, 03:39
Forum: Ask for Help (v1)
Topic: [v1.1.37.01]"Post-increment" forgets its "Post" ?
Replies: 12
Views: 553

Re: [v1.1.37.01]"Post-increment" forgets its "Post" ?

MsgBox,% N ; 1 , i.e. --N++ works I doubt. N = 0 ++N++ MsgBox,% N ; 1 , i.e. ++N++ doesn't work Due to backward compatibility, the operators ++ and -- treat blank variables as zero, but only when they are alone on a line . Seemingly, the first pre-increment/decrement returns a blank result treated ...
by just me
03 Mar 2024, 06:43
Forum: Ich brauche Hilfe
Topic: Script funzt manchmal nach Beenden von Programmen nicht .
Replies: 2
Views: 94

Re: Script funzt manchmal nach Beenden von Programmen nicht .

Moin,
Bassman002 wrote: aber dann irgendwann nach Beenden von diversen Programmen geht es plötzlich nicht mehr und ich muss dann entweder auf den Desktop klicken oder auf ein geöffnetes Fenster.
beendest Du die Programme auch per Hotkey, und wenn ja, wie?
by just me
03 Mar 2024, 04:30
Forum: Ask for Help (v1)
Topic: [v1.1.37.01]"Post-increment" forgets its "Post" ?
Replies: 12
Views: 553

Re: [v1.1.37.01]"Post-increment" forgets its "Post" ?

The command does not use the variable's value. It never sees the variable. It only sees the result of the expression. The (pre-)result (which the MsgBox has to display here) of the post-incrementation of a variable is the value of the variable before the incrementation ... As lexikos said, the comm...
by just me
03 Mar 2024, 03:23
Forum: Ask for Help (v2)
Topic: Using Rich Text in Various GUI Components Like Buttons, Edits, Texts, Listbox
Replies: 3
Views: 93

Re: Using Rich Text in Various GUI Components Like Buttons, Edits, Texts, Listbox

The RichEdit control is a separate predefined Windows control, not an Edit control (Edit box) created with Gui.AddEdit().
by just me
02 Mar 2024, 08:20
Forum: Ask for Help (v1)
Topic: Transparent editbox
Replies: 8
Views: 861

Re: Transparent editbox

Hi william_ahk , that's the best I got (it's still flickering while scrolling vertically): #Requires AutoHotkey v1.1.33 #NoEnv SetBatchLines, -1 Loop Files, %A_WinDir%\Web\Wallpaper\*.jpg, FR { If (A_Index = 4) { BkgImg := A_LoopFileFullPath Break } } ; ----------------------------------------------...
by just me
28 Feb 2024, 13:31
Forum: Ask for Help (v1)
Topic: Issue reading data after FileAppend/FileRead ClipboardAll
Replies: 6
Views: 243

Re: Issue reading data after FileAppend/FileRead ClipboardAll

Hi JnLlnd , I took the WinClip scripts from the link you posted, changed your example script to #SingleInstance Force #requires AutoHotkey v1.1 #Include %A_ScriptDir%\WinClipAPI.ahk ; include this first (https://www.autohotkey.com/boards/viewtopic.php?t=29314) #Include %A_ScriptDir%\WinClip.ahk strC...

Go to advanced search