Sign in to follow this  
Followers 0
Seagul

Gui that sends messages at entered interval and or random to irc

2 posts in this topic

#1 ·  Posted (edited)

Basically I am trying to make something that post a message id to irc add list of post through drop down or import from text. I very basically though of this idea hour ago, need help I've been trying to do it via controls which you have to have the irc window open. im very new to the gui..

;; Well I figured out that putting controlfocus before controlsend completely messes it up... this works so far to post message to irc minimized.

;edit 4am;Figured I should get it working first then make a gui got it where it reads the ads randomly out of file but I don't really want it pull same ad twice in row.

Opt("WinWaitDelay", 100)
Opt("WinTitleMatchMode", 4)
Opt("WinDetectHiddenText", 1)
Opt("MouseCoordMode", 0)

Dim $Ad,$IM,$IRC

$IRC = "mIRC"
$IM = "/echo : Test AD :| "
$file = FileOpen("ads.txt", 0)
$Ad = FileReadLine($file, Random(1, 8, 1))

ControlSend($IRC, "", "Edit1", $IM & $Ad & "{Enter}{Enter}")

;FileWriteLine($file, "this is advertisement one" & @CRLF) use this later with gui
FileClose($file)

GUI Checklist

textbox for ID ;the one to messages in irc

listbox for messages

interval or time for messages

send button / pause.

exit

Edited by Seagul

Share this post


Link to post
Share on other sites



I'm not sure exactly what you're asking for, but the first thing I see is that you are using FileOpen wrong (at least if you are going to write to the file). You will have to close the file then reopen it using FileOpen("ads.txt", 2) so that you can write to it.


[font="Verdana"] [size="2"]"[/size][/font]Failure is not an option -- it comes packaged with Windows"[font="Verdana"][size="2"] Gecko Web Browser[/size][/font][font="Verdana"][size="2"], [/size][/font][font="Verdana"][size="2"]Yahtzee![/size][/font][font="Verdana"][size="2"], Toolbar Launcher (like RocketDock)[/size][/font][font="Verdana"][size="2"]Internet Blocker, Simple Calculator, Local Weather, Easy GDI+ GUI [/size][/font][font="Verdana"][size="2"]Triangle Solver, TCP File Transfer, [/size][/font][font="Verdana"][size="2"]Valuater's Autoit Wrappers[/size][/font][font="Verdana"][size="3"][size="2"][size="2"]OOP In AutoIt[/size][/size][/size][/font][font="Verdana"][size="2"][size="1"]Using Windows XP SP3, 1GB RAM, AMD Athlon Processor @ 2.1 GHzCheck me out at gadgets.freehostrocket.com[/size][/size][/font]

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