montagesnmore Posted October 2, 2013 Share Posted October 2, 2013 (edited) I need help to create a script with a toggle on/off function utilizing one key stroke. Autohotkey has the following script to toggle a script on/off:$F2:: <---Key Command no_hud++ <---command input if (no_hud = 1) ;disable function { Send {vkC0sc029 down} <----command I want to use sleep, 1 Send {vkC0sc029 up} <-----command that makes it close after sleep sleep, 1 send "whatever file/command sending" {enter} <-----command that it will write sleep, 1 Send {vkC0sc029 down} sleep, 1 Send {vkC0sc029 up} How do I accomplish this with AutoIt? I cannot find any help with this problem I am facing. Thanks in advance! Edited October 2, 2013 by montagesnmore Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted October 2, 2013 Moderators Share Posted October 2, 2013 montagesnmore,You still have not read those rules, have you? Which part of: "Do not repost the same question if the previous thread has been locked - particularly if you merely reword the question to get around one of the prohibitions listed above"is hard to understand? And you even left the "no-hud" command in there! Our patience has limits - do NOT start a third thread on this. 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 Link to comment Share on other sites More sharing options...
Recommended Posts