|
You last visited: Today at 21:20
Advertisement
autoit enterpresser
Discussion on autoit enterpresser within the SRO Private Server forum part of the Silkroad Online category.
08/11/2010, 23:40
|
#1
|
elite*gold: 0
Join Date: May 2007
Posts: 7
Received Thanks: 0
|
autoit enterpresser
hello 
im working on private sever tool and cant quite to get my entpresser to work any help would be wonderful.
Code:
#include <GUIConstants.au3>
#include <GUIConstantsEx.au3>
#include <GuiButton.au3>
#include <WindowsConstants.au3>
#NoTrayIcon
GUICreate("Enter", 160, 120)
$button1 = GUICtrlCreateButton("Enter Press On", 10, 10, 90, 50)
$button2 = GUICtrlCreateButton("Enter Press Off", 10, 60, 90, 50)
GUISetState(@SW_SHOW)
While 1
Switch GUIGetMsg()
Case - 3
Exit
Case $button1
$enter = 1
If $enter = 1 Then
Autolog()
EndIf
Case $button2
$enter = 0
EndSwitch
WEnd
Func Autolog()
While 1
If $enter = 0 Then
ExitLoop
EndIf
if winactive('SRO_Client') = 1 Then
send("{ENTER}")
Else
controlsend('SRO_Client',"","","{ENTER}")
EndIf
Sleep(2000)
WEnd
EndFunc
|
|
|
08/11/2010, 23:54
|
#2
|
elite*gold: 0
Join Date: Feb 2010
Posts: 373
Received Thanks: 64
|
Quote:
If $enter = 1 Then
Autolog()
EndIf
|
put that below "EndSwitch" not in $Button1 "Case"
also delete
Quote:
if winactive('SRO_Client') = 1 Then
send("{ENTER}")
|
from the autologin() function it's unnecessary
|
|
|
08/12/2010, 00:12
|
#3
|
elite*gold: 0
Join Date: May 2007
Posts: 7
Received Thanks: 0
|
thank you for the speedy response.
ok i did what you said but im having the same problem.
i can get the enterpresser going it just when i want to stop it thats when i have an issue.
|
|
|
08/12/2010, 00:26
|
#4
|
elite*gold: 0
Join Date: Feb 2010
Posts: 373
Received Thanks: 64
|
i can tell you what the problem is but if i write the code for you that isn't fun right?
the problem is when you enter the autologin function u can't get out cuz it's an infinite loop
$enter is always 0 even if u press off it won't change it back cuz it stopped checking for it in other words exited the main loop(Switch)
|
|
|
08/12/2010, 00:48
|
#5
|
elite*gold: 0
Join Date: May 2007
Posts: 7
Received Thanks: 0
|
oh no i understand and plus i wouldnt want you to write the code for me.
im just trying to figure out a way now.
|
|
|
08/12/2010, 00:50
|
#6
|
elite*gold: 0
Join Date: Feb 2010
Posts: 373
Received Thanks: 64
|
Quote:
Originally Posted by Tweek
oh no i understand and plus i wouldnt want you to write the code for me.
im just trying to figure out a way now.
|
that's the spirit
|
|
|
08/12/2010, 10:34
|
#7
|
elite*gold: 0
Join Date: May 2007
Posts: 7
Received Thanks: 0
|
would it be easy to do it the way i am or to use the Do/Until function?
lol im still stuck i was able to get it to send enter using the Do/Until funtion but still cant stop it :/
|
|
|
08/12/2010, 12:31
|
#8
|
elite*gold: 0
Join Date: Feb 2010
Posts: 373
Received Thanks: 64
|
u have to check for button press during the loop in the autologin function that's why u can't stop it
DoUntill would work too
|
|
|
08/12/2010, 13:48
|
#9
|
elite*gold: 0
Join Date: May 2007
Posts: 7
Received Thanks: 0
|
ok i changed it up a little but still nothing. (changed to notepad just to fix loop)
whats wrong with this?:
Code:
#include <GUIConstants.au3>
#include <GUIConstantsEx.au3>
#include <GuiButton.au3>
#include <WindowsConstants.au3>
;#NoTrayIcon
GUICreate("Enter", 160, 120)
$button1 = GUICtrlCreateButton("Enter Press On", 10, 10, 90, 50)
$button2 = GUICtrlCreateButton("Enter Press Off", 10, 60, 90, 50)
$enter = 0
GUISetState(@SW_SHOW)
While 1
$msg = GUIGetMsg()
Select
Case $msg = $GUI_EVENT_CLOSE
ExitLoop
Case $msg = $button1
$enter = 1
case $msg = $button2
$enter = 0
Case $enter = 1
Sleep(333)
If $msg = $button2 Then
$enter = 0
EndIf
if winactive("[CLASS:Notepad]") = 1 Then
send("{K}")
Else
controlsend("[CLASS:Notepad]","","","{K}")
EndIf
Sleep(3000)
EndSelect
WEnd
|
|
|
08/12/2010, 14:44
|
#10
|
elite*gold: 0
Join Date: Feb 2010
Posts: 373
Received Thanks: 64
|
u can use pause or OnEvent Mode
take a look at this
and this
|
|
|
Similar Threads
|
[Looking for..]AutoLogin-EnterPresser. Working with sjsro minimized
11/17/2009 - SRO Private Server - 8 Replies
logging to sjsro server takes lot of time. and i want to do something on my computer during logging into the server. and i need EnterPresser which can press enter when SRo is minimized and i'am for example watching films on youtube ;] please help me find any autologin which can do that!
thanks :pimp:
|
[Tool]EnterPresser/more clients at same time loggin
10/21/2009 - SRO PServer Guides & Releases - 30 Replies
Hi guys
i found this pretty good tool in an silkroad forum .. this tool is able to press enter .. he can press it in brackround or with more clients ... have fun
1. Start client/s
2. press scan
3. choose the client and choose the option hold enter
4. have fun
Download :
Uploaded
|
All times are GMT +1. The time now is 21:21.
|
|