Jump to content

Simple question regarding hotkey - (Locked)


Recommended Posts

#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 by subuddhi
Link to post
Share on other sites
  • Moderators
Posted (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 by Melba23

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 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

 

Link to post
Share on other sites
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...