Search found 302 matches
- 22 May 2024, 07:11
- Forum: Ask for Help (v1)
- Topic: Expression := or Round() not working as expected Topic is solved
- Replies: 5
- Views: 635
Re: Expression := or Round() not working as expected Topic is solved
I have a laptop with 8MB RAM, running AutoHotkey 1.1 (1.1.37.01) in Windows 10 (1809). That, my friend, is impossible. Minimum system requirements for Window 10 are 1GB for 32 bit and 2GB for 64 bit. Russ Oops... thanks for picking up the typo. I'll leave it there for the amusement of others. Must ...
- 22 May 2024, 07:07
- Forum: Ask for Help (v1)
- Topic: Expression := or Round() not working as expected Topic is solved
- Replies: 5
- Views: 635
Re: Expression := or Round() not working as expected Topic is solved
So, I made two mistakes... 1) my 'rounding' maths operator and 2) not realising the result copied to the clipboard held both a return and a newline character in addition to the number.
Thank you, @CoffeeChaton, for your help. I was going round and round in circles.
Thank you, @CoffeeChaton, for your help. I was going round and round in circles.
- 22 May 2024, 05:50
- Forum: Ask for Help (v1)
- Topic: Expression := or Round() not working as expected Topic is solved
- Replies: 5
- Views: 635
Expression := or Round() not working as expected Topic is solved
#SingleInstance, Force #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. SendMode Input ; Recommended for new scripts due to its superior speed and reliability. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. ; Function to get total physi...
- 19 Jan 2024, 09:18
- Forum: Ask for Help (v1)
- Topic: ahk how to ping another computer in same network Topic is solved
- Replies: 5
- Views: 378
Re: ahk how to ping another computer in same network Topic is solved
Many thanks, @gregster, for the additional info.
- 19 Jan 2024, 09:12
- Forum: Ask for Help (v1)
- Topic: FormatTime not working as expected Topic is solved
- Replies: 2
- Views: 168
Re: FormatTime not working as expected Topic is solved
ROFL... such an elementary mistake. Thanks, @JoeWinograd , for the advice.
- 18 Jan 2024, 22:17
- Forum: Ask for Help (v1)
- Topic: ahk how to ping another computer in same network Topic is solved
- Replies: 5
- Views: 378
Re: ahk how to ping another computer in same network Topic is solved
The code worked for me when I matched the variable in line 1 to the MsgBox output variable in line 2... and I didn't have to 'quote' the IP address.
- 18 Jan 2024, 22:00
- Forum: Ask for Help (v1)
- Topic: FormatTime not working as expected Topic is solved
- Replies: 2
- Views: 168
FormatTime not working as expected Topic is solved
FormatTime, TimeString,, dd-MMM-yyyy ^Insert:: SendInput, %TimeString% Why does this snippet (the first 2 lines of a much longer 'helper' script) not insert the current date, only the last date that the device was rebooted? I've gone through the v1 documentation but cannot see what I am missing for...
- 03 Jan 2023, 09:52
- Forum: Ask for Help (v1)
- Topic: Please help me out with good learning resources for autohotkey
- Replies: 6
- Views: 658
Re: Please help me out with good learning resources for autohotkey
I would also check out Jack's AutoHotkey Blog - https://jacks-autohotkey-blog.com/ IMO he spends a lot of time explaining code and concepts with multiple examples. I even bought his books... all of them. :) Sadly he's stopped adding new blog articles since about June 2021; but there's a huge amount ...
- 20 Dec 2022, 10:05
- Forum: Ask for Help (v1)
- Topic: Get currently connected network name
- Replies: 22
- Views: 7104
Re: Get currently connected network name
Code: Select all
Run, powershell -NoExit -Command (get-netconnectionprofile).name
Code: Select all
Run, powershell -NoExit -Command (gip).NetProfile.Name
- 30 Nov 2022, 09:01
- Forum: Forum Issues
- Topic: Recent Forum Issues - August 2021
- Replies: 239
- Views: 297525
Re: Recent Forum Issues - August 2021
Considering this thread's post title and how - more than a year later - it's mostly off-topic... isn't it time to retire it gracefully?
- 29 Oct 2022, 06:01
- Forum: Ask for Help (v1)
- Topic: usb control
- Replies: 3
- Views: 429
Re: usb control
Use NIr Sofer's small, free, portable USBDeview to script via commandline. You can use device name, description, VID\PID or serial no. to enable/disable USB devices. See https://www.nirsoft.net/utils/usb_devices_view.html for more info and read the commandline examples. For example: USBDeview.exe /d...
- 16 Aug 2022, 08:31
- Forum: Ask for Help (v1)
- Topic: Send (and alternatives) results in 'Send' itself being included Topic is solved
- Replies: 3
- Views: 451
Re: Send (and alternatives) results in 'Send' itself being included Topic is solved
Thanks, BoBo , for the explanation. Silly of me - you're right of course. I just wasn't thinking. I changed the line to the following and it now works perfectly. :*:---::_______________________________________________________________ ; Send 63 consecutive underscore characters to form horizontal lin...
- 16 Aug 2022, 06:39
- Forum: Ask for Help (v1)
- Topic: Send (and alternatives) results in 'Send' itself being included Topic is solved
- Replies: 3
- Views: 451
Send (and alternatives) results in 'Send' itself being included Topic is solved
I used to use the following to create a horizontal line in a forum post: :*:---::[hr][/hr] ; Send HTML tags for horizontal line by presssing 3 hyphens However, whilst effective, the horizontal line was very faint. I found that using consecutive underline characters created a thicker horizontal line....
- 14 Jul 2022, 21:59
- Forum: Ask for Help (v1)
- Topic: Two questions about creating text files Topic is solved
- Replies: 2
- Views: 519
Re: Two questions about creating text files Topic is solved
I haven't tested either yet but your replies to both of my questions make perfect sense. That's what I meant by 'brainfog'.
EDIT: Worked immediately... after hours chasing my own tail. So easy when it's pointed out to you... Thank you @boiler !
EDIT: Worked immediately... after hours chasing my own tail. So easy when it's pointed out to you... Thank you @boiler !
- 14 Jul 2022, 21:41
- Forum: Ask for Help (v1)
- Topic: Two questions about creating text files Topic is solved
- Replies: 2
- Views: 519
Two questions about creating text files Topic is solved
Q1. Is it better to a) compose/build text using the Windows clipboard before dumping to a text file or b) is the use of FileAppend a better/preferred method? Pros/Cons? Q2. How to use a 'newline' command with clipboard contents? This works perfectly: clipboard := "my text" ; Give the clipboard entir...
- 11 Jun 2022, 10:04
- Forum: Ask for Help (v1)
- Topic: How to block Microsoft Edge from opening - except when I click its EXE or LNK shortcut? Topic is solved
- Replies: 5
- Views: 1009
Re: How to block Microsoft Edge from opening - except when I click its EXE or LNK shortcut? Topic is solved
By default Microsoft Edge runs some automatic actions to give the impression that it loads quickly. These automatic actions pre-load Edge processes and prepare the Start tab in the background, hidden... so you need to stop them being called. Save the following as a REG file: Windows Registry Editor ...
- 12 May 2022, 04:41
- Forum: Ask for Help (v1)
- Topic: powershell gwmi equivalent or syntax.
- Replies: 7
- Views: 872
Re: powershell gwmi equivalent or syntax.
You can still use PowerShell commands or scripts wrapped in AHK . For example: Run, powershell -NoExit -Command (Get-CimInstance -class Win32_Battery).BatteryStatus https://i.postimg.cc/j28yVbnt/run-powershell-command-wrapped-in-ahk.png A result of 2 (as in the screenshot) shows the device is runnin...
- 12 May 2022, 03:51
- Forum: Ask for Help (v1)
- Topic: French keyboard letter ä
- Replies: 5
- Views: 595
Re: French keyboard letter ä
Almost the same as garry 's code but I prefer to use a hotstring replacement rather than a hotkey: :*:aaa::ä All this means is "wait until 3 consecutive a letters are typed (i.e. aaa ) then immediately overtype them with the diacritic letter ä ". Choose another hotstring for text replacement if you ...
- 11 May 2022, 22:17
- Forum: Ask for Help (v1)
- Topic: How to execute a Powershell (.ps1) file in Autohotkey? Topic is solved
- Replies: 4
- Views: 6082
Re: How to execute a Powershell (.ps1) file in Autohotkey? Topic is solved
Run, powershell.exe C:\Users\user1\PoweShell\Duplicate Selected Files.ps1 Running the above example just opens the blue powershell CMD window and it quickly flashes, the script does not run. Running the below example opens the blue powershell CMD window and keeps it open, the script does not run. R...
- 04 May 2022, 21:00
- Forum: Ask for Help (v1)
- Topic: How to Get Number of Pages of Open Foxit PDF Document Topic is solved
- Replies: 18
- Views: 3503
Re: How to Get Number of Pages of Open Foxit PDF Document Topic is solved
Excellent solution, @malcev