Search found 151 matches
- 08 Jan 2024, 05:51
- Forum: Ask for Help (v1)
- Topic: GUI can not be closed Topic is solved
- Replies: 2
- Views: 230
Re: GUI can not be closed Topic is solved
The documentation explains this. If [the GuiClose] label is absent, closing the window simply hides it, which is the same effect as Gui Cancel. If the GuiClose label is present, then this subroutine will execute instead of closing the window . Nonetheless, you can have that subroutine close your GU...
- 07 Jan 2024, 19:50
- Forum: Ask for Help (v1)
- Topic: GUI can not be closed Topic is solved
- Replies: 2
- Views: 230
GUI can not be closed Topic is solved
The scenario and purpose of the following code: run the code, there will be a small window around upper left corner of screen. move mouse to any point of screen. win_spacebar hotkey, the color of that point will be grabbed, and shown as HSB format value. And it will keep updating the color changes o...
- 08 Mar 2023, 23:29
- Forum: Ask for Help (v1)
- Topic: why this does not work in chrome's tabs area? Topic is solved
- Replies: 4
- Views: 280
Re: why this does not work in chrome's tabs area? Topic is solved
Works like a charm! Much appreciate it.mikeyww wrote: ↑08 Mar 2023, 23:25Code: Select all
#Requires AutoHotkey v1.1.33 #If WinActive("ahk_class Chrome_WidgetWin_1") ~LButton Up::MouseClick , R,,, A_Priorkey = "LButton" && A_TimeSincePriorHotkey < 400 && A_TimeSincePriorHotkey > 0 #If
- 08 Mar 2023, 22:59
- Forum: Ask for Help (v1)
- Topic: why this does not work in chrome's tabs area? Topic is solved
- Replies: 4
- Views: 280
Re: why this does not work in chrome's tabs area? Topic is solved
Thanks for your help. I tried and that info is the same in all areas in chrome.
- 08 Mar 2023, 22:35
- Forum: Ask for Help (v1)
- Topic: why this does not work in chrome's tabs area? Topic is solved
- Replies: 4
- Views: 280
why this does not work in chrome's tabs area? Topic is solved
With a simple script, which I want to see the right click menu when I double click in tabs area. In the following startup test, right click menu only shows when I double click in web page area, not in the upper area. Anybody please tell me what's wrong? ~LButton:: If (A_TimeSincePriorHotkey<400) and...
- 16 Feb 2023, 09:21
- Forum: Ask for Help (v1)
- Topic: in Chrome, get active tab's coordinates? Topic is solved
- Replies: 5
- Views: 490
Re: in Chrome, get active tab's coordinates? Topic is solved
Without much info to go on (your AHK version, Windows version, whether Chrome is running as admin or not), I'm going to guess you are running an older Windows version than 10.0.15063. That would mean that FindFirstWithOptions isn't available, which I guess could throw such an error? Try this instea...
- 15 Feb 2023, 22:39
- Forum: Ask for Help (v1)
- Topic: in Chrome, get active tab's coordinates? Topic is solved
- Replies: 5
- Views: 490
Re: in Chrome, get active tab's coordinates? Topic is solved
with UIA, walk over every tab( UIA_TabItemControlTypeId ) in ur target Chrome window. test their SelectionItem control patterns' .IsSelected property for truthyness to indentify the active tab. the query that active tab's IUIAutomationElement::get_CurrentBoundingRectangle property Thank you so much...
- 14 Feb 2023, 21:11
- Forum: Ask for Help (v1)
- Topic: in Chrome, get active tab's coordinates? Topic is solved
- Replies: 5
- Views: 490
in Chrome, get active tab's coordinates? Topic is solved
in Chrome (not IE) is it possible to get active tab's coordinates? BTW, I tried chatGPT, which gives me gibberish like "ClipboardGet", it also gives me a WinGet, hWnd, ID, ahk_class Chrome_WidgetWin_1 ; Send the appropriate message to Chrome to retrieve the position of the active tab. SendMessage, 0...
- 09 Jan 2022, 05:52
- Forum: Ask for Help (v1)
- Topic: GUI text auto width wrap? Topic is solved
- Replies: 14
- Views: 2601
Re: GUI text auto width wrap? Topic is solved
Try this. #SingleInstance, Force SetBatchLines, -1 Content := "Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Duis ullamcorper neque eu sapien. Fusce scelerisque magna nec enim." Content2 := "Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Duis ullamcorper neque eu sapien. Fusc...
- 07 Jan 2022, 04:47
- Forum: Ask for Help (v1)
- Topic: GUI text auto width wrap? Topic is solved
- Replies: 14
- Views: 2601
Re: GUI text auto width wrap? Topic is solved
@joshatt I was playing around with this last night, perhaps it will help. It shows two approaches to get to the same outcome. I'll take a look at your new code later today. Example 1: #SingleInstance, Force MyText := "I'm still learning, and I begin to realize giving it a width is a better way, esp...
- 06 Jan 2022, 01:30
- Forum: Ask for Help (v1)
- Topic: GUI text auto width wrap? Topic is solved
- Replies: 14
- Views: 2601
Re: GUI text auto width wrap? Topic is solved
Forgive my ignorance here, but why would you do it that way instead of just setting the width of the text control the the same size of the edit control while allowing the text to Wrap on it's own? Hi, sorry to confuse you :crazy:, its the same but I just delivered what he asked. gui,2: add, edit, x...
- 05 Jan 2022, 21:51
- Forum: Ask for Help (v1)
- Topic: RETURN after gui show? Topic is solved
- Replies: 3
- Views: 619
Re: RETURN after gui show? Topic is solved
Thanks for your help.gregster wrote: ↑05 Jan 2022, 21:46Gui, show might change the size of the GUI (it surely will if the window is shown for the first time):https://www.autohotkey.com/docs/commands/Gui.htm#Show wrote:If there is no previous size, the window will be auto-sized according to the size and positions of the controls it contains.
- 05 Jan 2022, 21:40
- Forum: Ask for Help (v1)
- Topic: RETURN after gui show? Topic is solved
- Replies: 3
- Views: 619
RETURN after gui show? Topic is solved
Code: Select all
Gui, Add, Edit, w250 h100
gui, show
Return
GuiSize:
MsgBox,good
there's a RETURN, why I could see the message box?
- 05 Jan 2022, 20:39
- Forum: Scripts and Functions (v1)
- Topic: simplest regex multi files renamer
- Replies: 4
- Views: 958
Re: simplest regex multi files renamer
tiny improvement with drag&drop zone: SetWorkingDir %A_ScriptDir% #singleinstance,force IniRead, ReadStuff, regex multi files renamer.ini, Section, Key StringReplace, ReadStuffmulti,ReadStuff,§,`n,all gui, new,,Regex Multi Files Renamer ;gui, +alwaysontop gui, Font,s14 gui, add,text, w500 +center , ...
- 05 Jan 2022, 19:42
- Forum: Ask for Help (v1)
- Topic: GUI text auto width wrap? Topic is solved
- Replies: 14
- Views: 2601
Re: GUI text auto width wrap? Topic is solved
Here is an example of where you do need to use the + sign, but it is only needed for the first option. Any option that follows it doesn't explicitly need it. ...... Thanks a lot, you're so helpful. There are loads of cases where you would need to do something similar to the whole GuiControlGet, Var...
- 05 Jan 2022, 19:32
- Forum: Scripts and Functions (v1)
- Topic: simplest regex multi files renamer
- Replies: 4
- Views: 958
Re: simplest regex multi files renamer
Is it possible to make a GUI button unpressable but not greyed-out? Yes. Here is an example of how you can do it. Gui, Add, CheckBox, vCB , Allow the button to work. Gui, Add, Button, w300 h50 gTest, Press Me! Gui, Show, return Test: Gui, Submit, NoHide ;This just gets the state of the checkbox. if...
- 05 Jan 2022, 18:21
- Forum: Ask for Help (v1)
- Topic: GUI text auto width wrap? Topic is solved
- Replies: 14
- Views: 2601
Re: GUI text auto width wrap? Topic is solved
Did you try leaving Wrap on? i.e Don't use -Wrap ...... Thank you, sir. I did not understand minus sign well - sometimes I'm confused, like "+center", I tested and found no difference from without plus sign. would you do it that way instead of just setting the width of the text control the the same...
- 05 Jan 2022, 17:59
- Forum: Scripts and Functions (v1)
- Topic: simplest regex multi files renamer
- Replies: 4
- Views: 958
Re: simplest regex multi files renamer
another version allowing user test his own regex rule and make a rules pool. SetWorkingDir %A_ScriptDir% #singleinstance,force IniRead, ReadStuff, regex multi files renamer.ini, Section, Key StringReplace, ReadStuffmulti,ReadStuff,§,`n,all gui, new,,Regex Multi Files Renamer gui, Font,s14 gui, add,t...
- 05 Jan 2022, 06:32
- Forum: Ask for Help (v1)
- Topic: GUI text auto width wrap? Topic is solved
- Replies: 14
- Views: 2601
Re: GUI text auto width wrap? Topic is solved
I don't know if I understand it well gui,2: add,edit,w300 gui,2: add,text,-wrap vInfotext ,if you pushed something wrong,manually delete it in ini file,notice they're in pair. gui,2: show Loop 3 ; example repeated three times { GuiControlGet, Size, 2:Pos, Edit1 SizeW += 10 * A_Index ; a little brea...
- 05 Jan 2022, 01:06
- Forum: Ask for Help (v1)
- Topic: GUI text auto width wrap? Topic is solved
- Replies: 14
- Views: 2601
GUI text auto width wrap? Topic is solved
With the following experiment, I want the text auto-wrap according to the window/edit, but it fails. Could anybody please give me a hand? gui,2: add,edit,w300 gui,2: add,text,-wrap vInfotext,if you pushed something wrong,manually delete it in ini file,notice they're in pair. gui,2: show GuiControlGe...