Jump to content

AutoHotkeySet problem


Recommended Posts

Hi! i get stucked with my script. How can i use more send funcion in a script?

like if I press F1 then send("xy")

if I press F2 then send("cc")

ok i know the AutoHotkeySet command, but how can i use more send("...") command?

huhh, im not really good in english :idea:

if i press F1 then it pressing always 00000...

if i press the F2 too then it press the 000+11111...

ive done a source code but if a func is activated is can't activate an other func without disabling the 1st.

so my source is this:

msgbox(0, "[unc3nZureD]", "message")

Global $Paused

HotKeySet("{PAUSE}", "TogglePause")

HotKeySet("{ESC}", "Terminate")

HotKeySet("{u}", "Func1")

HotKeySet("{i}", "Func2")

HotKeySet("{o}", "Func3")

HotKeySet("{p}", "Help")

;;;; Body of program would go here ;;;;

While 1

Sleep(100)

WEnd

;;;;;;;;

Func TogglePause()

$Paused = NOT $Paused

While $Paused

sleep(100)

ToolTip('Script is "Paused"',0,0)

WEnd

ToolTip("")

EndFunc

Func Terminate()

Exit 0

EndFunc

Func Func1()

While 1

Send("{0}")

Sleep(100)

Send("{0}")

Sleep(100)

WEnd

EndFunc

Func Func2()

$delay = InputBox("Delay","Enter the time of your buff" & @CRLF & "But you need to *1000 example 10sec = 10000")

While 1

Sleep($delay)

Send("{1}")

WEnd

Exit

EndFunc

Func Func3()

While 1

Send("{2}")

Sleep(200)

Send("{2}")

Sleep(200)

WEnd

EndFunc

Func Help()

Run("notepad.exe")

WinWaitActive("[CLASS:Notepad]")

Send("szevasz{ENTER}")

Sleep(500)

Send("zser")

Sleep(500)

EndFunc

so again the question:

how can i solve the switching. i dont wanna switch between 2 function, i want to use 2 func in 1 time.

I hope u understand it :)

if my source need modification please write it

thx

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...