Jump to content

Recommended Posts

Posted

?Here is a lil but without input box and it jsut read keys you press

It is ment to call functions taht are going to be reconized while inside a game aka mu online.

This is no where near how it will turn out.

but just a sample of what i need.

HotKeySet("{ESC}","stop")
HotKeySet("{HOME}","start")
$out=""
Func stop()
    Exit
EndFunc

Func start()
    HotKeySet("{ENTER}","read")
    While 1
        Global $value = InputBox("Testing", "Enter command")
        ToolTip($out,10,10)
    WEnd

EndFunc

Func read()
    If $out<> "" Then
        $out=$value&@LF&$out
    EndIf
    If $out= "" Then
        $out=$value
    EndIf
    
EndFunc
    
While 1
    
WEnd
Visit mEMy programs made.Iul - IulG-V Console - G-V Console_RandomLetter - _RandomLetter()Saftey Kill - Saftey Killcolorzone() = colorzone()
Posted (edited)

Hi,

I don't understand it, but why aren't you using the au3recorder for documenting for your strokes and mouse moves?

So long,

Mega

Edited by th.meger

Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Posted

um seriously ur kinda confusing but i think i get wut ur trying to do. are you trying to write a script that logs ur keys and interperts them as a command?? i seriously dont think that it will work u should just use hotkeys for everything you want to do or u could create a gui that you type your commands into to put out the desired function

A great place to start Autoit 1-2-3

Posted (edited)

?Here is a lil but without input box and it jsut read keys you press

It is ment to call functions taht are going to be reconized while inside a game aka mu online.

This is no where near how it will turn out.

but just a sample of what i need.

1. Just for convention sake, as it helps others to read and debug, put all your functions at the bottom.

2. Put a short sleep in your While/Wend loop to prevent sucking up all the CPU cycles.

3. Comments don't help a script run, but they help us humans understand it.

4. Also by convention, for readability, name local functions with a leading underbar.

That gets you this far:

HotKeySet("{ESC}","_stop")
HotKeySet("{HOME}","_start")

$out="" ; Tool tip text starts empty

; Loop here until HOME or ESC are hit
While 1
    Sleep(10)
WEnd

; Exit when ESC is pressed
Func _stop()
    Exit
EndFunc

; Loop this once HOME is pressed, until ESC exits
Func _start()
    ; ENTER is not a hotkey until start
    HotKeySet("{ENTER}","read")
    
    ; Continuously get input from user
    While 1
        Global $value = InputBox("Testing", "Enter command")
        ToolTip($out,10,10)
    WEnd
EndFunc

; Add user input $value to $out for tooltip
Func _read()
    If $out<> "" Then
        $out=$value&@LF&$out
    EndIf
    If $out= "" Then
        $out=$value
    EndIf
EndFuncoÝ÷ ØÚ0Ê«¦ºé¢²ØZ·*.±ëm«a¢ÙÊÄ51nëmë¬z¹¢pj{m¢­ÔÄE§ízºn¶Ø§Ê&zØb§Ê«"zn´1N«z+'¡Æ¥ú+jÇ©z¶­yû§rب©òÁ¬¬¡ÚÁ¬°Øm«a¢Ùɩݱê^­«^~éܶ*'bjv¥²)¶)¢ÍëayÊzj/y×ë¢kaz·uû§rب)í¡«"    ^!ÿÄÇ¿wH}«­¢+Ù!½Ñ-åMÐ ÅÕ½ÐííM
ôÅÕ½Ðì°ÅÕ½Ðí}ÍѽÀÅÕ½Ðì¤)!½Ñ-åMÐ ÅÕ½Ðíí!=5ôÅÕ½Ðì°ÅÕ½Ðí}ÍÑÉÐÅÕ½Ðì¤((ÀÌØí½ÕÐôÅÕ½ÐìÅÕ½ÐììQ½½°Ñ¥ÀÑáÐÍÑÉÑ̵ÁÑä((ì1½½À¡Éչѥ°!=5½ÈMÉ¡¥Ð)]¡¥±Ä(%M±À ÄÀ¤)]¹((ìá¥ÐÝ¡¸M¥ÌÁÉÍÍ)Õ¹}ÍѽÀ ¤(%á¥Ð)¹Õ¹((ì1½½ÀÑ¡¥Ì½¹!=5¥ÌÁÉÍͰչѥ°Má¥ÑÌ)Õ¹}ÍÑÉÐ ¤($ì
½¹Ñ¥¹Õ½ÕͱäÐ¥¹ÁÕÐɽ´ÕÍȹ¥ÐѼѽ½°Ñ¥À(%]¡¥±Ä($%±½°ÀÌØíÙ±Õô%¹ÁÕÑ ½à ÅÕ½ÐíQÍÑ¥¹ÅÕ½Ðì°ÅÕ½Ðí¹ÑȽµµ¹ÅÕ½Ðì¤($%%ÀÌØí½ÕÐôÅÕ½ÐìÅÕ½ÐìQ¡¸($$ÀÌØí½ÕÐôÀÌØíÙ±Õ($%±Í($$$ÀÌØí½ÕÐôÀÌØíÙ±ÕµÀì1µÀìÀÌØí½ÕÐ($%¹%($%Q½½±Q¥À ÀÌØí½ÕаÄÀ°ÄÀ¤(%]¹)¹Õ¹

Can't test, cause I'm not on Windows, but I hope that moves it forward anyway. :D

Edited by PsaltyDS
Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

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
×
×
  • Create New...