Sign in to follow this  
Followers 0
skitt

automated vent comment

6 posts in this topic

#1 ·  Posted (edited)

trying to make a simple server check, then report results in ventrilo comment, but its not working (obviously as im posting here).

HotKeySet('{esc}', '_Exit')

While 1
$var_3 = Msgbox(1,"login checker", "check login")
if $var_3 = 1 then
$var = Ping ("93.174.93.179")
$var_2 = Winactive("Ventrilo")
    if $var >= 0 then 
    WinActivate("Ventrilo", "Comment")
    Winwaitactive("Ventrilo")
    
    ControlSend("Ventrilo", "Comment","[CLASS:Button; INSTANCE:5]", "Comment")
    Winwaitactive("Comment - Advanced ")
    Send("Login = up")
    sleep 200
    Controlsend("Comment - Advanced","[CLASS:Button;INSTANCE:2]","OK")
    
    elseif $var = 0 then 
    WinActivate("Ventrilo", "Comment")
    Winwaitactive("Ventrilo")
    ControlSend("Ventrilo", "Comment","[CLASS:Button; INSTANCE:5]", "Comment")
    Winwaitactive("Comment - Advanced ")
    Send("Login = down")
    sleep 200
    Controlsend("Comment - Advanced","[CLASS:Button;INSTANCE:2]","OK")
    Endif
endif
WEnd

func _Exit()
    sleep(100)
    Exit
EndFunc
Edited by skitt

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

dono why its not working

dono if your using Controlsend like it shud becose your refering to button

Controlsend("Comment - Advanced","[CLASS:Button;INSTANCE:2]","{ENTER}")
or
Controlsend("Comment - Advanced","[CLASS:Button;INSTANCE:2]","{SPACE}")

and this dont make any sense

if $var >= 0 then 
elseif $var = 0 then

probably

if $var > 0 then 
elseif $var = 0 then

edit:

you did not write what sint working? whot part of the script you have problems with?

Edited by bogQ

TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
There are those that believe that the perfect heist lies in the preparation.
Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost.

 

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Ya, its supposed to switch windows to vent, which i would rather make it do all of this in the background, then its, SUPPOSED, to hit the comment button, which in window info was instance 5, but instead it DCed me from the vent server, i guess pressing the disconnect button? I'm still a bit unsure on the controlsend func.

if $var >= 0 then 
elseif $var = 0 then

probably

if $var > 0 then 
elseif $var = 0 then
I used >= 1 before, but like an idiot i changed it to 0, and yes, thats another problem with the code. Edited by skitt

Share this post


Link to post
Share on other sites

I'm still a bit unsure on the controlsend func.

try with

ControlClick :D


TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
There are those that believe that the perfect heist lies in the preparation.
Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost.

 

Share this post


Link to post
Share on other sites

try with

ControlClick :D

doesnt that just click at a certain position on the computer? thats kind what i didn't want to do.

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

doesnt that just click at a certain position on the computer? thats kind what i didn't want to do.

i think that its better then trying to send with controlsend click on button

example:

ControlClick ("Ventrilo", "Comment","[CLASS:Button; INSTANCE:5]")

Controlsend("Comment - Advanced ","[CLASS:xxxxx-or whats the class tupe]","Login = down")

edit:

mouseclick click certain position on the computer

ControlClick only preform click on control, try example in help file.

Edited by bogQ

TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
There are those that believe that the perfect heist lies in the preparation.
Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost.

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0