Jump to content
Sign in to follow this  
Ticki84

Does the same function again and again

Recommended Posts

Ticki84

Hello everyone,

I've got a little problem with one of my script.

I just do this:

HotKeySet("+1", "Gamemode")

While 1
    Sleep($delai)
WEnd

Func Gamemode()
    Send("/")
    Sleep($delai)
    Send("gm 1")
    Sleep($delai)
    Send("{ENTER}")
EndFunc   ;==>Gamemode

My script is longer than this but there's the part that gets on my nerves.
So when i do Shift + 1, it just repeat again and again /gm /gm /gm /gm /gm... because of the 1 after gm, the program think i press the Shift key.

How can i fix it?

Thanks in advance.

Share this post


Link to post
Share on other sites
Damein

You must have something else causing this.

Just copying and pasting what you posted, does not cause this to repeat.

HotKeySet("+1", "Gamemode")

$delai = 1000

While 1
    Sleep($delai)
WEnd

Func Gamemode()
    Send("/")
    Sleep($delai)
    Send("gm 1")
    Sleep($delai)
    Send("{ENTER}")
EndFunc   ;==>Gamemode

Quick question, what is this for?


MCR.jpg?t=1286371579

Most recent sig. I made

Quick Launcher W/ Profiles Topic Movie Database Topic & Website | LiveStreamer Pro Website | YouTube Stand-Alone Playlist Manager: Topic | Weather Desktop Widget: Topic | Flash Memory Game: Topic | Volume Control With Mouse / iTunes Hotkeys: Topic | Weather program: Topic | Paws & Tales radio drama podcast mini-player: Topic | Quick Math Calculations: Topic

Share this post


Link to post
Share on other sites
Damein

Ah, I'm sorry but I won't be able to sift through the entire thing with the french in there ^^;

Sorry, but best of luck.

Quick advice: Start removing functions that point towards the GameMode() function.


MCR.jpg?t=1286371579

Most recent sig. I made

Quick Launcher W/ Profiles Topic Movie Database Topic & Website | LiveStreamer Pro Website | YouTube Stand-Alone Playlist Manager: Topic | Weather Desktop Widget: Topic | Flash Memory Game: Topic | Volume Control With Mouse / iTunes Hotkeys: Topic | Weather program: Topic | Paws & Tales radio drama podcast mini-player: Topic | Quick Math Calculations: Topic

Share this post


Link to post
Share on other sites
Ticki84

Whenever when I do the script that i have edited up, this does the same problem.

I repost if you don't find:

#include <Misc.au3>

$delay = 100;Set delay

HotKeySet("+1", "Gamemode");Set Shift + 1 Hotkey

While 1
    Sleep(100)
WEnd

Func Gamemode()
    Send("/");Does / to open chat with
    Sleep($delay);Wait the chat to open
    Send("gm 1");Write the command
    Sleep($delay);Wait for security
    Send("{ENTER}");Send enter to send the command
EndFunc   ;==>Gamemode

Share this post


Link to post
Share on other sites
this-is-me

Ticki84, In case you haven't noticed, game bots are against the rules. I recommend you immediately cease posting to this topic.


Who else would I be?

Share this post


Link to post
Share on other sites
Ticki84

Ticki84, In case you haven't noticed, game bots are against the rules. I recommend you immediately cease posting to this topic.

 

It's not a bot. I'm operator on a Minecraft server and it just execute a chat command to set me (or another operator) in creative mod. It is much easier than type all characters on the chat.

I send it to an administrator that say me that's ok to use it on the server if it can reassure you.

Share this post


Link to post
Share on other sites
this-is-me

I will not argue with you on this subject. The rules, which you have not read, are very clear. You may not ask for help with AutoIt scripts, post links to, or start discussion topics on the following subjects:
[snip]

  • Launching, automation or script interaction with games or game servers, regardless of the game.

[snip]


Who else would I be?

Share this post


Link to post
Share on other sites
Melba23

Ticki84,

The fact that the server admin is happy for you to bot his server is entirely beside the point. The rules of this forum prohibit the discussion of such things. Thread closed. :naughty:

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______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

 

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

×