W2lkm2n Posted December 21, 2012 Share Posted December 21, 2012 I have a program that when I use a specific functionality, it makes a message box containing one "Ok" button to let me now the action went succesful. This is very annoying, I would like to prevent these message boxes.I tought WinEvents might do that, but as I understand those are just notifications when the event occurs (for ex. EVENT_SYSTEM_DIALOGSTART).What is even more annoying in this software, that the parent window pops up from minimized state, so I can't automate it while it's minimized on the tray...Is there any way to prevent those messages boxes to pop up ? Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted December 21, 2012 Moderators Share Posted December 21, 2012 You can't even close the window with WinClose? That should allow you to close it regardless of state. What is the application you're trying to manipulate? "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
DicatoroftheUSA Posted December 21, 2012 Share Posted December 21, 2012 (edited) something like this should work You will need to adjust and clean it up. while 1 $sOKboxtitle="ok title";use the autoit window info tool to get. $sOKtext="OK text" if winexists($oOKboxtitle,$sOKtext) then controlclick($oOKboxtitle,$sOKtext,"OK") else sleep(30);fast, but wont eat CPU endif wend Edited December 21, 2012 by DicatoroftheUSA Statism is violence, Taxation is theft. Autoit Wiki Link to comment Share on other sites More sharing options...
Blue_Drache Posted December 21, 2012 Share Posted December 21, 2012 Dictator, wouldn't it be ControlClick($sOKboxtitle, $sOKtext, "[TEXT:OK]") ? Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache Link to comment Share on other sites More sharing options...
DicatoroftheUSA Posted December 21, 2012 Share Posted December 21, 2012 Dictator, wouldn't it be ControlClick($sOKboxtitle, $sOKtext, "[TEXT:OK]") ? http://www.autoitscript.com/autoit3/docs/intro/controls.htm, Looks like either way. I was just guessing on what may be seen from the window info tool. Statism is violence, Taxation is theft. Autoit Wiki Link to comment Share on other sites More sharing options...
W2lkm2n Posted December 22, 2012 Author Share Posted December 22, 2012 You can't even close the window with WinClose? That should allow you to close it regardless of state. What is the application you're trying to manipulate? Of course I can close it, but the whole window still pops up from the tray from minimized which is the most annoying part of it I want to manipulate PokerStars This happens on "Tournament Register". something like this should work You will need to adjust and clean it up. while 1 $sOKboxtitle="ok title";use the autoit window info tool to get. $sOKtext="OK text" if winexists($oOKboxtitle,$sOKtext) then controlclick($oOKboxtitle,$sOKtext,"OK") else sleep(30);fast, but wont eat CPU endif wend Thanks, I can do basic things, but I need an advanced way here to prevent popping up the parent window from minimized state, as I mentioned in OP. Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted December 24, 2012 Moderators Share Posted December 24, 2012 I want to manipulate PokerStars This happens on "Tournament Register".W2lkm2n, please review the forum rules, especially the portion regarding automation of games. You'll find why you will receive no assistance on this subject. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted December 24, 2012 Moderators Share Posted December 24, 2012 W2lkm2n,I want to manipulate PokerStarsJLogan3o13 is quite right - please read the Forum Rules - particularly the bit about not discussing game automation - before you post again. 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