Hello I am a complete Newbie to AHK...
I am trying to create a script that:
a) copies a selected text
b) opens Microsoft Translator -- NOT the website but the Translator app build into Windows 10.
c) Select all in case there is previous content
d) past clipboard
thanks in advance, and take care
Steve
Newbie help
Newbie help
Last edited by SteveB123 on 28 Jul 2020, 07:50, edited 1 time in total.
-
- Posts: 112
- Joined: 06 Jun 2016, 21:32
Re: Newbie help
try this :
!q::
send ^c
run %path_of_translator%
Return
;;Press Alt+q to start..
!q::
send ^c
run %path_of_translator%
Return
;;Press Alt+q to start..
Re: Newbie help
hello, thanks... however this did not work for me.
I am not sure where Translator is located in Windows 10 ....
should %path_of_translator% work, or do I need to add path ...
I have been able to get this to work for other programs and for websites ... but just not for Translator ...
thanks again
Steve
I am not sure where Translator is located in Windows 10 ....
should %path_of_translator% work, or do I need to add path ...
I have been able to get this to work for other programs and for websites ... but just not for Translator ...
thanks again
Steve
Re: Newbie help
You need to know the path of the translator app. Either assign the path to the variable path_of_translator, or put the path directly into the hotkey statement, like this:
I haven’t installed the translator app, so I don’t know the actual path.
Code: Select all
!q:: Run C:\Windows\System32\translator.exe
Re: Newbie help
hello... thanks: worked out a solution.. perhaps not very elegant but it seems to work: created a link on desktop and ran that: able to see target but cannot figure out how to run target ... But this is my first go at this
newbie thanks you....
[Mod edit: [code][/code] tags added.]
newbie thanks you....
Code: Select all
!q::
{
send ^c
Sleep 50
run C:\Users\sglof\Desktop\Translator.lnk
Sleep 70
send ^a
Sleep 50
send ^v
Return
}
;;Press Alt+q to start..
Re: Newbie help
If you have a link, then you should be able to see the path to the exe file by right-clicking on it and viewing the properties.
Re: Newbie help
I did that and got: "Microsoft.BeingTranslator_8wekyb3d8bbwe!App"
But no matter what I did with this I could not get it to work.
tried
run %Microsoft.BeingTranslator_8wekyb3d8bbwe!App%
unfortunately I could not find this in a search Explore....
Steve
But no matter what I did with this I could not get it to work.
tried
run %Microsoft.BeingTranslator_8wekyb3d8bbwe!App%
unfortunately I could not find this in a search Explore....
Steve
Re: Newbie help
just realized that Translator has to be open for my script to work.... if it is not open, Translator opens .... but then the Ctrl A etc. take place in the source document....
Re: Newbie help
That’s not a file path. And if you do find the path, don’t put % signs around it. That’s for variable names.
Are saying that what’s under “Target:” in the “Shortcut” tab when viewing the properties of the translator shortcut?
Re: Newbie help
yes I realize that % was for variables but could think of nothing else....
and Yes that is the target .... but to create the desktop shortcut had to pull bar menu ... still cannot figure out the location of the exe and so the path ...
it works well enough for now ... I just have to remember to have the program running before I start to work ...
thanks for the help ... I am sure newbies like myself are a pain to the community ... sorry
and Yes that is the target .... but to create the desktop shortcut had to pull bar menu ... still cannot figure out the location of the exe and so the path ...
it works well enough for now ... I just have to remember to have the program running before I start to work ...
thanks for the help ... I am sure newbies like myself are a pain to the community ... sorry
Re: Newbie help
I’m not sure where this is coming from. The community happily helps a number new AHK users every day, and I attempt to contribute to that welcoming and helpful atmosphere. Was there something in my posts that came across as anything other than an earnest attempt to help find a solution to your issue?
Re: Newbie help
no, no, no.... you have misunderstood .... It was in NO way meant as a critique. I just feel bad taking up people's time with what must appear to be very simple questions .... I am using AHK because I moved from Mac to Windows and in Mac had a tool that made automating certain tasks very simple. From what I can see this is the best option but it does have a learning curve and I am trying to keep focused on my work and so do not have as much time as I need to learn the ins and outs of this .... especially given I only have a handful of needs....
So no criticism intended ,.... Just trying to imagine that such basic questions must be, well basic .... I am sure if I were to read long enough I would figure things out ... but I tried and tried to get it to work and could not ... so I very much appreciate the help ... sorry if that was not clear
So no criticism intended ,.... Just trying to imagine that such basic questions must be, well basic .... I am sure if I were to read long enough I would figure things out ... but I tried and tried to get it to work and could not ... so I very much appreciate the help ... sorry if that was not clear
Re: Newbie help
OK. Sorry to misinterpret. Don’t hesitate to ask questions.
Who is online
Users browsing this forum: No registered users and 247 guests