Search found 135 matches

by lblb
29 Apr 2020, 06:31
Forum: Ask For Help
Topic: Shortcut for aligning shapes in PowerPoint
Replies: 6
Views: 308

Re: Shortcut for aligning shapes in PowerPoint

Using the COM interface (https://docs.microsoft.com/en-us/office/vba/api/powerpoint.shaperange.align): ^!right:: ppt := ComObjActive("PowerPoint.Application") ppt.ActiveWindow.Selection.ShapeRange.Align(2, 0) Return ^!left:: ppt := ComObjActive("PowerPoint.Application") ppt.ActiveWindow.Selection.Sh...
by lblb
20 Apr 2020, 14:45
Forum: Ask For Help
Topic: Get/Send values between AHK-programs - possible?
Replies: 10
Views: 459

Re: Get/Send values between AHK-programs - possible?

Here is a simple strategy from the great dmg that I have used in several of my scripts: https://autohotkey.com/board/topic/18361-anyway-to-pass-params-to-script-while-running/page-2#entry534166 As they explained: "It uses a hidden GUI window with G-Labels and the ControlSetText command to send infor...
by lblb
17 Apr 2020, 16:46
Forum: Ask For Help
Topic: Right click on GUI button --> Action
Replies: 9
Views: 751

Re: Right click on GUI button --> Action

I think you could still do it more simply using the built-in GuiContextMenu which stores the control's name when you right-click on the button (and then you can use if statements). This is basically a simplified version of garry's code: #SingleInstance, Force SetBatchLines, -1 Gui,2: Add, Button, x1...
by lblb
05 Apr 2020, 04:56
Forum: Ask For Help
Topic: Moveable Gui with NoActivate Topic is solved
Replies: 6
Views: 514

Re: Moveable Gui with NoActivate Topic is solved

Cool, I'm glad it works for what you need. I put that tester together a long time ago and actually didn't really look at it before posting it here but there may be some extra stuff that is not necessary in what I posted. Sorry, I don't have time to check, this end of the world thing is keeping me bu...
by lblb
04 Apr 2020, 20:21
Forum: Ask For Help
Topic: Moveable Gui with NoActivate Topic is solved
Replies: 6
Views: 514

Re: Moveable Gui with NoActivate Topic is solved

Does this work for what you need, without the use of a toggle? I haven't optimized it, so when you launch it just activate any other window, and then the Gui should be movable without being activated, #SingleInstance, force SetBatchLines -1 Gui, Main: Margin, 0, 0 Gui, Main: +LastFound -Resize +Hwnd...
by lblb
04 Apr 2020, 20:02
Forum: Ask For Help
Topic: [Q] Trying to find a script that lowers laptop brightness on battery - can anyone help?
Replies: 16
Views: 1408

Re: [Q] Trying to find a script that lowers laptop brightness on battery - can anyone help?

Does something like this work for you? (It might stop working if you later change powerplan or change the brightness manually.) ;based on code by qwerty12: ;https://autohotkey.com/boards/viewtopic.php?f=6&t=26921 #Persistent ;note: AC is the brightness when the laptop is plugged in vBrightnessAC = 8...
by lblb
08 Jul 2019, 02:05
Forum: Ask For Help
Topic: screen buttons to launch AHK scripts?
Replies: 5
Views: 816

Re: screen buttons to launch AHK scripts?

A "toolbar" like the taskbar that takes its own reserved space and pushes other windows aside is called an appbar. So all you would need to do is to create an AHK Gui with buttons to launch your scripts, and transform that Gui into an appbar. Just search for "appbar" in this forum and you'll find a ...
by lblb
06 Jun 2019, 05:03
Forum: Ask For Help
Topic: Show current brightness percentage Topic is solved
Replies: 6
Views: 968

Re: Show current brightness percentage Topic is solved

How about the following? Press q to see brightness level for plugged and unplugged. ;based on code by qwerty12: ;Set laptop brightness & show Win 10's native OSD - AutoHotkey Community ;https://autohotkey.com/boards/viewtopic.php?f=6&t=26921 q:: ;get AC/DC brightness w:: ;set AC brightness e:: ;set ...
by lblb
21 Mar 2019, 01:25
Forum: Scripts and Functions
Topic: Function: IniRead()
Replies: 22
Views: 5772

Re: Function: IniRead()

Reminds me of the conceptually similar globalsFromIni() from the old forum that creates global variables:

https://autohotkey.com/board/topic/25515-globalsfromini-creates-globals-from-an-ini-file/
by lblb
07 Nov 2018, 01:11
Forum: Ask For Help
Topic: Detect screen brightness changes in Windows 10 Topic is solved
Replies: 4
Views: 1712

Re: Detect screen brightness changes in Windows 10 Topic is solved

Wow TLM! This is so much better than anything that I could've come up with! Apart from exploring the traditional WMI resources here and on the old forum, I never really dug into WMI. But you might just have pointed me to my next learning adventure! Your code does exactly what I wanted. Perfect, than...
by lblb
06 Nov 2018, 04:52
Forum: Ask For Help
Topic: Detect screen brightness changes in Windows 10 Topic is solved
Replies: 4
Views: 1712

Detect screen brightness changes in Windows 10 Topic is solved

There is a variety of scripts and strategies that can be used to change the brightness on a laptop. For example, the following (which include some repeated codes) all work on my Windows 10 laptop: https://autohotkey.com/boards/viewtopic.php?t=36170 https://autohotkey.com/boards/viewtopic.php?t=26921...
by lblb
05 Jan 2018, 19:19
Forum: Ask For Help
Topic: Using COM to select the "Draw a textbox" tool in PowerPoint
Replies: 2
Views: 871

Re: Using COM to select the "Draw a textbox" tool in PowerPoint

@TheDewd First, thanks a lot. I somehow didn't know about the ExecuteMso method but it has now proven to be very useful for my needs. Second, unfortunately, in my copy of Office Professional Plus 2016 the code you provided does not work as I thought it would (unfortunately I don't have other version...
by lblb
02 Jan 2018, 12:57
Forum: Ask For Help
Topic: Using COM to select the "Draw a textbox" tool in PowerPoint
Replies: 2
Views: 871

Using COM to select the "Draw a textbox" tool in PowerPoint

Hi all, How can COM be used to select the "Draw a textbox" tool in PowerPoint? This is the textbox-shaped tool that is present on both the Home and Insert tabs on the PowerPoint ribbon. When you click it, the cursor changes and the next time you left-click on a slide in PowerPoint it will insert a t...
by lblb
21 Sep 2017, 18:08
Forum: Ask For Help
Topic: display a number in notification/taskbar/clock area
Replies: 7
Views: 2225

Re: display a number in notification/taskbar/clock area

One way may be to create a custom toolbar in Windows, then dock an AHK Gui to it. The example here works well on my Win 7 system: https://autohotkey.com/board/topic/8972-attach-a-script-to-a-custom-toolbar-on-windows-taskbar/ As another more limited option, you can use gdip to update numbers on a sy...
by lblb
05 May 2017, 12:14
Forum: Ask For Help
Topic: Script to Rotate Screen/Change Orientation in Windows 10
Replies: 2
Views: 2182

Re: Script to Rotate Screen/Change Orientation in Windows 10

So which old scripts have you tried that don't work for you?
by lblb
02 May 2017, 11:17
Forum: Ask For Help
Topic: How to get tooltip for a menu
Replies: 16
Views: 3777

Re: How to get tooltip for a menu

Thanks for the code just me, this is great! In a previous life using AHK Basic, to add tooltips to menus I used the MMenu module from the great Majkinetor, which replaces standard menus and allows all kinds of customizations: https://autohotkey.com/board/topic/16248-module-mmenu-10-b1/ It was useful...
by lblb
26 Apr 2017, 01:17
Forum: Scripts and Functions
Topic: Dock - Attach a window to another
Replies: 26
Views: 10099

Re: Dock - Attach a window to another

Hi Soft,

Thanks for the quick reply, much appreciated. And thanks for the clarification about OnMessage. I look forward to future updates!
by lblb
24 Apr 2017, 15:06
Forum: Scripts and Functions
Topic: Dock - Attach a window to another
Replies: 26
Views: 10099

Re: Dock - Attach a window to another

Hi Soft, This is a nice update to the old code. Using the code in the example, if I want to dock multiple windows to the parent window, do I need to define for each docked window one new InitDockX, one new FuncObjX, and call OnMessage for each new FuncObjX? Also, like was done by Majkinetor, would i...
by lblb
21 Dec 2016, 23:29
Forum: Scripts and Functions
Topic: AcecoolAHK_Framework - Drag&Drop files or exes& my framework loads them for you without need to #include / run manually!
Replies: 3
Views: 1554

Re: AcecoolAHK_Framework - Drag&Drop files or exes& my framework loads them for you without need to #include / run manua

Hi Acecool,

You say "Pretty straight forward" but reading your description here or on Github, I still don't know what this is or how it can be used. Could you maybe try to clarify?
by lblb
14 Dec 2016, 05:43
Forum: Ask For Help
Topic: Gradual GUI size change
Replies: 11
Views: 2510

Re: Gradual GUI size change

Hi I also don't know jQuery... Maybe one of these does what you want? Gui, Margin, 0,0 Gui +LastFound GUI_ID:=WinExist() Gui, -Caption +AlwaysOnTop +Border Gui, Add, Button,x200 y200 , Hello Gui,Show, AutoSize Hide, Animated Splash Window - Demo DllCall("AnimateWindow","UInt",GUI_ID,"Int",1000,"UInt...

Go to advanced search