Results 1 to 3 of 3
  1. #1
    mhhmmm's Avatar
    Join Date
    May 2020
    Gender
    male
    Posts
    4
    Reputation
    10
    Thanks
    0

    Issues with ControlClick

    Hi,

    I wrote a simple piece of code to delete the last item in the inventory of multiple accounts. I rebound "Inventory remove item" from M3 to right-click to make this easier for me. The code still doesn't work and I cant understand why, does anyone see the reason?

    Code:
    SetTitleMatchMode, 2
    WinGet, Hwnd_List, List , Trove
    
    LoopSend:
    	Loop, %Hwnd_List%
    	{
    		Hwnd := Hwnd_List%A_Index%
    		ControlClick ,, ahk_id %Hwnd%,, Left, 1, 1860 790,,  ; Click on the screen
    		Sleep, 2500
    		ControlClick ,, ahk_id %Hwnd%,, Right, 1, 1860 790,, ; Delete item 
    		Sleep, 2500
    		ControlClick ,, ahk_id %Hwnd%,, Left, 1, 875 485,,   ; Confirm delete
    		Sleep, 10000
    	}
    return
    
    Esc::ExitApp

  2. #2
    Tisako's Avatar
    Join Date
    Feb 2013
    Gender
    male
    Posts
    111
    Reputation
    10
    Thanks
    30
    My Mood
    Aggressive
    I see... I see... you need to open Spy ++ and see how the window processes your message.

  3. #3
    phj280600's Avatar
    Join Date
    Apr 2017
    Gender
    male
    Posts
    206
    Reputation
    10
    Thanks
    130
    My Mood
    Inspired
    Quote Originally Posted by mhhmmm View Post
    Hi,

    I wrote a simple piece of code to delete the last item in the inventory of multiple accounts. I rebound "Inventory remove item" from M3 to right-click to make this easier for me. The code still doesn't work and I cant understand why, does anyone see the reason?

    Code:
    SetTitleMatchMode, 2
    WinGet, Hwnd_List, List , Trove
    
    LoopSend:
    	Loop, %Hwnd_List%
    	{
    		Hwnd := Hwnd_List%A_Index%
    		ControlClick ,, ahk_id %Hwnd%,, Left, 1, 1860 790,,  ; Click on the screen
    		Sleep, 2500
    		ControlClick ,, ahk_id %Hwnd%,, Right, 1, 1860 790,, ; Delete item 
    		Sleep, 2500
    		ControlClick ,, ahk_id %Hwnd%,, Left, 1, 875 485,,   ; Confirm delete
    		Sleep, 10000
    	}
    return
    
    Esc::ExitApp
    My BackgroundClick functions: https://www.mpgh.net/forum/showthread.php?t=1502039
    They allow you to click while Trove is not focused.
    Or as @Tisako suggested use Spy++ to make your own
    Last edited by phj280600; 08-27-2020 at 10:25 AM.

Similar Threads

  1. Issues with hacks
    By Pew_Pew_U_Dead in forum Combat Arms Help
    Replies: 2
    Last Post: 01-16-2010, 11:52 AM
  2. I have issues with WinRar
    By Lemon. in forum Call of Duty Modern Warfare 2 Help
    Replies: 0
    Last Post: 12-04-2009, 03:25 PM
  3. Encountering an Issue with the Public Hack
    By inxeble in forum CrossFire Hacks & Cheats
    Replies: 5
    Last Post: 06-22-2009, 12:36 AM
  4. Technical issue with profile
    By WOLF01234 in forum Call of Duty 5 - World at War Hacks
    Replies: 1
    Last Post: 12-11-2008, 07:15 PM
  5. Bulding a hack and got some issue with pointers
    By TheRedEye in forum WarRock - International Hacks
    Replies: 8
    Last Post: 05-16-2007, 04:43 PM