Search found 231 matches

by RickC
Yesterday, 02:38
Forum: Ask For Help
Topic: possible to store variables outside AHK? Topic is solved
Replies: 3
Views: 131

Re: possible to store variables outside AHK? Topic is solved

Or use RegWrite to create a custom registry key/value pair then RegRead to read the value back in again.

Hope this helps...
by RickC
22 Mar 2020, 18:41
Forum: Ask For Help
Topic: How to run cmd.exe commands in the background?
Replies: 4
Views: 175

Re: How to run cmd.exe commands in the background?

'garry' = 'Guru'

Helped me so many times.

Thank you, Garry, so much for your continued support here. Just saying...
by RickC
22 Mar 2020, 16:09
Forum: Ask For Help
Topic: How to run cmd.exe commands in the background?
Replies: 4
Views: 175

Re: How to run cmd.exe commands in the background?

For example:

Code: Select all

TempFile=%A_Temp%\ip_temp.txt ; Define temp file
RunWait %comspec% /c "ipconfig > %TempFile%",,Hide ; Redirect info into temp file whilst hiding Command output
by RickC
22 Mar 2020, 08:59
Forum: Ask For Help
Topic: Send {tab}
Replies: 4
Views: 257

Re: Send {tab}

Perhaps just use: RunWait devmgmt.msc What do you mean 'refresh' the network adapters? If you mean 'disable then re-enable' then there's no need to use Device Mangler . Just use the PowerShell Restart-NetAdapter cmdlet wrapped in AHK instead. For example: psScript = ( Restart-NetAdapter -Name "<name...
by RickC
18 Feb 2020, 06:29
Forum: Ask For Help
Topic: Create a hotkey that records keystrokes Topic is solved
Replies: 6
Views: 437

Re: Create a hotkey that records keystrokes Topic is solved

@gregster

Many thanks for the explanation. They are all good points... so fair enough. :)
by RickC
18 Feb 2020, 05:30
Forum: Ask For Help
Topic: Simple macro help
Replies: 1
Views: 172

Re: Simple macro help

Read up on the following in the documentation ( https://www.autohotkey.com/docs/AutoHotkey.htm ): Hotkeys (e.g. for using {Left}, i.e. the Left arrow key) Send (to send a keystroke... and hold the key down or release it) Click (e.g. Click, up, right to release the left mouse button) Sleep (to implem...
by RickC
18 Feb 2020, 05:01
Forum: Ask For Help
Topic: Create a hotkey that records keystrokes Topic is solved
Replies: 6
Views: 437

Re: Create a hotkey that records keystrokes Topic is solved

Whilst I'm sure that your intentions are benign, please note that you are asking for help for what is essentially a keylogger, contrary to the forum's rules.

Please see rule 3 in the second section - 'Malicious'. https://www.autohotkey.com/forumrules/
by RickC
18 Feb 2020, 04:51
Forum: Ask For Help
Topic: Send {tab}
Replies: 4
Views: 257

Re: Send {tab}

Why are you using the Services MMC? It means you're likely to be affected by timing events and may have to use Sleep as well. Instead, why not use the Service Control command (sc)? Try something like the following (where <servicename> is the service you want to stop) and avoid all the Send {Tab} iss...
by RickC
11 Feb 2020, 06:44
Forum: Ask For Help
Topic: How to add a file version to a compiled exe ??
Replies: 4
Views: 232

Re: How to add a file version to a compiled exe ??

I still use Compile_AHK II (see https://www.autohotkey.com/boards/viewtopic.php?t=16061 ). Once installed, just right -click on an AHK file and choose the 'Compile with Options' entry in the right-click context menu. Easy! It's long in the tooth but continues to do a fine job adding version info (an...
by RickC
18 Jan 2020, 07:36
Forum: Gaming
Topic: requesting a code for game
Replies: 3
Views: 398

Re: requesting a code for game

Interesting username. I'm sure that you'll get lots of help offered.
by RickC
07 Jul 2019, 20:02
Forum: Ask For Help
Topic: animated gif or video splash screen?
Replies: 4
Views: 565

Re: animated gif or video splash screen?

Download was-not-me.gif shown below: http://i64.tinypic.com/2ylus14.jpg ... or use your own. var = %A_ScriptDir%\was-not-me.gif ;location of gif you want to show Gui, 3:-border -Caption ; borderless Gui, 3: Add, ActiveX, x0 y0 w200 h200 vWB, shell explorer ; set width (w) and height (h) values to th...
by RickC
25 Jun 2019, 07:51
Forum: Ask For Help
Topic: RegWrite - Safety issues
Replies: 4
Views: 508

Re: RegWrite - Safety issues

Still safe? Wanted to disguse it, as it being used to authenticate the use of my script. Yes, it's still safe... although if you want to disguise data from being human-readable, i.e. to obscure from casual observation, then consider the use of simple encryption in your code and read/writing the enc...
by RickC
24 Jun 2019, 11:27
Forum: Ask For Help
Topic: Execute script from URL Topic is solved
Replies: 5
Views: 720

Re: Execute script from URL Topic is solved

Have you looked into using Google Drive/OneDrive/Dropbox etc. and using a public folder to which your friends have the URL? I use this method for a shared journal. I update the local copy of the journal and the Google Drive app takes care of the syncing. Rather than execute from the URL, perhaps cre...
by RickC
24 Jun 2019, 11:03
Forum: Ask For Help
Topic: RegWrite - Safety issues
Replies: 4
Views: 508

Re: RegWrite - Safety issues

Say I would like to store a string in a folder in the registry such as the software folder, is it safe to do so? Is there a change the registry may become corrupted without interfering with windows files etc? Are there any unique identification numbers which can be read from the registry using the ...
by RickC
09 Mar 2019, 18:39
Forum: Ask For Help
Topic: Auto-start script in non-elevated mode?
Replies: 2
Views: 452

Re: Auto-start script in non-elevated mode?

You could call psexec (https://docs.microsoft.com/en-gb/sysinternals/downloads/psexec), for example:

Code: Select all

Run, psexec.exe -l -d non-admin.exe
or use Task Scheduler and specify a non-privileged user account to use.
by RickC
09 Mar 2019, 14:13
Forum: Ask For Help
Topic: Turn Windows Night Light on and off
Replies: 5
Views: 1242

Re: Turn Windows Night Light on and off

The ON/OFF toggle state of the Night Light (in Win 10 Home 1803 ) appears to be controlled by a binary value in the registry. Have a look at the 'Data' entry under the following registry key: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\CloudStore\Store\Cache\DefaultAccount\$$windows....
by RickC
07 Mar 2019, 13:24
Forum: Ask For Help
Topic: Script to detect if disk is SSD or HDD Topic is solved
Replies: 11
Views: 2632

Re: Script to detect if disk is SSD or HDD Topic is solved

jNizM script for detecting SSD MSFT_PhysicalDisk() { static DiskType := [] static MediaType := { 0: "Unspecified", 3: "HDD", 4: "SDD", 5: "SCM" } try { for objItem in ComObjGet("winmgmts:\root\Microsoft\Windows\Storage").ExecQuery("SELECT * FROM MSFT_PhysicalDisk") { DiskType[A_Index, "FriendlyName...
by RickC
06 Mar 2019, 17:04
Forum: Ask For Help
Topic: Script to detect if disk is SSD or HDD Topic is solved
Replies: 11
Views: 2632

Re: Script to detect if disk is SSD or HDD Topic is solved

Just be a bit careful of WMI queries, commandline (WMIC) or not. I have a Win 7 PC with both an SSD (C:) and an HDD (D:). A WMI query on the Win32_LogicalDisk class in the default root\CIMV2 namespace returns a DriveType of 3 for both drives. According to Microsoft documentation a DriveType 3 just ...

Go to advanced search