Jump to content

no works keys through guils (Sorry)


Sokete
 Share

Recommended Posts

sorry for not read the rules aver wanted to ask how to make antler f8 f1 and f2'm doing a program with guild and some input for the delay and when I pressed the button that scrips run the problem is that I only run one single execution or is 1 single function and not send the other functions because it's like running one single scrips

I creear program uses 8 buttons and 8 input shaft F1 F8

but if I put for example

$ Button1 = GUICtrlCreateButton ("F1', 8, 8, 105, 25)

GUICtrlSetOnEvent (-1, "Button1Click")

$ INPUT4 = GUICtrlCreateInput ("INPUT4", 248, 72, 25, 21)

GUICtrlSetOnEvent (-1, "Input4Change")

$ Button2 = GUICtrlCreateButton ("F2", 216, 40, 25, 25)

GUICtrlSetOnEvent (-1, "Button2Click")

$ Input3 = GUICtrlCreateInput ("Input3", 248, 40, 25, 21)

GUICtrlSetOnEvent (-1, "Input3Change")

func Button1Click()

while 1

ControlSend ("", "", "", "{F6}")

Sleep (GUICtrlRead ($ INPUT4) * 1000)

when

EndFunc

Func Button2Click()

while 1

ControlSend ("", "", "", "{F4}")

Sleep (GUICtrlRead ($ Input3) * 1000)

WEnd

EndFunc

If squeezed in button 1 goes if squeezed in the second button executes no action goes not think I'm doing wrong in using GUICtrlSetOnEvent or I'm wrong sorry I'm new in AutoIt

sorry if you do not understand the question speak Spanish and use google translator

Thanks and sorry for bothering

Link to comment
Share on other sites

  • Moderators

Sokete,

Read those Forum Rules to which I linked - we do not support game bots. Ask again and you will be removed from the forum. :naughty:

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

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

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