Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Silkroad Online
You last visited: Today at 04:59

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

Advertisement



[HELP] Visual Basic Keystrokes to Minimized Windows.

Discussion on [HELP] Visual Basic Keystrokes to Minimized Windows. within the Silkroad Online forum part of the Popular Games category.

Reply
 
Old   #1
 
theoneofgod's Avatar
 
elite*gold: 20
Join Date: Mar 2008
Posts: 3,940
Received Thanks: 2,198
[HELP] Visual Basic Keystrokes to Minimized Windows.

Sorry If this is in the wrong forum, but I know some of you are quite knowledgeable in this subject.

I've been making scripts for personal use with AutoIt lately, but I have encountered many issues sending simulated keystrokes to a window that isn't visible.

Right, I know that ControlSend will send any keystroke with the handle. I can do this, no problem. But I have issues with the keystrokes being sent to other editable text boxes, like this thread for example, this really does stop the script working correctly.

The scripts are for SRO for buffing a Wizard character, while AFK, (sleeping) etc, it works good most of the time but I need a more advanced language that will send it to that window only, more precise?

I've been googling a lot lately but still a bit confused as to where to start.

Help will be appreciated and thanked appropriately
theoneofgod is offline  
Old 03/29/2009, 21:55   #2
 
elite*gold: 0
Join Date: Nov 2007
Posts: 236
Received Thanks: 17
You wanna do this when silkroad is minimized ?
daniellook is offline  
Old 03/29/2009, 23:25   #3
 
theoneofgod's Avatar
 
elite*gold: 20
Join Date: Mar 2008
Posts: 3,940
Received Thanks: 2,198
Quote:
Originally Posted by daniellook View Post
You wanna do this when silkroad is minimized ?
Yes.
theoneofgod is offline  
Old 03/30/2009, 08:20   #4
 
elite*gold: 0
Join Date: Nov 2007
Posts: 236
Received Thanks: 17
cant help you then
I can only help you if client isn,t minimized
daniellook is offline  
Old 03/31/2009, 19:55   #5
 
IRever's Avatar
 
elite*gold: 0
Join Date: Nov 2007
Posts: 575
Received Thanks: 73
Why do you want it to be sent to a textbox if it's only for pressing a slot?
Also does it matter in wich language it is?
IRever is offline  
Old 03/31/2009, 20:02   #6
 
theoneofgod's Avatar
 
elite*gold: 20
Join Date: Mar 2008
Posts: 3,940
Received Thanks: 2,198
Quote:
Originally Posted by IRever View Post
Why do you want it to be sent to a textbox if it's only for pressing a slot?
Also does it matter in wich language it is?
in autoit i need a control id for it to work, i only know of edit1, nothing else works.
theoneofgod is offline  
Old 03/31/2009, 20:21   #7
 
IRever's Avatar
 
elite*gold: 0
Join Date: Nov 2007
Posts: 575
Received Thanks: 73
Sorry, but I don't fully understand you.
IRever is offline  
Old 03/31/2009, 22:08   #8
 
theoneofgod's Avatar
 
elite*gold: 20
Join Date: Mar 2008
Posts: 3,940
Received Thanks: 2,198
About the language, I just wanted to try something more reliable, stable?

Well I use WinGetHandle with Autoit to find the hwnd to send the keystrokes to, but you also need a control ID. Example:

Code:
$hwnd=WinGetHandle("Babel - Character")
ControlSend($hwnd,"","Edit1","type your string here")
title, text, control ID, string.

I can't seem to find another way of sending keystrokes without having Edit1 as the control Id, but seeing as it sounds like editing a textbox? editable text? it interferes with other programs I use for whatever reason.

I need my script to only send keystrokes to the game just for the belts, without messing with anything else, sounds very possible, just can't figure it out.

EDIT: Also, It is possible to send mouse clicks to SRO while minimized.
theoneofgod is offline  
Reply


Similar Threads Similar Threads
Visual C++ (C++), Visual Basic, oder AutoIT?
06/24/2010 - .NET Languages - 11 Replies
Hallo Zusammen Ich würde gerne mit dem Programmieren anfangen. Meine Vorstellungen: Es müsste möglich sein, eigene Programme zu schreiben wie z. B. MSN, Emule oder ähnliches. Natürlich nie in dieser Grösse nur als Beispiel. Als weiteres sollte mit der gleichen Programmiersprache auch die Möglichkeit bestehen einen WoW Bot zu schreiben. Habe gehört die meisten Bots sind in Auto IT geschrieben. Gibt es unterschiede wegen des Warden schutzes oder kommt es nicht darauf an?
Visual Basic.NET
03/27/2010 - Coding Tutorials - 1 Replies
Kann mal jemand ein Tutorial machen, oder mir per pn etwas schicken für folgendes problem: ich möchte mit vb ein paket(datenpaket) versenden, wenn ich ein paket(z.b. mit testtext) erhalten habe. zuerst werte ich das paket mit wireshark aus. Kann mir da jemand helfen, wie man da so etwas macht?
Using macros in minimized windows
06/09/2008 - RF Online - 1 Replies
Just wondering if it is possible to let a macro run in minimized windows, would be usefull for loot bot on same pc and when i'm working I don't have to keep alt tabbing everytime to buff etc ty



All times are GMT +2. The time now is 04:59.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.