Jump to content

Popup window problem


Recommended Posts

Hello everyone...

i have a problem with autoit..

when my code executes a window gets popped up..and on that window i hav to click on a button through autoit...but i am unable to get the notification of that pop up window...how could i get the notification for that window..??

any one knows the answer..please help me

thanx in advance..!!

Link to comment
Share on other sites

  • Moderators

NiranjanAgrawal,

i am unable to get the notification of that pop up window

What have you tried? What does the Window Info tool tell you about the pop-up window and its button? :mellow:

If you offer no clues, we cannot offer any help! :P

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

thnx a lot sir for ur reply..

sir,auto info tool jst give me the name of the class that window belongs to...the name is QTool...thats all..and where ever v drag the cursor on that window same thing displays...what to do sir..?

NiranjanAgrawal,

What have you tried? What does the Window Info tool tell you about the pop-up window and its button? :mellow:

If you offer no clues, we cannot offer any help! :P

M23

Link to comment
Share on other sites

  • Moderators

NiranjanAgrawal,

Is this the only "QTool" class window on your desktop? If not, is it always the same size? Does it always have the same text on it?

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

NiranjanAgrawal,

Is this the only "QTool" class window on your desktop? If not, is it always the same size? Does it always have the same text on it?

M23

sir,when the focus is on the dsktop nt on the pop-up window then the class is sumthing else...not the QTool...bt when the focus is on the window then wherver u move the cursor in the range of that window only QTool is displayed along with the position where v mouve the cursor....
Link to comment
Share on other sites

  • Moderators

NiranjanAgrawal,

I think you have misunderstood my question. :mellow: Here it is again:

Are there any other windows on your desktop which also have the "QTool" class? If not, then we can use that class name to identify the pop-up. :P

If there are some other "QTool" class windows on your desktop, then we need something to distinguish this particular one - like a title, some text, its size, its location...... So if there are other "QTool" class windows - what makes this one different?

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

NiranjanAgrawal,

I think you have misunderstood my question. :mellow: Here it is again:

Are there any other windows on your desktop which also have the "QTool" class? If not, then we can use that class name to identify the pop-up. :P

If there are some other "QTool" class windows on your desktop, then we need something to distinguish this particular one - like a title, some text, its size, its location...... So if there are other "QTool" class windows - what makes this one different?

M23

No sir..there are no other windows in the desktop that has the same class...i have tried the code for that also...but it didn't run...

sir,i wud b highly grateful if you could tell me the way to frame the code..

thanks a lot for your reply...

Link to comment
Share on other sites

  • Moderators

NiranjanAgrawal,

OK, if there are no other windows with that class, we can use this code to detect the presence of your popup: :P

While Not WinExists("[CLASS:QTool"]")
    Sleep(10)
WEnd
MsgBox(0,"Found", "Found the QTools popup!")

Now we should be able to identify the window when it appears.

Is there any other information given in the Window Info tool when you are over the QTool popup? If you open the "Summary" tab when over the button you want to press, do you have any control class, or text, or anything at all, shown. :mellow:

If there is absolutely nothing indicated in the Window Info tool then please put the crosshairs over the top-left corner of the pop-up and read the position given under the "Mouse" tab. Then do the same for the top-left and bottom-right corners of the button you want to press. Once we have those coordinates we can work out where to click the mouse to hit the button. :party:

Have patience, we are getting there! :party:

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

  • Moderators

Mat,

In your dreams! :mellow:

(Or perhaps in mine? :P )

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

NiranjanAgrawal,

OK, if there are no other windows with that class, we can use this code to detect the presence of your popup: :P

While Not WinExists("[CLASS:QTool"]")
    Sleep(10)
WEnd
MsgBox(0,"Found", "Found the QTools popup!")

Now we should be able to identify the window when it appears.

Is there any other information given in the Window Info tool when you are over the QTool popup? If you open the "Summary" tab when over the button you want to press, do you have any control class, or text, or anything at all, shown. :mellow:

If there is absolutely nothing indicated in the Window Info tool then please put the crosshairs over the top-left corner of the pop-up and read the position given under the "Mouse" tab. Then do the same for the top-left and bottom-right corners of the button you want to press. Once we have those coordinates we can work out where to click the mouse to hit the button. :party:

Have patience, we are getting there! :party:

M23

thnx a lot sir 4 the code... :party:

bt this code give the correct result when it is first time runned...i mean when the popup window is not pop-up...first time i runned the code it runned properly pausing the script..bt as soon as window gets popped up it still remains paused...one more thing after the script execution is stop and run the script again after the window is popped-up then it gives the correct message...if now the window is closed and the script is again runned then also the message "QTool found" is coming...it should not come as the window is closed now... :party:

HELP!!!

Link to comment
Share on other sites

  • Moderators

NiranjanAgrawal,

It is difficult just offering snippets of code when I do not know where they will fit in the code you are trying to run. Please post your script so I make more useful comments.

When you post your code please use Code tags. Put [autoit ] before and [/autoit ] after your posted code (but omit the trailing space - it is only there so the tags display here). Or press the blue button just under the BOLD toolbar button. :mellow:

M23

P.S. When you reply please use the "Add Reply" button at the top and bottom of the page rather then the "Reply" button in the post itself. That way you do not get the contents of the previous post quoted in your reply and the whole thread becomes easier to read. :P

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

oops..sorry sir for the inconvinience... :mellow:

actually sir,what i am trying to do is..my main code is on one system and i am trying to establish the connection with the other..basically i am doing network programming..so when my code(on one system)executes,in the other system a call is generated in the form of pop up window...i have to click on the receiver button of that call through autoit script...and this autoit script is made on the other system where call is generated...so it has got mo relation with the main code...

this is what i am trying to do...

What to do?

Link to comment
Share on other sites

  • Moderators

NiranjanAgrawal,

I am afraid I know nothing about networks, so my help will have to stop here. Sorry. :mellow:

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

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