13lack13lade 22 Posted June 11, 2014 (edited) 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 June 11, 2014 by 13lack13lade Share this post Link to post Share on other sites
Palestinian 13 Posted June 11, 2014 Did you try sending a normal " * " ? Share this post Link to post Share on other sites
13lack13lade 22 Posted June 11, 2014 * Doesnt count as a Numpad * thus doesnt count as F14 Share this post Link to post Share on other sites
Melba23 3,396 Posted June 11, 2014 13lack13lade,Try using {NUMPADMULT} - that is the key you press manually. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Share this post Link to post Share on other sites
junkew 394 Posted June 11, 2014 (edited) 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 keyVK_F15 0x7E F15 keyVK_F16 0x7F F16 keyVK_F17 0x80 F17 keyVK_F18 0x81 F18 keyVK_F19 0x82 F19 keyVK_F20 0x83 F20 keyVK_F21 0x84 F21 keyVK_F22 0x85 F22 keyVK_F23 0x86 F23 keyVK_F24 0x87 F24 key Edited June 11, 2014 by junkew FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets Share this post Link to post Share on other sites
Exit 149 Posted June 11, 2014 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 App: Au3toCmd UDF: _SingleScript() Share this post Link to post Share on other sites
13lack13lade 22 Posted June 11, 2014 awesome! Thank you guys!! Share this post Link to post Share on other sites
sakis_s 1 Posted November 18, 2018 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 2,359 Posted November 18, 2018 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 2020-10-10 - Version 1.5.2.1) - Download - General Help & Support - Example Scripts - WikiOutlookEX (NEW 2020-12-15 - Version 1.6.3.1) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2020-06-27 - Version 1.3.2.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - WikiTask Scheduler (2019-12-03 - Version 1.5.1.0) - Download - General Help & Support - WikiTutorials:ADO - Wiki, WebDriver - Wiki Share this post Link to post Share on other sites
sakis_s 1 Posted November 18, 2018 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
Jos 2,164 Posted November 18, 2018 So does this look close to how it is described in the helpfile and its examples? Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette 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 1 Posted November 18, 2018 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 2,164 Posted November 18, 2018 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 etiquette 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 1 Posted November 18, 2018 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 2,164 Posted November 18, 2018 (edited) 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 November 18, 2018 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Share this post Link to post Share on other sites
junkew 394 Posted November 18, 2018 Send("{ASC 0xA95}") is how it should look like. Reread the thread and help to find your code to send. FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets Share this post Link to post Share on other sites
sakis_s 1 Posted November 18, 2018 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. 1 boomingranny reacted to this Share this post Link to post Share on other sites
sakis_s 1 Posted November 18, 2018 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 1 Posted November 18, 2018 $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 2,164 Posted November 18, 2018 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 etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Share this post Link to post Share on other sites