Posts

c# - SendInput not working after attaching thread input to a target process -

i'm making application needs work ui of program doesn't seem implement ui automation elements (inspect.exe shows main pane , no children). so researched best ways implement features need were, , found sendinput(), apparently newer version of keybd_event() , mouse_event(). however, since requires keyboard focus , since can't afford set target window foreground (to avoid bothering user while runs), kept searching until found this answer . did skurmedel said, , joined application's thread target's window thread. now, if setfocus() target , sendinput(), target window won't affected. my question either "why doesn't work?" or "what doing wrong?", guess code example sorting out: threadhandler class class threadhandler { #region p/invoking , constants definition const uint wm_gettext = 0x000d; [dllimport("user32.dll")] static extern intptr setfocus(intptr hwnd); [dllimport("user32.dll")]...

html - Clicking on label doesn't check radio button -

i'm trying make color picker setting html this: <ol class="kleurenkiezer list-reset clearfix"> <li> <input type="radio" id="kleur_wit" name="kleurenkiezer" value="wit"> <label for="kleur_wit" style="background: white;"></label> </li> <li> <input type="radio" id="kleur_creme" name="kleurenkiezer" value="creme"> <label for="kleur_creme" style="background: #fffceb;"></label> </li> <li> <input type="radio" id="kleur_lichtbruin" name="kleurenkiezer" value="lichtbruin"> <label for="kleur_lic...

php - Can't send mail from localhost/xampp -

failed connect mailserver @ "mail.google.com" port 587, verify "smtp" , "smtp_port" setting in php.ini or use ini_set() i configured xampp php.ini , sendmail.ini file use gmail account sending email php script. using xampp. after changing [mail function] part of php.ini looks (i have deleted commented outlines simplicity) [mail function] smtp = mail.google.com smtp_port = 587 mail.add_x_header = off and sendmail.ini file looks this [sendmail] smtp_server=mail.google.com smtp_port=587 smtp_ssl=auto error_logfile=error.log auth_username=babar+gmail.com auth_password=********** so have missed? why getting error? you using wrong smtp settings gmail. correct ones are: in php.ini [mail function] ;smtp = localhost ;sendmail_from = me@example.com sendmail_path = "c:\sendmail\sendmail.exe -t -i" in sendmail.ini [sendmail] smtp_server=smtp.gmail.com smtp_port=587 smtp_ssl=tls auth_username=me@example.com auth_password=******...

Change Page does not work in jquery mobile ios and phonegap -

i explaining situation below facing app working on. the app consists of login module stores data application local storage. when initiate application checks key in local storage , accordingly call changepage in application. if clear out local storage , restarts application transitions works perfect. if data there in application local storage , application launched takes me home screen defined. i have jquery listview on there. when call changepage in later scenario nothing happens i.e when land home page. in first scenario works fine when start login screen. here code logout localstorage.removeitem("userdata"); localstorage.removeitem("default_data"); $("#block-ui").show(); $.mobile.loading('show'); settimeout(function(){ $.mobile.loading('hide'); $("#block-ui").hide(); $.mobile.changepage("index.html",{allowsamep...

condition - wix selectTree dosn't update -

i'ąm trying instaler thats components on selectedtree dependent on property value. create own ui dialog edit componen binded property. <?xml version="1.0" encoding="utf-8"?> <wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> <fragment> <ui id="wixui_producttype"> <propertyref id="productkey" /> <dialog id="productchoosedlg" width="370" height="270" title="product key"> <control id="description" type="text" x="25" y="23" width="280" height="15" transparent="yes" noprefix="yes" text="specify product" /> <control id="title" type="text" x="15" y="6" width="200" height="15" transparent="yes" noprefix="yes" text="product code" />...

postgresql - psycopg2: re-using connection object after connection closing -

i not find way re-use connection object. after executing conn.close() still have object in memory there must way re-use it. what's best way it? from connection class documentation : close() close connection (rather whenever del executed). connection unusable point forward; interfaceerror raised if operation attempted connection

debugging - KendoUI Tabstrip aria-controls -

i know if can control attribute aria-controls of tabstrip using kendoui. indeed, want change manualy select different div , don't know why it's not working : <ul class="k-tabstrip-items k-reset"> <li class="k-state-active k-item k-tab-on-top k-state-default k-first" role="tab" aria-selected="true" aria-controls="tabstrip-1"> <a class="k-link">baseball</a> </li> <li class="k-item k-state-default" role="tab" aria-controls="tabstrip-2"> <a class="k-link">golf</a> </li> </ul> to controls div s : <div class="k-content k-state-active" id="tabstrip-1" role="tabpanel" aria-expanded="true" style="display: block;"> <p>text1</p> </div> <div class="k-content" id="tabstrip-2" role="tabpanel" aria-hidden=...