
Tick
Active Members-
Posts
20 -
Joined
-
Last visited
Recent Profile Visitors
122 profile views
Tick's Achievements

Seeker (1/7)
0
Reputation
-
Hello! I have the same problem. At first, I fought to make the script itself work when the screen was locked, and achieved this. Now, with the help of a telegram bot, I send a text message and a screenshot at the right time and a screenshot. In this case, the text is sent correctly, but the screenshot is sent black. It's funny that when I take a screenshot of only the desired window, its dimensions are determined correctly, but the content remains black.
-
Tick reacted to a post in a topic: Controlclick on Zbutton?
-
Tick reacted to a post in a topic: Controlclick on Zbutton?
-
https://www.autoitscript.com/wiki/FAQ#Why_doesn.27t_my_script_work_on_a_locked_workstation.3F With some difficulty I got my script to work even the screen is locked. Now I am trying to expand the functionality. The controlclick command succeeds even if the screen is locked, but exceptions are thrown in some cases.
-
There are several zbutton buttons on the window of the application I am trying to control. Some of them I can easily click with a controlclick command, and some do not respond, but no error is returned. At the same time, the mouseclick command works with it. Opt("WinSearchChildren", 1) Opt("WinTitleMatchMode", 2) $hWnd=WinGetHandle ("Order Ticket") ControlClick($hWnd,"","[CLASS:ZButton; INSTANCE:13]");working ControlClick($hWnd,"","[CLASS:ZButton; INSTANCE:22]"); not working MouseClick("left",617,742);working Are there any other ways to hit the button? How can I press the desired button even if the window is resized? I am trying to use controlclick to make the script work even on a locked screen ... Thanks..
-
Tick reacted to a post in a topic: Activation, selection of child windows
-
Activation, selection of child windows
Tick replied to Tick's topic in AutoIt General Help and Support
Thanks, Pixelsearch! I really don't know why it doesn't work in my case. I tried your script, and of course everything works fine on the newly created elements. But in an external program, I cannot select the desired window using selects. Nine's version works great. -
Activation, selection of child windows
Tick replied to Tick's topic in AutoIt General Help and Support
Thank you very much! I would never have guessed! :):) Of cource it works. -
Tick reacted to a post in a topic: GUICtrlMenuClick
-
The main program window can have several child (MDIClient) windows for different purposes. The content of the main menu items depends on which of the windows is active. How to choose one of the child windows correctly? Opt("WinSearchChildren", 1) Opt("WinTitleMatchMode", 2) $hWnd=WinGetHandle ("GW:"); The part of the window name that I want to select WinActivate($hWnd) ; does not work, other child window still active MsgBox(0,"",WinGetTitle($hWnd)); the full name of the desired window is displayed This is not working in my case, desired window is not selected. WinActivate($hWnd, "GW:") not working too.. Autoit window info shows CLASS:MDIClient; INSTANCE:2; ID:65283, and Instance and ID value is not constant. When I close several windows and reopen the desired window, they may become different values. Only the title of the window is always the same. I found a way, but think it is not quite correct: $hWnd=WinGetHandle ("GW:") WinSetState($hWnd, "", @SW_MINIMIZE) WinSetState($hWnd, "", @SW_SHOWDEFAULT) the window is simply minimized and then restored, becoming active as I want. But it is not user friendly. I am sure there is a better solution. Please help me find it!
-
Tick reacted to a post in a topic: How to select (click) the pop-up menu item, when the screen is locked?
-
Tick reacted to a post in a topic: How to select (click) the pop-up menu item, when the screen is locked?
-
Thank you so much InnI - your script is working great in my case!!! But for some reason, on the first try, I just got the menu bar I needed highlighted but not pressed. I just added another command _MouseLeftClick next, and it worked. I think this is some kind of specially introduced difficulties, only this menu in the program for some reason does not allow the cursor to move through the menu items. In any case, I am very grateful, I myself would not have been able to get such a result.
-
Tick reacted to a post in a topic: How to select (click) the pop-up menu item, when the screen is locked?
-
Tick reacted to a post in a topic: How to select (click) the pop-up menu item, when the screen is locked?
-
Tick reacted to a post in a topic: How to select (click) the pop-up menu item, when the screen is locked?
-
Tick reacted to a post in a topic: How to select (click) the pop-up menu item, when the screen is locked?
-
I've found the manual)) https://www.autoitscript.com/wiki/FAQ#Why_doesn.27t_my_script_work_on_a_locked_workstation.3F They says that I must use ControlClick or WinmenuSelectItem. But I can't understand, how to controlclick on menu element, and WinmenuSelectItem is not work. _UIA_ElementDoDefaultAction also not working on locked screen((
-
Thanks pixelsearch, LarsJ! pixelsearch, I think your method is working in common, but not in my case - there are no hotkeys in my menu and arrows are not working. LarsJ, I've make a try but with negative result( #include <GuiMenu.au3> #include <SendMessage.au3> $hWnd = WinWait("[class:#32768]") $hMenu = _SendMessage($hWnd, 0x01E1) MsgBox($MB_SYSTEMMODAL, '', _GUICtrlMenu_GetItemText($hMenu, 4) ,2) WinMenuSelectItem($hMenu, "", _GUICtrlMenu_GetItemText($hMenu, 4)) Messagebox shows correct menu item, but WinMenuSelectItem does not click. I've use UIAutomate and it works!! #include <UIAutomate.au3> #include <MsgBoxConstants.au3> Opt("WinSearchChildren", 1) Opt("WinTitleMatchMode", 2) ControlClick(WinGetHandle (" MAIN WINDOW"),"","[CLASS:AfxWnd140; INSTANCE:24]","left",1,2,2); - This string calling the menu $hWnd = WinWait("[class:#32768]") $oParent = _UIA_GetElementFromHandle($hWnd) $aElements = _UIA_FindAllElements($oParent, "ControlType", $UIA_MenuItemControlTypeId) _UIA_ElementMouseClick($aElements[4],"left",2,2,2,True); - click desired element ;_UIA_ElementDoDefaultAction($aElements[4]) - do the same thing But I found another problem When screen is locked - I still can not select the menu item. That Controlclick, which calling the menu - works even when the screen is locked, or even when I disconnected from remote desktop. That menu is shows on screen, but they both not working on locked screen This is so bad, because my computer must be unlocked all the time... Maybe you know, what to do to select menu item on locked screen? Maybe I must make the different topic, because original problem was solved?..
-
$hWnd=WinGetHandle ("Main window") ControlClick($hWnd,"[CLASS:AfxWnd140; INSTANCE:24]",1,1,1) This is not working.
-
the main window has a AfxWnd140 element. I can't figure out how to click on a specific place on this element. $hWnd = WinGetHandle("[CLASS:AfxWnd140; INSTANCE:24]") returns non-zero value. There are two buttons on it, but I can't see their parameters. I just want to click on a certain place inside. Thanks.
-
#include <GuiMenu.au3> #include <SendMessage.au3> $hWnd = WinWait("[class:#32768]") ;$hMenu = _GUICtrlMenu_GetMenu($hWnd) ;Not working, next line used $hMenu = _SendMessage($hWnd, 0x01E1) ; MN_GETHMENU - don't know how but it works )) For $i = 0 To _GUICtrlMenu_GetItemCount($hMenu) - 1 MsgBox($MB_SYSTEMMODAL, '', _GUICtrlMenu_GetItemText($hMenu, $i) ,2) ;Shows every item of one-level menu WinMenuSelectItem($hMenu, "", $i); does not click any of the menu items Next Hello dear experts! I can't figure out how to click on the menu item I need. Please help me figure it out.