subuddhi Posted June 11, 2022 Share Posted June 11, 2022 (edited) expandcollapse popup#comments-start Made by: AlmarM Example Script for: HotKeySet() Hope u enjoy ^^ #comments-end Local $Site_1 = InputBox("Site 1", "Witch site you want to bind on SHIFT + 1 ?") Local $Site_2 = InputBox("Site 2", "Witch site you want to bind on SHIFT + 2 ?") Local $Site_3 = InputBox("Site 3", "Witch site you want to bind on SHIFT + 3 ?") Local $Site_4 = InputBox("Site 4", "Witch site you want to bind on SHIFT + 4 ?") Local $Site_5 = InputBox("Site 5", "Witch site you want to bind on SHIFT + 5 ?") HotKeySet("+{ESC}", "_Exit") ;If you press ESC the script will stop HotKeySet("+{F1}", "_ShowSite") ;If you press SHIFT + F1, the script will show witch sites you have on witch keys HotKeySet("+1", "_Site1") ;If you press SHIFT + 1, the script activates _Site1() HotKeySet("+2", "_Site2") ;If you press SHIFT + 2, the script activates _Site2() HotKeySet("+3", "_Site3") ;If you press SHIFT + 3, the script activates _Site3() HotKeySet("+4", "_Site4") ;If you press SHIFT + 4, the script activates _Site4() HotKeySet("+5", "_Site5") ;If you press SHIFT + 5, the script activates _Site5() While 1 Sleep(100) WEnd Func _Exit() Sleep(100) Exit EndFunc ;==> _Exit() Func _ShowSite() TrayTip("Sites:", "SHIFT + 1: " & $Site_1 & @CRLF & "SHIFT + 2: " & $Site_2 & @CRLF & "SHIFT + 3: " & $Site_3 & @CRLF & "SHIFT + 4: " & $Site_4 & @CRLF & "SHIFT + 5: " & $Site_5, 5) EndFunc ;==> _ShowSite() Func _Site1() ;Run("cmd /c start " & $Site_1, "", @SW_HIDE) Send("{ENTER}") Send($Site_1) Send("{ENTER}") EndFunc ;==> _Site1 Func _Site2() ;Run("cmd /c start " & $Site_2, "", @SW_HIDE) Send("{ENTER}") Send($Site_2) Send("{ENTER}") EndFunc ;==> _Site2 Func _Site3() ;Run("cmd /c start " & $Site_3, "", @SW_HIDE) Send("{ENTER}") Send($Site_3) Send("{ENTER}") EndFunc ;==> _Site3 Func _Site4() ;Run("cmd /c start " & $Site_4, "", @SW_HIDE) Send("{ENTER}") Send($Site_4) Send("{ENTER}") EndFunc ;==> _Site4 Func _Site5() ;Run("cmd /c start " & $Site_5, "", @SW_HIDE) Send("{ENTER}") Send($Site_5) Send("{ENTER}") EndFunc ;==> _Site5 Its work fine, this is for warcraft 3 reforged macro text. my question is, how can i export the saved setup, i means that local $Site1 until $Site5, so if i restart the program i dont need to input it again, and also 2 additional commands required, 1. for reset all the variable, or we can make at the beginning of program, we may chose either keep the old setup or make the new one..something like that 2.for temporarily pause the script.. Thanks..please help, i tried my best for editing that script with my limited knowledge, now my question is beyond my experience..i really appreciate the help. Edited June 11, 2022 by subuddhi Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted June 11, 2022 Moderators Share Posted June 11, 2022 (edited) Unfortunately you appear to have missed the Forum rules since you joined. Please read them now - particularly the bit about not discussing game automation - and then you will understand why you will get no help and this thread will now be locked. The Moderation team Edited June 11, 2022 by Melba23 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