Sign in to follow this  
Followers 0
W2lkm2n

Is it possible to prevent window creation by a specific process ?

8 posts in this topic

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 ?

Share this post


Link to post
Share on other sites



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?


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

#3 ·  Posted (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 by DicatoroftheUSA

Share this post


Link to post
Share on other sites

Dictator, wouldn't it be

ControlClick($sOKboxtitle, $sOKtext, "[TEXT:OK]")

?


Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

W2lkm2n,

I want to manipulate PokerStars

JLogan3o13 is quite right - please read the Forum Rules - particularly the bit about not discussing game automation - before you post again. Thread locked. :naughty:

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______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

 

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0