Search found 9399 matches

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: 118

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: 196

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: 554

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: 97

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: 554

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: 245

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...
by just me
27 Feb 2024, 09:52
Forum: About This Community
Topic: can i set "search" to display in topic instead of post?
Replies: 12
Views: 709

Re: can i set "search" to display in topic instead of post?

I asked for this setting years ago with no avail. What a pity!
by just me
27 Feb 2024, 08:26
Forum: Ask for Help (v1)
Topic: works fine as .ahk but bugs when an exe Topic is solved
Replies: 9
Views: 180

Re: works fine as .ahk but bugs when an exe Topic is solved

tried that and that would only move my tooltip to the left coz it never got its y value for its position I doubt that, but you might have got values you didn't expect. ; Originally posted code: WatchCursor: PixelGetColor,Color_Under_Mouse,X,Y, RGB MouseGetPos, X,Y ; <<<<<<<<<< here you get the y va...
by just me
27 Feb 2024, 06:01
Forum: Ask for Help (v2)
Topic: Detect if there is a scrollbar in ListView? Topic is solved
Replies: 3
Views: 139

Re: Detect if there is a scrollbar in ListView? Topic is solved

#Requires AutoHotkey v2.0 ColWidth := 0 Win := Gui() Win.OnEvent("Close", (*) => ExitApp()) LV := Win.Addlistview("r10 w800", ["Col1", "Col2", "Col3", "Col4", "Col5"]) Win.AddButton("", "Change column width").OnEvent("Click", ChangeColWidth) Win.Show() Sleep(1000) ChangeColWidth() ChangeColWidth(*)...
by just me
27 Feb 2024, 04:03
Forum: Ask for Help (v1)
Topic: works fine as .ahk but bugs when an exe Topic is solved
Replies: 9
Views: 180

Re: works fine as .ahk but bugs when an exe Topic is solved

Code: Select all

ToolTip, Numpad4   Copy Color %Color_Under_Mouse% `nCTRL and Copy = ExitApp ,%X% %Y% ;A_ScreenWidth-200, % A_ScreenHeight-200
You need to insert a comma between %X% and %Y%, otherwise it's treated as %X%%Y% (auto-concat).
by just me
26 Feb 2024, 05:29
Forum: Ask for Help (v1)
Topic: RegExReplace not working as expected
Replies: 3
Views: 93

Re: RegExReplace not working as expected

If you want to edit multiline text using ^ you need to specify the m option and maybe also `a.
by just me
26 Feb 2024, 04:57
Forum: Ask for Help (v2)
Topic: ListView - get selected column number Topic is solved
Replies: 5
Views: 229

Re: ListView - get selected column number Topic is solved

For v2 I'd prefer the GuiCtrl.OnNotify() method: #Requires AutoHotkey v2.0 Win := Gui() Win.OnEvent("ContextMenu", ContextMenu) Win.OnEvent("Close", (*) => ExitApp()) LV := Win.Addlistview( "r10 w800", ["Col1", "Col2", "Col3", "Col4", "Col5", ""]) Loop 3 LV.Add( , Random(1, 99), Random(1, 99), Rando...
by just me
22 Feb 2024, 05:05
Forum: Ask for Help (v1)
Topic: Search text in listview
Replies: 13
Views: 199

Re: Search text in listview

#Requires AutoHotkey v1.1.33 #NoEnv #SingleInstance force SetBatchLines, -1 TxtFile := A_ScriptDir . "\Soft.txt" ; FileRead, Content, %TxtFile% ; Generate test content >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Countries := ["Germany", "Greece", "Spain", "Syria", "United Kingdom", "USA"...
by just me
22 Feb 2024, 03:59
Forum: Ich brauche Hilfe
Topic: GuiControl, 1: , thisTab3, test Topic is solved
Replies: 3
Views: 137

Re: GuiControl, 1: , thisTab3, test Topic is solved

Moin effel , das Problem sind die mit den Tabs verbundenen Controls. Sie werden dauerhaft mit der Position des zum Zeitpunkt der Verbindung gewählten Tabs verknüpft. Wenn Tabs nachträglich gelöscht werden, bleiben die Controls und ihre Verbindung zu einer Tabposition erhalten. Sie erscheinen, sobald...
by just me
21 Feb 2024, 04:19
Forum: Ask for Help (v2)
Topic: MenuSelect and Version error
Replies: 3
Views: 76

Re: MenuSelect and Version error

Error Handling wrote:A ValueError is thrown if a menu, submenu or menu item could not be found, or if the final menu parameter corresponds to a menu item which opens a submenu.
Are you sure the item's caption is actually "Optimize Scanned PDF" (no accelerator)?
by just me
19 Feb 2024, 17:18
Forum: Scripts and Functions (v2)
Topic: AHK v2 - ListViewExtensions (alpha.1) - 2024-02-13
Replies: 14
Views: 1856

Re: AHK v2 - ListViewExtensions (alpha.1) - 2024-02-13

If it causes any trouble you can just remove the line

Code: Select all

   Type => "ListViewX"
from the class. It actually isn't needed.
by just me
19 Feb 2024, 09:42
Forum: Ich brauche Hilfe
Topic: Fortschrittsbalken
Replies: 9
Views: 303

Re: Fortschrittsbalken

Moin, wenn es nur um eine Aktivitätsanzeige geht, geht auch Folgendes: PBS_MARQUEE (0x08) -> https://learn.microsoft.com/en-us/windows/win32/controls/progress-bar-control-styles PBM_SETMARQUEE (0x040A) -> https://learn.microsoft.com/en-us/windows/win32/controls/pbm-setmarquee #NoEnv SetBatchLines, -...

Go to advanced search