NiranjanAgrawal Posted June 28, 2010 Share Posted June 28, 2010 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 More sharing options...
Moderators Melba23 Posted June 28, 2010 Moderators Share Posted June 28, 2010 NiranjanAgrawal,i am unable to get the notification of that pop up windowWhat have you tried? What does the Window Info tool tell you about the pop-up window and its button? If you offer no clues, we cannot offer any help! 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...
NiranjanAgrawal Posted June 28, 2010 Author Share Posted June 28, 2010 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? If you offer no clues, we cannot offer any help! M23 Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted June 28, 2010 Moderators Share Posted June 28, 2010 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 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...
NiranjanAgrawal Posted June 28, 2010 Author Share Posted June 28, 2010 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?M23sir,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 More sharing options...
Moderators Melba23 Posted June 28, 2010 Moderators Share Posted June 28, 2010 NiranjanAgrawal,I think you have misunderstood my question. 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. 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 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...
NiranjanAgrawal Posted June 30, 2010 Author Share Posted June 30, 2010 NiranjanAgrawal,I think you have misunderstood my question. 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. 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?M23No 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 More sharing options...
Moderators Melba23 Posted June 30, 2010 Moderators Share Posted June 30, 2010 NiranjanAgrawal,OK, if there are no other windows with that class, we can use this code to detect the presence of your popup: 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. 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. Have patience, we are getting there! 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...
Mat Posted June 30, 2010 Share Posted June 30, 2010 While Not WinExists("[CLASS:QTool"]") Sleep(10) WEnd MsgBox(0,"Found", "Found the QTools popup!") HA! Gotcha. Are we even now? While Not WinExists("[CLASS:QTool]") Sleep(10) WEnd MsgBox(0,"Found", "Found the QTools popup!") AutoIt Project Listing Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted June 30, 2010 Moderators Share Posted June 30, 2010 Mat, In your dreams! (Or perhaps in mine? ) 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...
Mat Posted June 30, 2010 Share Posted June 30, 2010 Mat, In your dreams! (Or perhaps in mine? ) M23 Wait... Or is it me winning? WinWait("[CLASS:QTool]") MsgBox(0,"Found", "Found the QTools popup!") AutoIt Project Listing Link to comment Share on other sites More sharing options...
NiranjanAgrawal Posted July 1, 2010 Author Share Posted July 1, 2010 NiranjanAgrawal, OK, if there are no other windows with that class, we can use this code to detect the presence of your popup: 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. 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. Have patience, we are getting there! M23 thnx a lot sir 4 the code... 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... HELP!!! Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted July 1, 2010 Moderators Share Posted July 1, 2010 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. M23P.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. 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...
NiranjanAgrawal Posted July 1, 2010 Author Share Posted July 1, 2010 oops..sorry sir for the inconvinience... 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 More sharing options...
Moderators Melba23 Posted July 1, 2010 Moderators Share Posted July 1, 2010 NiranjanAgrawal, I am afraid I know nothing about networks, so my help will have to stop here. Sorry. 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
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 accountSign in
Already have an account? Sign in here.
Sign In Now