Jump to content

Need script for...


Roki
 Share

Recommended Posts

There are radio 1,2,3,4,5 and 6, and button_1, 3 inputs and 1 list.

Now i need help:

First he need to check radio (he need to check one radio of 1,2,3,4,5,6) then he write something to input1 then input2 then 3, and then he press button_1, and after that, he send info to list_1.

For ex:

|radio1_______|_______radio4__________|

|radio2_______|_______radio5_X________|

|radio3_______|_______radio6__________|

input_1: Hey

input_2: Every

input_3: one!

BUTTON_1

Now i check radio 5, and i write something on every input, now i press Button_1, and then he send that info to List_1

LIST_1

_________________________

|radio_5;hey;every;one!______|

|________________________|

|________________________|

|________________________|

|________________________|

And u see now? When i press button 1 he send that info there so we can see that? Any script for that please?

Link to comment
Share on other sites

Not exactly sure what you want here, is what you describe here an existing program you want to automate or one you wish to create?

Have a look in the help file for ControlClick and ControlCommand. There are some tutes in my sig for more information. If you can try to put a rough layout of your code up I might be able to help more, provide the functions or fill in some gaps.

Post your code because code says more then your words can. SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y. Use Opt("MustDeclareVars", 1)[topic="84960"]Brett F's Learning To Script with AutoIt V3[/topic][topic="21048"]Valuater's AutoIt 1-2-3, Class... is now in Session[/topic]Contribution: [topic="87994"]Get SVN Rev Number[/topic], [topic="93527"]Control Handle under mouse[/topic], [topic="91966"]A Presentation using AutoIt[/topic], [topic="112756"]Log ConsoleWrite output in Scite[/topic]

Link to comment
Share on other sites

  • Moderators

Roki,

I need help whit my script

Please post the script you have produced to date so we can help you. :D

When you do post, please use Code tags so that it displays correctly. Put [autoit ] before and [/autoit ] after the code (but omit the trailing space - it is only there so the tags display here).

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

Roki,

Please post the script you have produced to date so we can help you. :D

When you do post, please use Code tags so that it displays correctly. Put [autoit ] before and [/autoit ] after the code (but omit the trailing space - it is only there so the tags display here).

M23

Allright there's script, u can try it and if u can script that???

#include <GUIconstants.au3>


Opt("GUICoordMode", 1)

GUICreate("Tibia Mega MageBomb", 400,280)
GUISetBkColor (0xE0454545)
; Create the controls
$button_1 = GUICtrlCreateButton ("Add", 30, 20, 60, 30)
$button_2 = GUICtrlCreateButton ("Delete", 30, 50, 60, 30)
GUIStartGroup()
$button_3 = GUICtrlCreateButton ("Login", 100, 20, 60, 30)
$button_4 = GUICtrlCreateButton ("Logout", 100, 50, 60, 30)
$group_1 = GUICtrlCreateGroup ("Runes", 30, 90, 165, 160)
GUIStartGroup() ; creates the grouped radio controls.
$radio_1 = GUICtrlCreateRadio ("SD Rune", 50, 120, 70, 20) ; in Quotes, the &0, creates an under-lined 0.
$radio_2 = GUICtrlCreateRadio ("HMM Rune", 50, 150, 60, 20)
$radio_3 = GUICtrlCreateRadio ("LMM Rune", 50, 180, 60, 20)
$radio_4 = GUICtrlCreateRadio ("ICI Rune", 120, 120, 70, 20)
$radio_5 = GUICtrlCreateRadio ("UH Rune", 120, 150, 60, 20)
$radio_6 = GUICtrlCreateRadio ("IH Rune", 120, 180, 60, 20)
GUIStartGroup()
$input_1 = GUICtrlCreateInput ("Account Name", 200, 20, 160, 30)
$input_2 = GUICtrlCreateInput ("Password", 200, 60, 160, 30)
$input_3 = GUICtrlCreateInput ("Character Name", 200, 100, 160, 30)
GUIStartGroup()
$hListBox = GUICtrlCreateList ( "", 200, 140, 160, 120) 
    
; Set the defaults (radio buttons clicked, default button, etc)


; Initiate our variables that we will use to keep track of radio events.
$radioval1 = 1    ; We will assume 0 = first radio button selected, 2 = last button.

GUISetState ()

; In this message loop we use variables to keep track of changes to the radios, another
; way would be to use GUICtrlRead() at the end to read in the state of each control.  
; Both methods are equally valid.

While 1
   $msg = GUIGetMsg()
   Select
      Case $msg = $GUI_EVENT_CLOSE
         Exit
         
      Case $msg = $button_1
         MsgBox(0, "SD", "SD" & $radioval1 & @LF & GUICtrlRead($input_1) & @LF & GUICtrlRead($input_2) & @LF & GUICtrlRead($input_3))
        
        ProgressOn("Mega MageBomb", "Loading...", "0 percent")

For $i = 10 to 100 step 10
    sleep(100) ; wait time.
    ProgressSet( $i, $i & " percent") ; set the progress meter to the variable $i.
Next
ProgressSet(100 , "Done", "Complete") ; when the loop is complete, set the progress meter to 100 percent.
sleep(100) ; wait a half of a second.
ProgressOff() ; close the progress meter.

      Case $msg = $radio_1 OR $msg = $radio_2 OR $msg = $radio_3
         $radioval1 = $msg - $radio_1
         
      Case $msg = $radio_4 OR $msg = $radio_5 OR $msg = $radio_6
         $radioval1 = $msg - $radio_4


   EndSelect
WEnd
Link to comment
Share on other sites

I was just about to link back to your other post you made on this yesterday...

linkie

*edit* no one here is going to help you cheat, steal or otherwise break the rules of a game or other software set forth by their eula.

Edited by kaotkbliss

010101000110100001101001011100110010000001101001011100110010000

001101101011110010010000001110011011010010110011100100001

My Android cat and mouse game
https://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek

We're gonna need another Timmy!

Link to comment
Share on other sites

I was just about to link back to your other post you made on this yesterday...

linkie

*edit* no one here is going to help you cheat, steal or otherwise break the rules of a game or other software set forth by their eula.

I'm sorry. But i just tought someone will help me..
Link to comment
Share on other sites

  • Moderators

Roki,

Understand that we will NOT knowingly help you break the ToS of anything at all. :D

Now, please do not start yet another thread on this - or you are likely to find you can no longer post. :huggles:

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

I will say that this project can easily be done using the help file

some things to look at

guictrlread

and

guictrlsetdata

other gui commands

010101000110100001101001011100110010000001101001011100110010000

001101101011110010010000001110011011010010110011100100001

My Android cat and mouse game
https://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek

We're gonna need another Timmy!

Link to comment
Share on other sites

  • Developers

Don't know rlly what's problem of that to give me just that damn script...but >.>

Not acceptable... you will have now 4 days to think about it and to come to the conclusion how to behave.

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...