Go Down

Topic: Function key support arduino IDE (Read 975 times) previous topic - next topic

Steen

Hi

I've been wanting to ask this a very long time, and I've searched the forums (and found nothing), so here I am.
Could it be possible to add function key support to the arduino IDE?
With function keys I mean those F[number here] keys.

e.g. of mapping:
F1 reference
F2 find previous
F3 find next
F5 compile and upload
F9 compile
F12 save files

I would be pleased to see this in a next release, but I don't know if it would be possible.

Thanks
Steen

robtillaart


You can probably make it yourself with - http://www.autohotkey.com/ -
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

eried

My website: http://ried.cl

ljbeng

Here are the F key routines I wrote.  You will need Autohotkey installed on your pc.  Kill this app when using other programs that need the F2, F3, F5, F9 or F12 keys.  Play with the sleep delays if yours acts goofy.

The thing I like about these hot keys is it saves everytime I compile or upload. :)


Code: [Select]

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn  ; Enable warnings to assist with detecting common errors.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.


checkTitle(){
ard = Arduino
wingettitle, t, A
stringgetpos, pos, t, %ard%
if pos > 0
   return 0
else
   return 1
}

F2::
if checkTitle() = 0{
send {left}
sleep 50
send ^f
sleep 200
send {tab}
sleep 20
send {tab}
sleep 20
send {tab}
sleep 20
send {tab}
sleep 20
send {tab}
sleep 20
send {enter}
sleep 50
send {escape}
sleep 50
}

return

F3::

if checkTitle() = 0{
send {right}
sleep 50
send ^f
sleep 150
send {enter}
sleep 50
send {escape}
sleep 50
}

return

F5::

if checkTitle() = 0{
send ^s
sleep 150
send ^u
}

return

F9::
if checkTitle() = 0{
send ^s
sleep 150
send ^r
}

return

F12::
if checkTitle() = 0{
send ^s
sleep 150

}
return


Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy