Sign in to follow this  
Followers 0
Necromorph

ControlClick win7 x64 not working

4 posts in this topic

ive been messing with an automated installer progam im working on, and i can get it to work in win xp, but not on win7 x64. here is a little test, that doesn't work for me.

MsgBox(0, "test", "this is a test box.")
Sleep(1500)

ControlClick("test", "this is a test box", "[CLASS:Button; INSTANCE:1]")
;Send("{ENTER}")

swap out the controlclick and the send, neither work. any suggestions?

Share this post


Link to post
Share on other sites



ive been messing with an automated installer progam im working on, and i can get it to work in win xp, but not on win7 x64. here is a little test, that doesn't work for me.

MsgBox(0, "test", "this is a test box.")
Sleep(1500)

ControlClick("test", "this is a test box", "[CLASS:Button; INSTANCE:1]")
;Send("{ENTER}")

swap out the controlclick and the send, neither work. any suggestions?

Because the script continues only when the msgbox is closed... so I suggest you to make a script with a msgbox

MsgBox(64, "test", "this is a test box.")

And another one with the controlclick

ControlClick("[TITLE:test;CLASS:#32770]", "", "[CLASS:Button; INSTANCE:1]", "left", 2)

Regards, d3mon.


 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites

#include<GUIConstants.au3>

GUICreate("test", 150, 150)
GUISetState()
$buttonTest = GUICtrlCreateButton("test", 25, 25, 75)

Sleep(1000)
ControlClick("test", '', "[CLASS:Button; INSTANCE:1]")
;Send("{ENTER}")

While 1
    $msg = GUIGetMsg()
    Switch $msg
        Case $gui_event_close
            Exit
        Case $buttonTest
            MsgBox(0, "test", "the test button has been clicked!")
    EndSwitch
WEnd

thanks, that actually just crossed my mind. duh to me! so i made this one, which works.

but it still doesnt fix my issue. i have an installer for a progarm, and controlclick, send, mouse click, none of them work. i will keep troubleshooting it. thanks again

Share this post


Link to post
Share on other sites

i found as soon as i turned UAC off (all the way), it works. hmmm.

Share this post


Link to post
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
Sign in to follow this  
Followers 0