rony2006 Posted August 23, 2013 Share Posted August 23, 2013 (edited) Hello, i am very beginner in Autoit and i have a simple problem. I created a script that use "ControlSend" function but i have a problem with the program were i need to automaticaly type text. $result = _ImageSearchArea("2s.bmp",1,960,200,1050,255,$x1,$y1,110) if $result=1 Then ControlSend("PokerStove - [PStove1]","","[CLASS:Edit; INSTANCE:2]","2s") EndIf $result = _ImageSearchArea("3s.bmp",1,960,200,1050,255,$x1,$y1,110) if $result=1 Then ControlSend("PokerStove - [PStove1]","","[CLASS:Edit; INSTANCE:2]","3s") EndIf When _ImageSearchArea founds .bmp image then i need the name of that image to be typed in a textbox from a software called PokerStove. All things are working right, the only problem is that after the script send the keys to the textbox, the software (pokerstove) dont want to work. But the interesting fact is that if i manually input the EXACTLY same text (key stroke) in the PokerStove, then when i hit the evaluate button the software works. I tried to add Opt('SendKeyDelay', 250); but the result is the same, even if the typing is more slowly. I dont know what to do, maybe i need to put something at the end of code. Thank you. Pokerstove software: http://www.4shared.com/file/UYY6hrGG/PokerStove_124.html and my script is made only from this kind of text: $result = _ImageSearchArea("3s.bmp",1,960,200,1050,255,$x1,$y1,110) if $result=1 Then ControlSend("PokerStove - [PStove1]","","[CLASS:Edit; INSTANCE:2]","3s") EndIf Edited August 23, 2013 by rony2006 Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted August 24, 2013 Moderators Share Posted August 24, 2013 rony2006,It looks ot me as if you are trying to identify cards from within a poker game and then entering their value into Pokerstove to assess the odds. Please read the Forum rules (there is also a link at bottom right of each page) and make sure you follow them in future. Thread locked. M23 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 columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Recommended Posts