Register for your free account! | Forgot your password?

You last visited: Today at 21:20

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



autoit enterpresser

Discussion on autoit enterpresser within the SRO Private Server forum part of the Silkroad Online category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: May 2007
Posts: 7
Received Thanks: 0
Question 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
Tweek is offline  
Old 08/11/2010, 23:54   #2
 
DarkestxHour's Avatar
 
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
DarkestxHour is offline  
Old 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.
Tweek is offline  
Old 08/12/2010, 00:26   #4
 
DarkestxHour's Avatar
 
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)
DarkestxHour is offline  
Old 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.
Tweek is offline  
Old 08/12/2010, 00:50   #6
 
DarkestxHour's Avatar
 
elite*gold: 0
Join Date: Feb 2010
Posts: 373
Received Thanks: 64
Quote:
Originally Posted by Tweek View Post
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
DarkestxHour is offline  
Old 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 :/
Tweek is offline  
Old 08/12/2010, 12:31   #8
 
DarkestxHour's Avatar
 
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
DarkestxHour is offline  
Old 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
Tweek is offline  
Old 08/12/2010, 14:44   #10
 
DarkestxHour's Avatar
 
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
DarkestxHour is offline  
Reply


Similar Threads 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.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.