Search found 53 matches
- 13 Apr 2024, 19:27
- Forum: Ask for Help (v1)
- Topic: Problem with quotes Topic is solved
- Replies: 11
- Views: 152
Re: Problem with quotes Topic is solved
I am seeing the following on line 10. Else Run % ff "https://www.google.com/search?q=" encodeDecodeURI(Clipboard) Are you seeing that line, too? Did you copy and paste the script so that you could run it without changing it and without adding anything to it? My script has 20 lines, not 198. Why not...
- 13 Apr 2024, 18:37
- Forum: Ask for Help (v1)
- Topic: Problem with quotes Topic is solved
- Replies: 11
- Views: 152
Re: Problem with quotes Topic is solved
But your error message shows a line that is not actually in my script. Are you spotting the difference? Instead of editing the script, why not test it the way it is? I copied the script from your answer above and tested it (again) just now. I agree that there is a difference between your script abo...
- 13 Apr 2024, 17:59
- Forum: Ask for Help (v1)
- Topic: Problem with quotes Topic is solved
- Replies: 11
- Views: 152
Re: Problem with quotes Topic is solved
I see. You were not running the script that I posted, but a different script. You can always just copy and paste if you wish. Syntax matters! I posted the error message from your first version of the script I tried just a couple minutes after you posted it, but the second one had the same problem :...
- 13 Apr 2024, 11:36
- Forum: Ask for Help (v1)
- Topic: Problem with quotes Topic is solved
- Replies: 11
- Views: 152
Re: Problem with quotes Topic is solved
I had this error message (the part in red is my translation to English) : https://imgur.com/0P9yUiz
- 13 Apr 2024, 10:21
- Forum: Ask for Help (v1)
- Topic: Letters and numbers
- Replies: 7
- Views: 106
Re: Letters and numbers
I hope my version is V1, I don't know where to check it. Hello dantot. To check your version of AHK, run a script, right-click on it in the task bar, and choose "Help", that will open AutoHotKey Help that has the version of your copy of AHK at the top of the page. You can also open AutoHotkey.chm i...
- 13 Apr 2024, 10:09
- Forum: Ask for Help (v1)
- Topic: Problem with quotes Topic is solved
- Replies: 11
- Views: 152
Re: Problem with quotes Topic is solved
Hello mikeyww and thank you for your quick answer. I updated my AHK version from 1.1.33.10 to 1.1.37.02 and removed the F3:: line and the ; before ^²:: , and your script seems to work, but I also had to remove the space before https in Else Run % ff " https://www.google.com/search?q=" encodeDecodeUR...
- 13 Apr 2024, 08:25
- Forum: Ask for Help (v1)
- Topic: Script to shut down PC after 30 minutes idle triggered at startup Topic is solved
- Replies: 3
- Views: 1019
Re: Script to shut down PC after 30 minutes idle triggered at startup Topic is solved
Sorry for the (very) late reply.
I solved the problem by adding MouseMove 940, 560 at the beginning.
I solved the problem by adding MouseMove 940, 560 at the beginning.
- 13 Apr 2024, 08:20
- Forum: Ask for Help (v1)
- Topic: Problem with quotes Topic is solved
- Replies: 11
- Views: 152
Problem with quotes Topic is solved
Hello I have a piece of code I found quite a long time ago (unfortunately, I cannot remember where) that allows me to select some text and search for it on Google in Firefox using a hotkey : ^²:: Send, ^c Sleep 50 parameter = C:\Program Files\Mozilla Firefox\firefox.exe https://www.google.com/search...
- 17 Nov 2022, 15:28
- Forum: Ask for Help (v1)
- Topic: Format the wikicode of infoboxes… Topic is solved
- Replies: 7
- Views: 651
Re: Format the wikicode of infoboxes… Topic is solved
Gee, I'm ashamed of myself... :oops :
Thank you very much, it works very well!
- 17 Nov 2022, 09:30
- Forum: Ask for Help (v1)
- Topic: Format the wikicode of infoboxes… Topic is solved
- Replies: 7
- Views: 651
Re: Format the wikicode of infoboxes… Topic is solved
Check out this code from Mordecai on the Discord: ^i:: ^x regex := "O)\s*\|\s*(.*?)\s*=\s*(.*)", width := 1 Loop, Parse, Clipboard, `n, `r If RegExMatch(A_LoopField, regex, _) width := Max(width, StrLen(_[1])) Loop, Parse, Clipboard, `n, `r If RegExMatch(A_LoopField, regex, _) out .= Format(" | {:-...
- 16 Nov 2022, 12:14
- Forum: Ask for Help (v1)
- Topic: Format the wikicode of infoboxes… Topic is solved
- Replies: 7
- Views: 651
Re: Re: Topic is solved
I'm not very good with regex, but here's a start. Idk how to get the tabs to align like in the example. https://regex101.com/r/eQ1R0Y/1 Thank you but tabs don't work in Wikipedia editor (only normal spaces). Note: The font used in Wikipedia editing window is monospaced (like Courrier New), so every...
- 16 Nov 2022, 11:42
- Forum: Ask for Help (v1)
- Topic: Format the wikicode of infoboxes… Topic is solved
- Replies: 7
- Views: 651
Format the wikicode of infoboxes… Topic is solved
Hello I am a contributor to Wikipedia and I would like to make a script with AutoHotKey that could format the wikicode of infoboxes and other similar templates. Infoboxes are templates that displays a box on the side of articles and shows the values of the parameters entered (they are numerous and t...
- 09 Jan 2022, 12:45
- Forum: Ask for Help (v1)
- Topic: Script to shut down PC after 30 minutes idle triggered at startup Topic is solved
- Replies: 3
- Views: 1019
Script to shut down PC after 30 minutes idle triggered at startup Topic is solved
Hello I adapted a little script to shutdown my PC after 30 minutes of inactivity (no keyboard or mouse action detected with A_TimeIdle ), but sometimes when I start my PC, I see the first window saying that it will shut down in 5 minutes (i.e. there have been no mouse/keyboard action detected for 18...
- 23 Dec 2021, 05:31
- Forum: Ask for Help (v1)
- Topic: Use SetKeyDelay only in certain programs Topic is solved
- Replies: 2
- Views: 322
Re: Use SetKeyDelay only in certain programs Topic is solved
Thanks @Xtra.
- 23 Dec 2021, 01:13
- Forum: Ask for Help (v1)
- Topic: Use SetKeyDelay only in certain programs Topic is solved
- Replies: 2
- Views: 322
Use SetKeyDelay only in certain programs Topic is solved
Hello I need to use SetKeyDelay, 100, 50 in GTA 5, but I use the scripts for GTA in the same file as my main AHK file, which contains also my spelling corrections, the hotkey to type my e-mail address, etc. Basically, the file is designed like this: #IfWinActive, ahk_exe GTA5.exe SetKeyDelay, 100, 5...
- 18 Oct 2021, 21:43
- Forum: Ask for Help (v1)
- Topic: Problem with RegExReplace Topic is solved
- Replies: 7
- Views: 633
Re: Problem with RegExReplace Topic is solved
Thank you @mikeyww
I don't really understand your code, but it seems to work.
I'll have to study it more closely if I want to be able to do the same thing in the future!
I don't really understand your code, but it seems to work.
I'll have to study it more closely if I want to be able to do the same thing in the future!
- 18 Oct 2021, 20:49
- Forum: Ask for Help (v1)
- Topic: Problem with RegExReplace Topic is solved
- Replies: 7
- Views: 633
Re: Problem with RegExReplace Topic is solved
If I have this code: Loop { Alphabet := "ABCDEFGHIJKLMNOPQRSTUVWXYZ" Loop { InputBox, Word , , Remaining letters :`n%Alphabet%, , 300, 150, , , Locale if ErrorLevel Break Else Alphabet := RegExReplace(Alphabet, "i)[" Word "]") } } If I press "Cancel" or the top-right red X, I'll only reset the varia...
- 18 Oct 2021, 20:34
- Forum: Ask for Help (v1)
- Topic: Problem with RegExReplace Topic is solved
- Replies: 7
- Views: 633
Re: Problem with RegExReplace Topic is solved
Thank you very much for this quick answer, mikeyww . Another thing: if I want to do this for different sets of letters, I can add another loop with Alphabet = ABCD... inside, and replace the if ErrorLevel ExitApp by if ErrorLevel Break , but then I cannot exit the script/App. Clicking the red X on t...
- 18 Oct 2021, 20:00
- Forum: Ask for Help (v1)
- Topic: Problem with RegExReplace Topic is solved
- Replies: 7
- Views: 633
Problem with RegExReplace Topic is solved
Hello I am trying to make a script that removes letters from a variable containing all the letters of the alphabet. Here is my (faulty) script: Alphabet = ABCDEFGHIJKLMNOPQRSTUVWXYZ Loop { InputBox, Word , , Remaining letters :`n%Alphabet%, , 300, 150, , , Locale if ErrorLevel ExitApp Else Alphabet ...
- 17 Aug 2021, 09:38
- Forum: Ask for Help (v1)
- Topic: How to edit file names? Topic is solved
- Replies: 11
- Views: 2130