Search found 74 matches

by gmoises
13 Mar 2023, 09:21
Forum: Ask for Help (v1)
Topic: How to autosize the edit box? Topic is solved
Replies: 11
Views: 788

Re: How to autosize the edit box? Topic is solved

Code: Select all

#Requires AutoHotkey v1.1.36+

Gui, +Resize 
Gui, Add, Edit, x10 y10 w480 h180 +HWNDhwnd
Gui, Show, w500 h250
Return

GuiSize:
	ControlMove, , , , A_GuiWidth - 10, A_GuiHeight - 60, ahk_id %hwnd%
Return

GuiClose:
	ExitApp
by gmoises
18 Feb 2023, 14:46
Forum: Ask for Help (v1)
Topic: How to display two lines from one lines. Topic is solved
Replies: 6
Views: 636

Re: How to display two lines from one lines. Topic is solved

I have found some cases where a little delay is needed between statements try: !r:: Send, ^c Sleep, 50 str:= Trim(Clipboard) Clipboard:=RegExReplace(str, "([\p{L}\p{N} ,-]+[\p{P}])\s*([\p{L}\p{N} .。、;!?]+[\p{P}]\S*)", "${1}`n${2}") Sleep, 50 Send ^v Return Also there is: SetKeyDelay [, Delay, PressD...
by gmoises
18 Feb 2023, 14:13
Forum: Ask for Help (v1)
Topic: Cut off HDMI signal
Replies: 14
Views: 1040

Re: Cut off HDMI signal

There are ways to turn off a monitor using powercfg.exe windows - batch script to turn off monitor? - Stack Overflow https://stackoverflow.com/questions/48979552/batch-script-to-turn-off-monitor or using NirCND turn off / on a single monitor from command line on Windows https://www.nirsoft.net/artic...
by gmoises
18 Feb 2023, 12:42
Forum: Ask for Help (v1)
Topic: Application that does not accept AutoHotKey Mouse Clicks
Replies: 2
Views: 266

Re: Application that does not accept AutoHotKey Mouse Clicks

I suggest you to read carefully the Click command section in the documentation, there are some options and related commands that may solve your issue.
https://www.autohotkey.com/docs/v1/lib/Click.htm
by gmoises
18 Feb 2023, 12:00
Forum: Ask for Help (v1)
Topic: Is there a way to reproduce the previous order of keystrokes? (atleast )
Replies: 4
Views: 404

Re: Is there a way to reproduce the previous order of keystrokes? (atleast )

This is not elegant, but simple #Requires AutoHotkey v1.1 ; copy the previous 2 characters to Clipboard F2::Send +{Left 2}^c{Right} ; copy the previous 3 characters to Clipboard F3::Send +{Left 3}^c{Right} ; copy the previous 4 characters to Clipboard F4::Send +{Left 4}^c{Right} ; paste the clipboar...
by gmoises
18 Feb 2023, 11:48
Forum: Ask for Help (v1)
Topic: clicking objects on the screen
Replies: 4
Views: 370

Re: clicking objects on the screen

Find color on screen ...Topic is solved
viewtopic.php?style=17&t=109037
by gmoises
18 Feb 2023, 10:53
Forum: Ask for Help (v1)
Topic: Multiple AHK Script Directory On Different Dirctory Paths on Different Computers
Replies: 10
Views: 865

Re: Multiple AHK Script Directory On Different Dirctory Paths on Different Computers

I'm in a similar situation What I do is to create an Environment Variable in each computer, you can call it "Scripts" or something you will remember the variable contents is the Script's folder path You can use SETX in CMD console to create permanent system level variables SETX Variable Value /m Exa...
by gmoises
18 Feb 2023, 10:34
Forum: Pedir Ayuda
Topic: Duda para configurar tecla ñ y tildes en teclado ANSI
Replies: 5
Views: 1509

Re: Duda para configurar tecla ñ y tildes en teclado ANSI

en mi equipo trabaja bien este código

Code: Select all

!;::ñ
!+;::Ñ
Yo prefiero definir en Windows la distribución de teclado llamada "US International" que resuelve estos problemas de otra manera
image.png
image.png (333.34 KiB) Viewed 1475 times
by gmoises
10 Feb 2023, 11:00
Forum: Pedir Ayuda
Topic: Evitar que se envíe una tecla
Replies: 1
Views: 943

Re: Evitar que se envíe una tecla

Tal vez esto funcione

Code: Select all

#If !GetKeyState("Escape")
	{Up}::SendInput, ^{Media_Play_Pause}
	{Down}::SendInput, ^{Media_Stop}
#If
by gmoises
10 Feb 2023, 10:23
Forum: Ask for Help (v1)
Topic: Deploying AHK with Configuration Manager (corporate setting)
Replies: 6
Views: 803

Re: Deploying AHK with Configuration Manager (corporate setting)

The directory 'c:\ Program Files' is protected by Windows and requires UAC
but you can install in the directory 'C:\Users\YourUserName\AppData\Local'
by gmoises
10 Feb 2023, 09:40
Forum: Ask for Help (v1)
Topic: How to access virtual desktops directly instead of task bar menu and control windows left, right key?
Replies: 2
Views: 568

Re: How to access virtual desktops directly instead of task bar menu and control windows left, right key?

I have been using this code for many years ; https://www.computerhope.com/tips/tip224.htm ; https://autohotkey.com/boards/viewtopic.php?t=9224 ; This function examines the registry to build an accurate list of the current virtual desktops and which one we're currently on. ; Current desktop UUID appe...
by gmoises
09 Feb 2023, 13:04
Forum: Ask for Help (v1)
Topic: Any "Send" dsn't insert in app if it has symbols from different languages
Replies: 3
Views: 309

Re: Any "Send" dsn't insert in app if it has symbols from different languages

Assuming that you have installed AutoHotKey UNICODE version
you can send any string with a HotKey
for example in AutoHotKey v1.1.32:

Code: Select all

#Requires AutoHotkey v1.1.36+
F1::SendInput ÆÖ⬈⭖₷
in AutoHotKey v2

Code: Select all

#Requires AutoHotkey v2.0.2 64-bit
F1::SendInput "ÆÖ⬈⭖₷"
by gmoises
09 Feb 2023, 12:06
Forum: Ask for Help (v1)
Topic: A popup menu for Hotkey? Topic is solved
Replies: 4
Views: 656

Re: A popup menu for Hotkey? Topic is solved

For this example have your icons in a subfolder named 'Icons' with the same filename as the editor with extension '.png' dimensions 16x16 If spaces are used in the Editor's name, use quotes #Requires AutoHotkey v1.1.36+ ; the Hotkey Hotkey, F5, Show, On ; create the menu Menu: Editors := { Notepad: ...
by gmoises
09 Feb 2023, 10:08
Forum: Ask for Help (v1)
Topic: Unicode characters/keys as hotkey?
Replies: 2
Views: 368

Re: Unicode characters/keys as hotkey?

First get the UNICODE character in your Clipboard

Code: Select all

Clipboard := Chr(10081)
Then you can paste it into your code

Code: Select all

❡::whatever
by gmoises
08 Feb 2023, 20:01
Forum: Ask for Help (v1)
Topic: Pulling a Variable from HTML code
Replies: 3
Views: 327

Re: Pulling a Variable from HTML code

I guess the HTML code does not change much and you know the words before and after your variable data This is a code I use a lot: Sorry, the variable names are in Spanish Try { ; Get all the HTML in a variable Texto := GetHTTP(Página) ; find the text Desde := "Version " Hasta := " Download size" Ver...
by gmoises
08 Feb 2023, 19:02
Forum: Ask for Help (v1)
Topic: controlling hotstring replacement
Replies: 3
Views: 347

Re: controlling hotstring replacement

You can have many HotStrings

Code: Select all

#Requires AutoHotkey v1.1.36+
:::*?::
	sendInput % A_now
Return

::ddd::
	sendInput % A_now
Return
by gmoises
08 Feb 2023, 17:25
Forum: Scripts and Functions (v2)
Topic: Large(ish) Number Library - 2023/02/09 - v2.0.2
Replies: 7
Views: 1704

Re: Large(ish) Number Library - 2022/07/15 - beta.6

I tried Large(ish) Number Library - 2022/07/15 - beta.6 with AutoHotKey v2.0.2 I had to add the line _d_p := 0 just inside _div(): _div(x,y,&remain:=0) { ; x = dividend, y = divisor, remain = remainder _d_p := 0 The example script "Large Numbers Exampe.ahk" works but I could not get the divisions ri...
by gmoises
04 Feb 2023, 22:15
Forum: Ask for Help (v1)
Topic: Convert Numerical Currency Into Words
Replies: 15
Views: 1275

Re: Convert Numerical Currency Into Words

Corrected a bug in the get cents part Added Format option: If Format is "$" or If The first character in Num is "$" the return includes "Dollars" Num can include commas (,) N := "$123456789.045" MsgBox % SpellNumber(N) ExitApp SpellNumber(Num, Format := "") { Place := [" ", " Thousand ", " Million "...

Go to advanced search