kirka Posted June 24, 2012 Share Posted June 24, 2012 Hello.Im new in "coding" scene so i need little bit help.I want to do "script" wich scrolls automaticly up, when i hold some button. (space)Speed need to be 260 ms.Here is my code, but when i use it in game, i have "keyblock".HotKeySet("{SPACE}", "Spacebarhold")HotKeySet ( "{o}", "LessDelay" )HotKeySet ( "{p}", "MoreDelay" )$dif = 200$begin = 0$Delay = 230Func Spacebarhold() $begin = TimerInit() sleep(5) EndFuncFunc LessDelay() $Delay = $Delay - 1 If $Delay < 180 Then $Delay = 180 EndIf ToolTip($Delay, 0, 0)EndFuncFunc MoreDelay() $Delay = $Delay + 1 If $Delay > 350 Then $Delay = 350 EndIf ToolTip($Delay, 0, 0)EndFuncWhile 1 $dif = TimerDiff($begin) if $dif <100 Then MouseWheel ( "up" , 1 ) Sleep($Delay+(Random(-1, 1, 1))) ToolTip("GO TIME!",0,0) Else ToolTip("",0,0) Sleep(5) EndIfWEndIf somebody could fix the problem or just to do new source code !Thanks in advance. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted June 25, 2012 Moderators Share Posted June 25, 2012 Here is my code, but when i use it in game, i have "keyblock"Welcome to the AutoIt forum. Unfortunately you appear to have missed the Forum Rules on your way in. 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. See you soon with a legitimate question I hope. 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