Conjuguemos script Topic is solved

Get help with using AutoHotkey and its commands and hotkeys
awcrt9316
Posts: 61
Joined: 03 Mar 2020, 20:06

Conjuguemos script

03 Mar 2020, 20:23

Does anyone have a script that allows you to complete conjuguemos conjugations at a fast pace(Spanish)? My current script still needs you to type a number 1-6 for the tense and the first three letters of the verb for the hotstring to change the typed text to the correct conjugated verb. I would like the script to be able to complete this task without the need of human intervention, although I am not sure how I am suppost to make a script like the one below.

Code: Select all

copy text
if clipboard=_ set tense to_
if clipboard=_set verb to _

if verb=_ and tense=_ then write_
{enter}
my current script is below--------------------- this script only works for the subjunctive verbs for spanish. This script is just one verb of many

Code: Select all

;almorzar
:*:1alm::
send, almurce
send, {enter}
return
:*:2alm:: 
send, almuerces
send, {enter}
return

:*:3alm:: 
send, almuerce
send, {enter}
return
:*:4alm:: 
send, almorcemos
send, {enter}
return
:*:5alm:: 
send, almorcéis
send, {enter}
return
:*:6alm:: 
send, almuercen
send, {enter}
return
[Mod edit: [code][/code] tags added]
Rohwedder
Posts: 4131
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: Conjuguemos script  Topic is solved

04 Mar 2020, 03:13

Hallo,
perhaps:

Code: Select all

#Persistent
OnClipboardChange("Write")
alm := ["almurce","almuerces","almuerce","almorcemos","almorcéis","almuercen"]
Return
q::Write("3alm")
Write(Code := "")
{ ;e.g. ClipBoard = 3alm
	IF Code = 1
		Code = %ClipBoard%
	IF !RegExMatch(Code,"(\d)(\w\w\w)",C)
		Return
	Conjugation := %C2%[C1]
	IF (Conjugation > "")
		Send, %Conjugation%{Enter}
}
write 3alm in an editor and copy these 4 characters or use Hotkey Q

Return to “Ask For Help”

Who is online

Users browsing this forum: Albireo, Bing [Bot], Johell, KiddoV, mikeyww, PatMk, Robstercraw, scatrmind, Smile_, Sneakysnail, Youri11 and 64 guests