Jump to content
13lack13lade

send f14

Recommended Posts

13lack13lade

Hi All,

Just trying to automate a program at work and im trying to get autoit to send the F14 key however send("{F14}") doesn't work, the {F14} doesn't even come up grey like the other function keys do in the script. Also since there is no f14 key the program i am using uses NUMPAD * as the f14 key however not sure how come i cant send {F14} or {NUMPAD *}... surely just missing something, any idea's?

I've found some posts on the forum from 2009 that state autoit doesnt accommodate as f14 is not part of the standard keyboard, so is there a way to make it press the numpad * button else how do i work around it?

 

Thanks guys!!!

Edited by 13lack13lade

Share this post


Link to post
Share on other sites
Palestinian

Did you try sending a normal " * " ?

Share this post


Link to post
Share on other sites
13lack13lade

* Doesnt count as a Numpad * thus doesnt count as F14 :(

Share this post


Link to post
Share on other sites
Melba23

13lack13lade,

Try using {NUMPADMULT} - that is the key you press manually. ;)

M23


Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______Open Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites
junkew

use below but then with the right value for VK_F14 value

 

To send the ASCII value A (same as pressing ALT+065 on the numeric keypad)

    Send("{ASC 065}")

(When using 2 digit ASCII codes you must use a leading 0, otherwise an obsolete 437 code page is used).

To send UNICODE characters enter the character code (decimal or hex), for example this sends a Chinese character

    Send("{ASC 2709}") or Send("{ASC 0xA95}")

VK_F14 0x7D F14 key

VK_F15 0x7E F15 key

VK_F16 0x7F F16 key

VK_F17 0x80 F17 key

VK_F18 0x81 F18 key

VK_F19 0x82 F19 key

VK_F20 0x83 F20 key

VK_F21 0x84 F21 key

VK_F22 0x85 F22 key

VK_F23 0x86 F23 key

VK_F24 0x87 F24 key

Edited by junkew

Share this post


Link to post
Share on other sites
Exit

HotKeySet("{ESC}", "_ESC")
HotKeySet("{F2}", "_F2")
HotKeySet("+{F2}", "_F14") ; shift F2
Func _F2()
    MsgBox(262144, Default, "F2", 0)
EndFunc   ;==>_F2
Func _F14()
    MsgBox(262144, Default, "F14", 0)
EndFunc   ;==>_F14
Func _ESC()
    Exit
EndFunc   ;==>_ESC
While 1
    Sleep(100)
WEnd


My UDFs, Abbrevs and Snippets
If you like my post, just click the like button :) 

Share this post


Link to post
Share on other sites
13lack13lade

awesome!

Thank you guys!! 

Share this post


Link to post
Share on other sites
sakis_s

Hi! Can someone help me how can i "$hotkey ="  with combination "Left Windows" + "F20"?

Share this post


Link to post
Share on other sites
water

Welcome to AutoIt and the forum!

What have you tried so far? The help file describes what to use for the Left Windows key and Junkew described what to use for the F20 key.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-12-03 - Version 1.4.11.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
sakis_s
1 hour ago, water said:

Welcome to AutoIt and the forum!

What have you tried so far? The help file describes what to use for the Left Windows key and Junkew described what to use for the F20 key.

Thank you very much!
I'm new to writing scripts with AutoIt but i was able to make my script work if i use a simple button like "q" to run the script. Now i want to change this button to the more complicated "Left Windows+F20" but everything i tried it gives my syntax error.

I tried things like:
$hotkey = Send({LWIN}{VK_F20 0x83})
$hotkey = Send("{LWIN}{VK_F20 0x83}")
$hotkey = "{LWIN} Send("{VK_F20 0x83}")
$hotkey = "{LWIN}, Send("{VK_F20 0x83}")"

But always get a syntax error. I'm pretty sure i'm doing something wrong but i have no idea what is.
If you have any idea to try something, it would much appreciated.

Share this post


Link to post
Share on other sites
sakis_s
1 minute ago, Jos said:

So does this look close to how it is described in the helpfile and its examples?

Jos

That is what i understand. Sorry i'm just a beginner, reading tutorials and trying to make scripts by myself and somehow i made it work for a simple button but not for this one. I'm not a programmer/developer, just a simple user trying to find out what i'm doing wrong and learn from my mistakes.

Share this post


Link to post
Share on other sites
Jos
1 minute ago, sakis_s said:

That is what i understand.

No idea what that means. Look again and does any of those options you provide look even close to what is described there... as it really doesn't !

Jos


SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
sakis_s
15 minutes ago, Jos said:

No idea what that means. Look again and does any of those options you provide look even close to what is described there... as it really doesn't !

Jos

I looked again. I am not able to find something that describes my syntax error. if i look for $hotkey, i only get results for HotKeySet. But for my script HotKeySet is HotKeySet($hotkey, "function"). I need to fix my $hotkey and map it correctly. Do you have any specific suggestion what to look for in help file?

Share this post


Link to post
Share on other sites
Jos

None of the 4 lines you posted conforms to that syntax......right?, so try again and post how you think it should be. 

Jos

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
sakis_s
2 minutes ago, Jos said:

None of the 4 lines you posted conforms to that syntax......right?, so try again and post how you think it should be. 

Jos

Look Jos, i thought this was a HELP forum. If you are a developer and you mocking noobs because they don't know how to syntax correctly, then you'll probably should rename this forum to look somewhere else for help.

  • Like 1

Share this post


Link to post
Share on other sites
sakis_s
9 minutes ago, junkew said:

Send("{ASC 0xA95}") is how it should look like. Reread the thread and help to find your code to send.

Ok Maybe i'm just stupid. I tried many things like:
$hotkey = "{LWIN} Send("{ASC 083}")"
$hotkey = "{LWIN} Send("{ASC 0x83}")"

Share this post


Link to post
Share on other sites
sakis_s

$hotkey = "{LWIN} Send("{ASC  VK_F20 0x83}")"
$hotkey = "{LWIN} Send("{ASC  VK_F20 0x83}")"

Can't understand and i believe you can't help by pointing the right syntax. I just have to find out somehow.

Share this post


Link to post
Share on other sites
Jos
11 minutes ago, sakis_s said:

i thought this was a HELP forum. If you are a developer and you mocking noobs

I am not mocking you, merely try to help you sort out basic issues yourself...  That is called learning, so when you aren't interested in that and presive that as mocking then it is your problem. Mocking would be when I would have called you an idiot for not properly reading the helfile which, for clarity, haven't done.

Goodluck with scripting
Jos


SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×