Script Not Working Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
wasimwani
Posts: 1
Joined: 15 Jul 2017, 09:25
Contact:

Script Not Working

15 Jul 2017, 09:54

I have an application where we frequently use F1....F12 KEYS. F2 shows dropdown list, Shift+F4 selects a record, F10 commits a record and so on...I wanted to automate the above tasks. Since i am newbie to AutoHotKey, i wrote basic script as below

Code: Select all

^j::
   send, {f2}   //This will show user dropdown list
   send, {+f4} // Shift+F4 will select a record
   send, {f12} //User visits last page
   send, {+E}  // Ctrl+E expands a record
   send, {f10} //Commit 
Return
First line of code works, however its is stuck at 2nd line,. What am i doing wrong
gregster
Posts: 9020
Joined: 30 Sep 2013, 06:48

Re: Script Not Working  Topic is solved

15 Jul 2017, 11:01

Can't test it at the moment, but send, {+f4} seems wrong. I don't think that the + for 'shift' belongs in the curly braces. Try send, +{f4} instead.

Same with send, {+E} , especially because you write about 'Ctrl', but use the + for 'Shift' again.
Look here: https://autohotkey.com/docs/commands/Send.htm ^ is Ctrl. There is even an example how to do it: Send ^{Home} presses CONTROL+HOME

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Descolada, filipemb, Rohwedder, silelunu and 300 guests