Jump to content

Recommended Posts

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.

Posted

Have you verified nothing else on the system in question gets hung thus causing the issue?

I discovered I have a hand up my backside..... I thought jose jalapeno on a stick had issues....

Posted

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.

Posted

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.

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
×
×
  • Create New...