Ticki84 Posted March 8, 2014 Share Posted March 8, 2014 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. Link to comment Share on other sites More sharing options...
Damein Posted March 9, 2014 Share Posted March 9, 2014 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? 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 Link to comment Share on other sites More sharing options...
Ticki84 Posted March 9, 2014 Author Share Posted March 9, 2014 (edited) It's a script to help staff on a Minecraft server. #include <Misc.au3> $delai = 100 HotKeySet("+1", "Gamemode") While 1 Sleep(100) WEnd Func Gamemode() Send("/") Sleep($delai) Send("gm 1") Sleep($delai) Send("{ENTER}") EndFunc ;==>Gamemode Edited March 9, 2014 by Ticki84 Link to comment Share on other sites More sharing options...
Damein Posted March 9, 2014 Share Posted March 9, 2014 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. 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 Link to comment Share on other sites More sharing options...
Ticki84 Posted March 9, 2014 Author Share Posted March 9, 2014 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 Link to comment Share on other sites More sharing options...
this-is-me Posted March 9, 2014 Share Posted March 9, 2014 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? Link to comment Share on other sites More sharing options...
Ticki84 Posted March 9, 2014 Author Share Posted March 9, 2014 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. Link to comment Share on other sites More sharing options...
this-is-me Posted March 9, 2014 Share Posted March 9, 2014 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? Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted March 9, 2014 Moderators Share Posted March 9, 2014 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. M23 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