Search found 12 matches
- 06 May 2024, 11:55
- Forum: Ask for Help (v2)
- Topic: Script Help: Delete Last File on F9 Press
- Replies: 8
- Views: 562
Re: Script Help: Delete Last File on F9 Press
#Requires AutoHotkey v2.0 F9:: { Static shotsDir := StrReplace(A_Desktop, 'Desktop', 'Pictures\Screenshots') If FileExist(newest := getNewestFile(shotsDir)) { FileRecycle newest MsgBox 'Deleted:`n`n' newest, 'Status', 'Iconi' } Else MsgBox 'Nothing was deleted.', 'Warning', 'Icon!' } getNewestFile(...
- 06 May 2024, 11:06
- Forum: Ask for Help (v2)
- Topic: Script Help: Delete Last File on F9 Press
- Replies: 8
- Views: 562
- 06 May 2024, 09:50
- Forum: Ask for Help (v2)
- Topic: Script Help: Delete Last File on F9 Press
- Replies: 8
- Views: 562
Re: Script Help: Delete Last File on F9 Press
For example, I clicked "win + printscreen" to take a screenshot of the screen:
printscreen01.png
printscreen02.png
printscreen03.png
And then I press {F9} so that I can find the last file to delete, which would be printscreen03.png
Got it?
- 06 May 2024, 08:07
- Forum: Ask for Help (v2)
- Topic: Script Help: Delete Last File on F9 Press
- Replies: 8
- Views: 562
Script Help: Delete Last File on F9 Press
Could someone please help me with a script to delete the last file in the directory
C:\Users\crowe\OneDrive\Pictures\Screenshots when I press {F9}?
Thank you.
C:\Users\crowe\OneDrive\Pictures\Screenshots when I press {F9}?
Thank you.
- 02 May 2024, 09:39
- Forum: Gaming
- Topic: Chat Input and Command Execution
- Replies: 1
- Views: 311
- 01 May 2024, 10:25
- Forum: Gaming
- Topic: Chat Input and Command Execution
- Replies: 1
- Views: 311
Chat Input and Command Execution
Hey everyone, I'm working on an AutoHotkey script for SAMP (San Andreas Multiplayer), and I'm in need of some assistance. Here's what I'm trying to accomplish: When I press the {5} key , I want the script to open the chat and wait until I press {Enter} . Then, I'll type any number, let's say '11' , ...
- 01 May 2024, 10:04
- Forum: Ask for Help (v2)
- Topic: base number of keypresses on variable setting Topic is solved
- Replies: 2
- Views: 244
Re: base number of keypresses on variable setting Topic is solved
Thank you so much, mikeyww!mikeyww wrote: ↑01 May 2024, 07:23Code: Select all
#Requires AutoHotkey v2.0 n := 5 6::Send '{Down ' n '}'
You're the real MVP for sorting out all these queries! Respect++!
Crowex
- 01 May 2024, 06:47
- Forum: Ask for Help (v2)
- Topic: base number of keypresses on variable setting Topic is solved
- Replies: 2
- Views: 244
base number of keypresses on variable setting Topic is solved
Good morning, everyone. How do I script so that when I set a variable with the value of 5, if I press a {Key 6} , it automatically sends {Down} * 5 times? ( I am sorry, i don't know how to use "kbd" on forum. ) How can I do this? Thanks :dance: [Mod edit: Added a subject line since none was provided...
- 19 Apr 2024, 15:28
- Forum: Ask for Help (v1)
- Topic: Issue with AHK Script - Numpad1 and NumpadDel Conflict
- Replies: 9
- Views: 438
Re: Issue with AHK Script - Numpad1 and NumpadDel Conflict
Hey coders,
I found the solution:
With
Thanks for you all.
I found the solution:
Code: Select all
if GetKeyState("NumpadDot", "P")
With
resolved everything what I need this.GetKeyState
Thanks for you all.
- 18 Apr 2024, 11:42
- Forum: Gaming
- Topic: Script does not working for reset
- Replies: 3
- Views: 151
Re: Script does not working for reset
You haven't implemented any logic that would have it step through the notices. No where are you assigning true to either first_notice or second_notice , so your first two if conditions will always be false. It would seem easier, btw, to just have one variable like notice_level that you would just a...
- 18 Apr 2024, 10:10
- Forum: Gaming
- Topic: Script does not working for reset
- Replies: 3
- Views: 151
Script does not working for reset
I'm having trouble getting the script to reset after 3x NumpadDot + Numpad1 . Can someone help me to solve this problem? #Requires AutoHotkey v2.0 #SingleInstance force global first_notice := false global second_notice := false first_notice_msg := "/m [P.R.F] PLEASE, WE REQUEST YOUR COLLABORATION FO...
- 15 Apr 2024, 07:11
- Forum: Ask for Help (v1)
- Topic: Issue with AHK Script - Numpad1 and NumpadDel Conflict
- Replies: 9
- Views: 438
Issue with AHK Script - Numpad1 and NumpadDel Conflict
Hello everyone, I've encountered an issue with my AHK script that I hope someone can help me troubleshoot. I've set up multiple hotkeys using numpad[1-9] and numpadDel to execute various actions simultaneously. However, I've noticed a bug where sometimes the script behaves unexpectedly. For example,...