Sign in to follow this  
Followers 0
232showtime

ControlSend Problem...

7 posts in this topic

#1 ·  Posted (edited)

I've made a script and got a little problem with controlsend func because sometimes controlsend is not sending data at all, and if i restarted my computer it will work again perfectly...

#Region ### START Koda GUI section ###
$1 = GUICtrlCreateButton("-", 32, 88, 75, 25)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
Opt("SendKeyDelay", 5)
Opt("SendKeyDownDelay", 5)

While 1
$_iData = ControlGetText("DOCumentation management system", "", "[CLASS:TEdit; INSTANCE:1]")

Switch $nMsg

     

        Case $GUI_EVENT_CLOSE
            Exit
        Case $1

            ControlSend("Open", "", "[CLASS:Edit;INSTANCE:1]", $_iData) ; Load PDF
EndSwitch
WEnd

what seems to be the problem?

System:

64-bit OS Windows 7 Professional

4 GB RAM

Intel®Corei5-3470S CPU @ 2.90 GHz

Edited by 232showtime

ill get to that... i still need to learn and understand a lot of codes graduated.gif

Correct answer, learn to walk before you take on that marathon.

Share this post


Link to post
Share on other sites



I really dont know if hung is causing the problem... :(  :(  :( 


ill get to that... i still need to learn and understand a lot of codes graduated.gif

Correct answer, learn to walk before you take on that marathon.

Share this post


Link to post
Share on other sites

Did you try WinActivate("Open") and/or ControlFocus just before the ControlSend ?

"The control might first need to be given focus with the ControlFocus() command" (helpfile)

Share this post


Link to post
Share on other sites

ill try it... :sorcerer: :sorcerer: :sorcerer:


ill get to that... i still need to learn and understand a lot of codes graduated.gif

Correct answer, learn to walk before you take on that marathon.

Share this post


Link to post
Share on other sites

I tried ControlFocus and ControlSetText, it still has the same problem. well i guess restart is the only way to fix it, too bad... :mad2: :mad2: :mad2:


ill get to that... i still need to learn and understand a lot of codes graduated.gif

Correct answer, learn to walk before you take on that marathon.

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