Search found 139 matches
- 12 Sep 2019, 10:20
- Forum: Ask for Help (v1)
- Topic: Adress File or Folder to Clipboard
- Replies: 7
- Views: 1267
Adress File or Folder to Clipboard
Is it feasible to obtain a script that does the following?: When you click on a certain file in any windows folder, it copies its address to the clipboard. The same for the folder. For example: Ex1: Click on file "Activities.txt" Clipboard = C://My Folder/Activities.txt Or Ex2: Click on folder "My F...
- 12 Sep 2019, 07:09
- Forum: Ask for Help (v1)
- Topic: Flashcards game with AHK Topic is solved
- Replies: 5
- Views: 1065
Re: Flashcards game with AHK Topic is solved
Thank you very much!!
- 11 Sep 2019, 23:40
- Forum: Ask for Help (v1)
- Topic: Flashcards game with AHK Topic is solved
- Replies: 5
- Views: 1065
Re: Flashcards game with AHK Topic is solved
I am much closer to reaching my goal. But I need to solve two problems: 1. I found how to make it work for key-values, but I don't know how use both words (strings). 2. I dont know how get random results. Does anyone know how? #!j:: ; array := {house: casa, tree: árbol, sun: sol} ; DOES'NT WORK arra...
- 11 Sep 2019, 16:45
- Forum: Ask for Help (v1)
- Topic: Flashcards game with AHK Topic is solved
- Replies: 5
- Views: 1065
Re: Flashcards game with AHK Topic is solved
AHKStudent wrote: ↑11 Sep 2019, 16:34if you add
q::
on top of ButtonOK32: it will change every time you hit q
The back and front idea can be implemented using an associative array
Thank you AHKStudent,
but I can't do the script by myself.
My knowledge in AHK is very elementary.
- 11 Sep 2019, 13:32
- Forum: Ask for Help (v1)
- Topic: Flashcards game with AHK Topic is solved
- Replies: 5
- Views: 1065
Flashcards game with AHK Topic is solved
Hi guys, I would like to know if it is possible to make a kind of FlashCards game with AHK. For example, from the following list, for English-Spanish words: House - Casa Tree - Árbol Sun - Sol I would like random words to appear (example, Tree), and by pressing a hotkey (ex. F1), you can see the bac...
- 02 Sep 2019, 22:51
- Forum: Ask for Help (v1)
- Topic: Help with an Easy loop (I think) Topic is solved
- Replies: 2
- Views: 633
Re: Help with an Easy loop (I think) Topic is solved
Thank you very much!
- 02 Sep 2019, 21:58
- Forum: Ask for Help (v1)
- Topic: Help with an Easy loop (I think) Topic is solved
- Replies: 2
- Views: 633
Help with an Easy loop (I think) Topic is solved
Hi Guys
I need to automate the following:
a).
b).
c).
...
...
z). (up to z)
I think I need a loop like this:
What should I put where it says "changing letter"?
Thanks in advance
I need to automate the following:
a).
b).
c).
...
...
z). (up to z)
I think I need a loop like this:
Code: Select all
Loop 26
{
Send "changing letter"
Send {)}. {Enter}
}
Thanks in advance
- 22 Aug 2019, 16:18
- Forum: Ask for Help (v1)
- Topic: Regular expression to apply in a TXT file
- Replies: 3
- Views: 1210
Re: Regular expression to apply in a TXT file
Hi, I just came up with this. I hope it does what you wanted. The Text is just an example, just copy that function and call it whenever you need it. Text := "This Text is `nsplit into two lines!`r`nThere are mutliple sentences too." Text := PolishText(Text) MsgBox % Text return PolishText(Text) { T...
- 22 Aug 2019, 12:04
- Forum: Ask for Help (v1)
- Topic: 5000 lines in my hotkey file!
- Replies: 1
- Views: 463
Re: 5000 lines in my hotkey file!
I would divide the large script into several small and specific ones (one for Office, another for websites, another for other programs, etc.)
And I would have a general one that activates or deactivates individual and specific scripts.
And I would have a general one that activates or deactivates individual and specific scripts.
- 22 Aug 2019, 11:01
- Forum: Ask for Help (v1)
- Topic: Regular expression to apply in a TXT file
- Replies: 3
- Views: 1210
Regular expression to apply in a TXT file
Hi Guys I have text files (*.txt) that I've copied from PDF files, and I need to delete wrong Carriage Returns I suppose I need a Regular Expression, but I can't write it by myself. It should do something like that: "get to the end of the line (Send ^{End}); if there is a point (Full stop), go down ...
- 31 Jul 2019, 13:55
- Forum: Ask for Help (v1)
- Topic: Conditioned script according to the last pressed key Topic is solved
- Replies: 8
- Views: 3061
- 31 Jul 2019, 12:21
- Forum: Ask for Help (v1)
- Topic: Conditioned script according to the last pressed key Topic is solved
- Replies: 8
- Views: 3061
Re: Conditioned script according to the last pressed key Topic is solved
Thanks jeeswg!
Could you tell me what the hotstrings you propose do?
Could you tell me what the hotstrings you propose do?
jeeswg wrote: ↑31 Jul 2019, 12:10
Code: Select all
~q::vPriorKey := "" ~w::vPriorKey := "w" ~e::vPriorKey := "" ~r::vPriorKey := "r"
- 31 Jul 2019, 12:13
- Forum: Ask for Help (v1)
- Topic: Conditioned script according to the last pressed key Topic is solved
- Replies: 8
- Views: 3061
- 31 Jul 2019, 11:00
- Forum: Ask for Help (v1)
- Topic: Conditioned script according to the last pressed key Topic is solved
- Replies: 8
- Views: 3061
Re: Conditioned script according to the last pressed key Topic is solved
Try F7:: If (A_priorkey = "r") run calc else If (A_priorkey = "w") run notepad else Reload return _____________________ Thank you Gregster! It works if the key (in this case "F7") is alone, but it doesn't if it has a modifier. (!F7:: ^+F7::) - The result is the last ("else - Reload") Do you know wh...
- 31 Jul 2019, 10:23
- Forum: Ask for Help (v1)
- Topic: Conditioned script according to the last pressed key Topic is solved
- Replies: 8
- Views: 3061
Conditioned script according to the last pressed key Topic is solved
Hi guys, My knowledge in AHK is quite limited, and I need a script that interprets the following: F7:: "If the last pressed key was" r ", Run calc If it was "w", Run Notepad Otherwise, Reload" ("Run calc" and "Run Notepad" are arbitrary examples; I assign them only to not put my longer code) Thank y...
- 29 Jul 2019, 09:51
- Forum: Ask for Help (v1)
- Topic: Regular expression to select an specific amount of text Topic is solved
- Replies: 4
- Views: 913
Re: Regular expression to select an specific amount of text Topic is solved
FoundPos := RegExMatch(oVar, "s).{1,5000}(?:\.|;)", OutputVar, InStr(oVar,Var)) https://regex101.com/r/WXH6US/3 - Thank you very much! In case someone else is useful, this would be the script: InputBox, Var, STRING TO SEARCH? If ( ErrorLevel ) return flnm := "C:\TASK\Activities.txt" fileread, oVar,...
- 29 Jul 2019, 09:26
- Forum: Ask for Help (v1)
- Topic: Regular expression to select an specific amount of text Topic is solved
- Replies: 4
- Views: 913
Re: Regular expression to select an specific amount of text Topic is solved
Thanks, but I am a newbie in AHK. I can't do the sintax by myselfawel20 wrote: ↑29 Jul 2019, 09:18try "s).{1,5000}\."
with regexmatch
https://regex101.com/r/WXH6US/1
- 29 Jul 2019, 08:53
- Forum: Ask for Help (v1)
- Topic: Regular expression to select an specific amount of text Topic is solved
- Replies: 4
- Views: 913
Regular expression to select an specific amount of text Topic is solved
I need to modify the following script so that it says the following slogan "Select 5000 characters (or, failing that, no more than 5000) from the string entered in the variable (Var), but stop at the last full stop or semicolon you find" (so, maybe select 4912 characters, for example) In summary up ...
- 27 Jul 2019, 22:58
- Forum: Ask for Help (v1)
- Topic: "Illegal characters" in a Variable Topic is solved
- Replies: 2
- Views: 1007
Re: "Illegal characters" in a Variable Topic is solved
Thank you very much!
- 27 Jul 2019, 21:56
- Forum: Ask for Help (v1)
- Topic: "Illegal characters" in a Variable Topic is solved
- Replies: 2
- Views: 1007
"Illegal characters" in a Variable Topic is solved
Hi guys I need to enter "illegal characters" (such as full stops, commas, question marks, semicolons) into a box to find what I write there in the following script. InputBox, Var, EXPRESSION TO SEARCH? If not ( ErrorLevel ) flnm := "C:\...Book.txt" fileread, oVar, %flnm% pos := InStr(oVar,"Var") cli...