HOW TO MULTI ACCOUNT SCRIPTS

Posts 1–3 of 3 · Page 1 of 1
HOW TO MULTI ACCOUNT SCRIPTS
i really need to know how to have a script run on multiple accounts ,similar to mpfishing bot

PLZ help....
The way mpfishing bot sends keystrokes to multiple windows without focusing them is using ControlSend they get the specific window handle and sends the input to it. Note: controlclick does not work only controlsend. hope this is what u were asking about.
Firstly, IF IN DOUBT, CHECK THE AHK DOCS!
https://www.autohotkey.com/docs/AutoHotkey.htm


Using AHK, like mpfishing, you use this to find the windown title to use controlsend on.

This has Ctrl+F as the hotkey, saves the windowtitle as "title" to that controlsend can be used on it.
Code:
^F::
WinGetTitle, title, A
MsgBox, %title%
return
MsgBox shows the variable %title% which is the windowtitle, followed by return which allows for the hotkey to be repeated


To controlsend keystrokes to the window: (excerpt from my most recent trove ahk script)
Code:
SetKeyDelay, 10, 5                                           ;1                                             
ControlSend,, {down down}{down up}, %title%                  ;2               
Sleep, 250                                                   ;3          
ControlSend,, %variable_to_send_as_keystrokes%, %title%      ;4    
Sleep, 250                                                   ;3
ControlSend,, {enter down}{enter up}, %title%                ;5
;1 Delay between sending keys by 10ms, keys pressed for 5ms - stops keys being mixed up
;2 Sends the keystrokes "down arrow (up, then down)" to perform 1 downarrow press
;3 Delay as sleep to allow for previous action to complete
;4 Sends the variable in %%s to the windowtitle %title%
;5 Sends {ENTER} to the window you pressed Ctrl+F on

Now for multiple windows you will need a main and subscript.
The main script will take in the variables to send to the subscript that does the autofishing
- To do this you have: "Run script_name.ahk"
Or to redirect to another file to run an ahk file: "Run %A_LoopFileLongPath%/<filename>.ahk

To pass variables over to the subscript:
Run %A_LoopFileLongPath%/filename.ahk %VariableName% %secondVariableName% %ThirdVariableName%
Posts 1–3 of 3 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?