Jump to content

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


W2lkm2n
 Share

Recommended Posts

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

  • Moderators

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

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
Link to comment
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.
Link to comment
Share on other sites

  • Moderators

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

  • Moderators

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

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...