Sign in to follow this  
Followers 0
Tasmania

GUICtrlGetFocus... such a command? Or similar?

9 posts in this topic

Right now, this is working the correct way, and this is how it should work, however this is kinda messy and I don't like the idea of having to use outside ClassNN information gathered from AutoItInfo... so is there an easier way to do this and be able to use internal variable information?

This is my auto-focus:

If ControlGetFocus("Cost Information") = "Edit1" And $focusset <> 1 Then
    GUICtrlSetState($concpt2pcbk, $GUI_FOCUS)
    $focusset = 1
   EndIf
   
   If ControlGetFocus("Cost Information") <> "Edit1" And $focusset = 1 Then
    $focusset = 0
   EndIfoÝ÷ Ø    ݶ¬É²±Êâ¦Ö®¶­sb6æ6ÇVFRfÇC´uT6öç7FçG2æS2fwC° ¤gVæ2'rb33c¶7G&¢b33c·&W7VÇBÒgV÷C²b33c²gV÷C²fײçVÖ&W"7G&æuG&ÔÆVgBuT7G&Å&VBb33c¶7G&ÂÂò"¢¢&WGW&âb33c·&W7VÇ@¤VæDgVæ0 ¢5&Vvöâ2225D%B¶öFuT6V7Föâ222f÷&ÓÔ3¢b3#´Fö7VÖVçG2æB6WGFæw2b3#µU5¤TdRb3#´FW6·F÷b3#µ&ö¦V7G2b3#¶g&Ô6÷7Dæfòæ·`¢b33c¶g&Ô6÷7DæfòÒuT7&VFRgV÷C´6÷7Bæf÷&ÖFöâgV÷C²Â#3BÂ3SBÂ#SÂcR¢b33c·F$6÷7DæfòÒuT7G&Ä7&VFUF"ÂÂ#32Â32¤uT7G&Å6WE&W6¦ærÓÂb33c´uTôDô4µtED²b33c´uTôDô4´TtB¢b33c·G46öæ6WBÒuT7G&Ä7&VFUF$FVÒgV÷C²f×´6öæ6WBgV÷C²¢b33c´Æ&VÃSbÒuT7G&Ä7&VFTÆ&VÂgV÷C³"2$4³¢gV÷C²Â"ÂCÂcÂr¢b33c´Æ&VÃSrÒuT7G&Ä7&VFTÆ&VÂgV÷C³"2e$ôåC¢gV÷C²Â"ÂcRÂsÂr¢b33c´Æ&VÃSÒuT7G&Ä7&VFTÆ&VÂgV÷C´$ÔdôÄC¢gV÷C²Â"ÂÂCÂr¢b33c´Æ&VÃSÒuT7G&Ä7&VFTÆ&VÂgV÷C´4ÄÕ4TÄâgV÷C²Â"Â2ÂsÂr¢b33c´Æ&VÃcÒuT7G&Ä7&VFTÆ&VÂgV÷C´d4R4TâgV÷C²Â"Â3rÂcBÂr¢b33c´Æ&VÃcÒuT7G&Ä7&VFTÆ&VÂgV÷C´å4U%C¢gV÷C²Â"ÂcÂCrÂr¢b33c´Æ&VÃc"ÒuT7G&Ä7&VFTÆ&VÂgV÷C´ÄC¢gV÷C²Â"ÂRÂ#BÂr¢b33c´Æ&VÃc2ÒuT7G&Ä7&VFTÆ&VÂgV÷C´Ôô4²4ÄÓ¢gV÷C²Â"Â#ÂsÂr¢b33c´Æ&VÃcBÒuT7G&Ä7&VFTÆ&VÂgV÷CµÅDe$Òe3¢gV÷C²Â"Â#32ÂcbÂr¢b33c´Æ&VÃcRÒuT7G&Ä7&VFTÆ&VÂgV÷CµDTåB4ÄÓ¢gV÷C²Â"Â#SrÂcÂr¢b33c´Æ&VÃcbÒuT7G&Ä7&VFTÆ&VÂgV÷CµE$¢gV÷C²Â"Â#Â3bÂr¢b33c¶6öæ7F6&vRÒuT7G&Ä7&VFTw&÷WgV÷C²6&vRgV÷C²ÂbÂ#BÂcRÂ#¢b33c¶6öæ7C'6&²ÒuT7G&Ä7&VFTçWBgV÷C²b33c³#SgV÷C²ÂBÂCÂCÂ#Â&"b33c´U5ô4TåDU"Âb33c´U5ôUDô45$ôÄÂÂb33c´U5ôåTÔ$U"¤uT7G&Å6WDÆÖBÓÂR¢b33c¶6öæ7C'6g&çBÒuT7G&Ä7&VFTçWBgV÷C²b33c³#SgV÷C²ÂBÂcBÂCÂ#Â&Dõ"b33c´U5ô4TåDU"Âb33c´U5ôUDô45$ôÄÂÂb33c´U5ôåTÔ$U"¤uT7G&Å6WDÆÖBÓÂR¢b33c¶6öæ7F&föÆBÒuT7G&Ä7&VFTçWBgV÷C²b33c³CgV÷C²ÂBÂÂCÂ#Â&"b33c´U5ô4TåDU"Âb33c´U5ôUDô45$ôÄÂÂb33c´U5ôåTÔ$U"¤uT7G&Å6WDÆÖBÓÂR¢b33c¶6öæ7F6ÆÒÒuT7G&Ä7&VFTçWBgV÷C²b33c³#gV÷C²ÂBÂ"ÂCÂ#Â&"b33c´U5ô4TåDU"Âb33c´U5ôUDô45$ôÄÂÂb33c´U5ôåTÔ$U"¤uT7G&Å6WDÆÖBÓÂR¢b33c¶6öæ7Fg6VÂÒuT7G&Ä7&VFTçWBgV÷C²b33c³gV÷C²ÂBÂ3bÂCÂ#Â&Dõ"b33c´U5ô4TåDU"Âb33c´U5ôUDô45$ôÄÂÂb33c´U5ôåTÔ$U"¤uT7G&Å6WDÆÖBÓÂR¢b33c¶6öæ7Fç2ÒuT7G&Ä7&VFTçWBgV÷C²b33c³#gV÷C²ÂBÂcÂCÂ#Â&"b33c´U5ô4TåDU"Âb33c´U5ôUDô45$ôÄÂÂb33c´U5ôåTÔ$U"¤uT7G&Å6WDÆÖBÓÂR¢b33c¶6öæ7FÆBÒuT7G&Ä7&VFTçWBgV÷C²b33c³#gV÷C²ÂBÂBÂCÂ#Â&Dõ"b33c´U5ô4TåDU"Âb33c´U5ôUDô45$ôÄÂÂb33c´U5ôåTÔ$U"¤uT7G&Å6WDÆÖBÓÂR¢b33c¶6öæ7FÖ6ÆÒÒuT7G&Ä7&VFTçWBgV÷C²b33c³#gV÷C²ÂBÂ#ÂCÂ#Â&"b33c´U5ô4TåDU"Âb33c´U5ôUDô45$ôÄÂÂb33c´U5ôåTÔ$U"¤uT7G&Å6WDÆÖBÓÂR¢b33c¶6öæ7Gg2ÒuT7G&Ä7&VFTçWBgV÷C²b33c³gV÷C²ÂBÂ#3"ÂCÂ#Â&"b33c´U5ô4TåDU"Âb33c´U5ôUDô45$ôÄÂÂb33c´U5ôåTÔ$U"¤uT7G&Å6WDÆÖBÓÂR¢b33c¶6öæ7GF6ÆÒÒuT7G&Ä7&VFTçWBgV÷C²b33c³3gV÷C²ÂBÂ#SbÂCÂ#Â&Dõ"b33c´U5ô4TåDU"Âb33c´U5ôUDô45$ôÄÂÂb33c´U5ôåTÔ$U"¤uT7G&Å6WDÆÖBÓÂR¢b33c¶6öæ7GG&ÒuT7G&Ä7&VFTçWBgV÷C²b33c³3SgV÷C²ÂBÂ#ÂCÂ#Â&"b33c´U5ô4TåDU"Âb33c´U5ôUDô45$ôÄÂÂb33c´U5ôåTÔ$U"¤uT7G&Å6WDÆÖBÓÂR¤uT7G&Ä7&VFTw&÷WgV÷C²gV÷C²ÂÓÂÓ¢b33c¶6öæ7G&Wv÷&²ÒuT7G&Ä7&VFTw&÷WgV÷C²&Wv÷&²gV÷C²ÂcBÂ#BÂcRÂ#¢b33c¶6öæ7G#'6&²ÒuT7G&Ä7&VFTçWB'rb33c¶6öæ7C'6&²Âs"ÂCÂCÂ#Â&"b33c´U5ô4TåDU"Âb33c´U5ôUDô45$ôÄÂÂb33c´U5ôåTÔ$U"¤uT7G&Å6WDÆÖBÓÂR¢b33c¶6öæ7G#'6g&çBÒuT7G&Ä7&VFTçWB'rb33c¶6öæ7C'6g&çBÂs"ÂcBÂCÂ#Â&"b33c´U5ô4TåDU"Âb33c´U5ôUDô45$ôÄÂÂb33c´U5ôåTÔ$U"¤uT7G&Å6WDÆÖBÓÂR¢b33c¶6öæ7G&&föÆBÒuT7G&Ä7&VFTçWB'rb33c¶6öæ7F&föÆBÂs"ÂÂCÂ#Â&"b33c´U5ô4TåDU"Âb33c´U5ôUDô45$ôÄÂÂb33c´U5ôåTÔ$U"¤uT7G&Å6WDÆÖBÓÂR¢b33c¶6öæ7G&6ÆÒÒuT7G&Ä7&VFTçWB'rb33c¶6öæ7F6ÆÒÂs"Â"ÂCÂ#Â&Dõ"b33c´U5ô4TåDU"Âb33c´U5ôUDô45$ôÄÂÂb33c´U5ôåTÔ$U"¤uT7G&Å6WDÆÖBÓÂR¢b33c¶6öæ7G&g6VÂÒuT7G&Ä7&VFTçWB'rb33c¶6öæ7Fg6VÂÂs"Â3bÂCÂ#Â&Dõ"b33c´U5ô4TåDU"Âb33c´U5ôUDô45$ôÄÂÂb33c´U5ôåTÔ$U"¤uT7G&Å6WDÆÖBÓÂR¢b33c¶6öæ7G&ç2ÒuT7G&Ä7&VFTçWB'rb33c¶6öæ7Fç2Âs"ÂcÂCÂ#Â&Dõ"b33c´U5ô4TåDU"Âb33c´U5ôUDô45$ôÄÂÂb33c´U5ôåTÔ$U"¤uT7G&Å6WDÆÖBÓÂR¢b33c¶6öæ7G&ÆBÒuT7G&Ä7&VFTçWB'rb33c¶6öæ7FÆBÂs"ÂBÂCÂ#Â&Dõ"b33c´U5ô4TåDU"Âb33c´U5ôUDô45$ôÄÂÂb33c´U5ôåTÔ$U"¤uT7G&Å6WDÆÖBÓÂR¢b33c¶6öæ7G&Ö6ÆÒÒuT7G&Ä7&VFTçWB'rb33c¶6öæ7FÖ6ÆÒÂs"Â#ÂCÂ#Â&Dõ"b33c´U5ô4TåDU"Âb33c´U5ôUDô45$ôÄÂÂb33c´U5ôåTÔ$U"¤uT7G&Å6WDÆÖBÓÂR¢b33c¶6öæ7G'g2ÒuT7G&Ä7&VFTçWB'rb33c¶6öæ7Gg2Âs"Â#3"ÂCÂ#Â&"b33c´U5ô4TåDU"Âb33c´U5ôUDô45$ôÄÂÂb33c´U5ôåTÔ$U"¤uT7G&Å6WDÆÖBÓÂR¢b33c¶6öæ7G'F6ÆÒÒuT7G&Ä7&VFTçWB'rb33c¶6öæ7GF6ÆÒÂs"Â#SbÂCÂ#Â&"b33c´U5ô4TåDU"Âb33c´U5ôUDô45$ôÄÂÂb33c´U5ôåTÔ$U"¤uT7G&Å6WDÆÖBÓÂR¢b33c¶6öæ7G'G&ÒuT7G&Ä7&VFTçWB'rb33c¶6öæ7GG&Âs"Â#ÂCÂ#Â&"b33c´U5ô4TåDU"Âb33c´U5ôUDô45$ôÄÂÂb33c´U5ôåTÔ$U"¤uT7G&Å6WDÆÖBÓÂR¤uT7G&Ä7&VFTw&÷WgV÷C²gV÷C²ÂÓÂÓ¢b33c·G56×ÆRÒuT7G&Ä7&VFUF$FVÒgV÷C²f×´ERÖöÆBgV÷C²¢b33c´Æ&VÃÒuT7G&Ä7&VFTÆ&VÂgV÷C³"2$4³¢gV÷C²Â"ÂCÂcÂr¢b33c´w&÷WÒuT7G&Ä7&VFTw&÷WgV÷C²6&vRgV÷C²ÂbÂ#BÂcRÂ#¢b33c¶GS'6&²ÒuT7G&Ä7&VFTçWBgV÷C²b33c³sgV÷C²ÂBÂCÂCÂ#Â&Dõ"b33c´U5ô4TåDU"Âb33c´U5ôUDô45$ôÄÂÂb33c´U5ôåTÔ$U"¤uT7G&Å6WDÆÖBÓÂR¢b33c¶GS'6g&çBÒuT7G&Ä7&VFTçWBgV÷C²b33c³sgV÷C²ÂBÂcBÂCÂ#Â&Dõ"b33c´U5ô4TåDU"Âb33c´U5ôUDô45$ôÄÂÂb33c´U5ôåTÔ$U"¤uT7G&Å6WDÆÖBÓÂR¢b33c¶GV&föÆBÒuT7G&Ä7&VFTçWBgV÷C²b33c³#gV÷C²ÂBÂÂCÂ#Â&Dõ"b33c´U5ô4TåDU"Âb33c´U5ôUDô45$ôÄÂÂb33c´U5ôåTÔ$U"¤uT7G&Å6WDÆÖBÓÂR¢b33c¶GV6ÆÒÒuT7G&Ä7&VFTçWBgV÷C²b33c³cgV÷C²ÂBÂ"ÂCÂ#Â&Dõ"b33c´U5ô4TåDU"Âb33c´U5ôUDô45$ôÄÂÂb33c´U5ôåTÔ$U"¤uT7G&Å6WDÆÖBÓÂR¢b33c¶GVg6VÂÒuT7G&Ä7&VFTçWBgV÷C²b33c³3gV÷C²ÂBÂ3bÂCÂ#Â&Dõ"b33c´U5ô4TåDU"Âb33c´U5ôUDô45$ôÄÂÂb33c´U5ôåTÔ$U"¤uT7G&Å6WDÆÖBÓÂR¢b33c¶GVç2ÒuT7G&Ä7&VFTçWBgV÷C²b33c³cgV÷C²ÂBÂcÂCÂ#Â&Dõ"b33c´U5ô4TåDU"Âb33c´U5ôUDô45$ôÄÂÂb33c´U5ôåTÔ$U"¤uT7G&Å6WDÆÖBÓÂR¢b33c¶GVÆBÒuT7G&Ä7&VFTçWBgV÷C²b33c³cgV÷C²ÂBÂBÂCÂ#Â&Dõ"b33c´U5ô4TåDU"Âb33c´U5ôUDô45$ôÄÂÂb33c´U5ôåTÔ$U"¤uT7G&Å6WDÆÖBÓÂR¢b33c¶GVÖ6ÆÒÒuT7G&Ä7&VFTçWBgV÷C²b33c³cgV÷C²ÂBÂ#ÂCÂ#Â&Dõ"b33c´U5ô4TåDU"Âb33c´U5ôUDô45$ôÄÂÂb33c´U5ôåTÔ$U"¤uT7G&Å6WDÆÖBÓÂR¢b33c¶GWg2ÒuT7G&Ä7&VFTçWBgV÷C²b33c³3gV÷C²ÂBÂ#3"ÂCÂ#Â&Dõ"b33c´U5ô4TåDU"Âb33c´U5ôUDô45$ôÄÂÂb33c´U5ôåTÔ$U"¤uT7G&Å6WDÆÖBÓÂR¢b33c¶GWF6ÆÒÒuT7G&Ä7&VFTçWBgV÷C²b33c³gV÷C²ÂBÂ#SbÂCÂ#Â&Dõ"b33c´U5ô4TåDU"Âb33c´U5ôUDô45$ôÄÂÂb33c´U5ôåTÔ$U"¤uT7G&Å6WDÆÖBÓÂR¢b33c¶GWG&ÒuT7G&Ä7&VFTçWBgV÷C²b33c³gV÷C²ÂBÂ#ÂCÂ#Â&Dõ"b33c´U5ô4TåDU"Âb33c´U5ôUDô45$ôÄÂÂb33c´U5ôåTÔ$U"¤uT7G&Å6WDÆÖBÓÂR¤uT7G&Ä7&VFTw&÷WgV÷C²gV÷C²ÂÓÂÓ¢b33c´w&÷W"ÒuT7G&Ä7&VFTw&÷WgV÷C²&Wv÷&²gV÷C²ÂcBÂ#BÂcRÂ#¢b33c¶GW#'6&²ÒuT7G&Ä7&VFTçWBgV÷C²gV÷C²Âs"ÂCÂCÂ#Â&Dõ"b33c´U5ô4TåDU"Âb33c´U5ôUDô45$ôÄÂÂb33c´U5ôåTÔ$U"¤uT7G&Å6WDÆÖBÓÂR¢b33c¶GW#'6g&çBÒuT7G&Ä7&VFTçWBgV÷C²gV÷C²Âs"ÂcBÂCÂ#Â&Dõ"b33c´U5ô4TåDU"Âb33c´U5ôUDô45$ôÄÂÂb33c´U5ôåTÔ$U"¤uT7G&Å6WDÆÖBÓÂR¢b33c¶GW&&föÆBÒuT7G&Ä7&VFTçWBgV÷C²gV÷C²Âs"ÂÂCÂ#Â&Dõ"b33c´U5ô4TåDU"Âb33c´U5ôUDô45$ôÄÂÂb33c´U5ôåTÔ$U"¤uT7G&Å6WDÆÖBÓÂR¢b33c¶GW&6ÆÒÒuT7G&Ä7&VFTçWBgV÷C²gV÷C²Âs"Â"ÂCÂ#Â&Dõ"b33c´U5ô4TåDU"Âb33c´U5ôUDô45$ôÄÂÂb33c´U5ôåTÔ$U"¤uT7G&Å6WDÆÖBÓÂR¢b33c¶GW&g6VÂÒuT7G&Ä7&VFTçWBgV÷C²gV÷C²Âs"Â3bÂCÂ#Â&Dõ"b33c´U5ô4TåDU"Âb33c´U5ôUDô45$ôÄÂÂb33c´U5ôåTÔ$U"¤uT7G&Å6WDÆÖBÓÂR¢b33c¶GW&ç2ÒuT7G&Ä7&VFTçWBgV÷C²gV÷C²Âs"ÂcÂCÂ#Â&Dõ"b33c´U5ô4TåDU"Âb33c´U5ôUDô45$ôÄÂÂb33c´U5ôåTÔ$U"¤uT7G&Å6WDÆÖBÓÂR¢b33c¶GW&ÆBÒuT7G&Ä7&VFTçWBgV÷C²gV÷C²Âs"ÂBÂCÂ#Â&Dõ"b33c´U5ô4TåDU"Âb33c´U5ôUDô45$ôÄÂÂb33c´U5ôåTÔ$U"¤uT7G&Å6WDÆÖBÓÂR¢b33c¶GW&Ö6ÆÒÒuT7G&Ä7&VFTçWBgV÷C²gV÷C²Âs"Â#ÂCÂ#Â&Dõ"b33c´U5ô4TåDU"Âb33c´U5ôUDô45$ôÄÂÂb33c´U5ôåTÔ$U"¤uT7G&Å6WDÆÖBÓÂR¢b33c¶GW'g2ÒuT7G&Ä7&VFTçWBgV÷C²gV÷C²Âs"Â#3"ÂCÂ#Â&"b33c´U5ô4TåDU"Âb33c´U5ôUDô45$ôÄÂÂb33c´U5ôåTÔ$U"¤uT7G&Å6WDÆÖBÓÂR¢b33c¶GW'F6ÆÒÒuT7G&Ä7&VFTçWBgV÷C²gV÷C²Âs"Â#SbÂCÂ#Â&"b33c´U5ô4TåDU"Âb33c´U5ôUDô45$ôÄÂÂb33c´U5ôåTÔ$U"¤uT7G&Å6WDÆÖBÓÂR¢b33c¶GW'G&ÒuT7G&Ä7&VFTçWBgV÷C²gV÷C²Âs"Â#ÂCÂ#Â&"b33c´U5ô4TåDU"Âb33c´U5ôUDô45$ôÄÂÂb33c´U5ôåTÔ$U"¤uT7G&Å6WDÆÖBÓÂR¤uT7G&Ä7&VFTw&÷WgV÷C²gV÷C²ÂÓÂÓ¢b33c´Æ&VÃ"ÒuT7G&Ä7&VFTÆ&VÂgV÷C³"2e$ôåC¢gV÷C²Â"ÂcRÂsÂr¢b33c´Æ&2ÒuT7G&Ä7&VFTÆ&VÂgV÷C´$ÔdôÄC¢gV÷C²Â"ÂÂCÂr¢b33c´Æ&VÃBÒuT7G&Ä7&VFTÆ&VÂgV÷C´4ÄÕ4TÄâgV÷C²Â"Â2ÂsÂr¢b33c´Æ&VÃRÒuT7G&Ä7&VFTÆ&VÂgV÷C´d4R4TâgV÷C²Â"Â3rÂcBÂr¢b33c´Æ&VÃbÒuT7G&Ä7&VFTÆ&VÂgV÷C´å4U%C¢gV÷C²Â"ÂcÂCrÂr¢b33c´Æ&VÃrÒuT7G&Ä7&VFTÆ&VÂgV÷C´ÄC¢gV÷C²Â"ÂRÂ#BÂr¢b33c´Æ&VÃÒuT7G&Ä7&VFTÆ&VÂgV÷C´Ôô4²4ÄÓ¢gV÷C²Â"Â#ÂsÂr¢b33c´Æ&VÃÒuT7G&Ä7&VFTÆ&VÂgV÷CµÅDe$Òe3¢gV÷C²Â"Â#32ÂcbÂr¢b33c´Æ&VÃÒuT7G&Ä7&VFTÆ&VÂgV÷CµDTåB4ÄÓ¢gV÷C²Â"Â#SrÂcÂr¢b33c´Æ&VÃÒuT7G&Ä7&VFTÆ&VÂgV÷CµE$¢gV÷C²Â"Â#Â3bÂr¢b33c·G4ÇVÒÒuT7G&Ä7&VFUF$FVÒgV÷C²f×´ÇVÒÖöÆBgV÷C²¢b33c´Æ&VÃ"ÒuT7G&Ä7&VFTÆ&VÂgV÷C³"2$4³¢gV÷C²Â"ÂCÂcÂr¢b33c´Æ&2ÒuT7G&Ä7&VFTÆ&VÂgV÷C³"2e$ôåC¢gV÷C²Â"ÂcRÂsÂr¢b33c´Æ&VÃBÒuT7G&Ä7&VFTÆ&VÂgV÷C´$ÔdôÄC¢gV÷C²Â"ÂÂCÂr¢b33c´Æ&VÃRÒuT7G&Ä7&VFTÆ&VÂgV÷C´4ÄÕ4TÄâgV÷C²Â"Â2ÂsÂr¢b33c´Æ&VÃbÒuT7G&Ä7&VFTÆ&VÂgV÷C´d4R4TâgV÷C²Â"Â3rÂcBÂr¢b33c´Æ&VÃrÒuT7G&Ä7&VFTÆ&VÂgV÷C´å4U%C¢gV÷C²Â"ÂcÂCrÂr¢b33c´Æ&VÃÒuT7G&Ä7&VFTÆ&VÂgV÷C´ÄC¢gV÷C²Â"ÂRÂ#BÂr¢b33c´Æ&VÃÒuT7G&Ä7&VFTÆ&VÂgV÷C´Ôô4²4ÄÓ¢gV÷C²Â"Â#ÂsÂr¢b33c´Æ&VÃ#ÒuT7G&Ä7&VFTÆ&VÂgV÷CµÅDe$Òe3¢gV÷C²Â"Â#32ÂcbÂr¢b33c´Æ&VÃ#ÒuT7G&Ä7&VFTÆ&VÂgV÷CµDTåB4ÄÓ¢gV÷C²Â"Â#SrÂcÂr¢b33c´Æ&VÃ#"ÒuT7G&Ä7&VFTÆ&VÂgV÷CµE$¢gV÷C²Â"Â#Â3bÂr¢b33c´w&÷W2ÒuT7G&Ä7&VFTw&÷WgV÷C²6&vRgV÷C²ÂbÂ#BÂcRÂ#¢b33c¶ÇVÓ'6&²ÒuT7G&Ä7&VFTçWBgV÷C²b33c³gV÷C²ÂBÂCÂCÂ#Â&Dõ"b33c´U5ô4TåDU"Âb33c´U5ôUDô45$ôÄÂÂb33c´U5ôåTÔ$U"¤uT7G&Å6WDÆÖBÓÂR¢b33c¶ÇVÓ'6g&çBÒuT7G&Ä7&VFTçWBgV÷C²b33c³gV÷C²ÂBÂcBÂCÂ#Â&"b33c´U5ô4TåDU"Âb33c´U5ôUDô45$ôÄÂÂb33c´U5ôåTÔ$U"¤uT7G&Å6WDÆÖBÓÂR¢b33c¶ÇVÖ&föÆBÒuT7G&Ä7&VFTçWBgV÷C²b33c³#SgV÷C²ÂBÂÂCÂ#Â&Dõ"b33c´U5ô4TåDU"Âb33c´U5ôUDô45$ôÄÂÂb33c´U5ôåTÔ$U"¤uT7G&Å6WDÆÖBÓÂR¢b33c¶ÇVÖ6ÆÒÒuT7G&Ä7&VFTçWBgV÷C²b33c³#gV÷C²ÂBÂ"ÂCÂ#Â&Dõ"b33c´U5ô4TåDU"Âb33c´U5ôUDô45$ôÄÂÂb33c´U5ôåTÔ$U"¤uT7G&Å6WDÆÖBÓÂR¢b33c¶ÇVÖg6VÂÒuT7G&Ä7&VFTçWBgV÷C²b33c³gV÷C²ÂBÂ3bÂCÂ#Â&"b33c´U5ô4TåDU"Âb33c´U5ôUDô45$ôÄÂÂb33c´U5ôåTÔ$U"¤uT7G&Å6WDÆÖBÓÂR¢b33c¶ÇVÖç2ÒuT7G&Ä7&VFTçWBgV÷C²b33c³gV÷C²ÂBÂcÂCÂ#Â&Dõ"b33c´U5ô4TåDU"Âb33c´U5ôUDô45$ôÄÂÂb33c´U5ôåTÔ$U"¤uT7G&Å6WDÆÖBÓÂR¢b33c¶ÇVÖÆBÒuT7G&Ä7&VFTçWBgV÷C²b33c³gV÷C²ÂBÂBÂCÂ#Â&"b33c´U5ô4TåDU"Âb33c´U5ôUDô45$ôÄÂÂb33c´U5ôåTÔ$U"¤uT7G&Å6WDÆÖBÓÂR¢b33c¶ÇVÖÖ6ÆÒÒuT7G&Ä7&VFTçWBgV÷C²b33c³#gV÷C²ÂBÂ#ÂCÂ#Â&Dõ"b33c´U5ô4TåDU"Âb33c´U5ôUDô45$ôÄÂÂb33c´U5ôåTÔ$U"¤uT7G&Å6WDÆÖBÓÂR¢b33c¶ÇV×g2ÒuT7G&Ä7&VFTçWBgV÷C²b33c³gV÷C²ÂBÂ#3"ÂCÂ#Â&Dõ"b33c´U5ô4TåDU"Âb33c´U5ôUDô45$ôÄÂÂb33c´U5ôåTÔ$U"¤uT7G&Å6WDÆÖBÓÂR¢b33c¶ÇV×F6ÆÒÒuT7G&Ä7&VFTçWBgV÷C²b33c³#SgV÷C²ÂBÂ#SbÂCÂ#Â&"b33c´U5ô4TåDU"Âb33c´U5ôUDô45$ôÄÂÂb33c´U5ôåTÔ$U"¤uT7G&Å6WDÆÖBÓÂR¢b33c¶ÇV×G&ÒuT7G&Ä7&VFTçWBgV÷C²b33c³SgV÷C²ÂBÂ#ÂCÂ#Â&Dõ"b33c´U5ô4TåDU"Âb33c´U5ôUDô45$ôÄÂÂb33c´U5ôåTÔ$U"¤uT7G&Å6WDÆÖBÓÂR¤uT7G&Ä7&VFTw&÷WgV÷C²gV÷C²ÂÓÂÓ¢b33c´w&÷WBÒuT7G&Ä7&VFTw&÷WgV÷C²&Wv÷&²gV÷C²ÂcBÂ#BÂcRÂ#¢b33c¶ÇV×#'6&²ÒuT7G&Ä7&VFTçWBgV÷C²gV÷C²Âs"ÂCÂCÂ#Â&Dõ"b33c´U5ô4TåDU"Âb33c´U5ôUDô45$ôÄÂÂb33c´U5ôåTÔ$U"¤uT7G&Å6WDÆÖBÓÂR¢b33c¶ÇV×#'6g&çBÒuT7G&Ä7&VFTçWBgV÷C²gV÷C²Âs"ÂcBÂCÂ#Â&Dõ"b33c´U5ô4TåDU"Âb33c´U5ôUDô45$ôÄÂÂb33c´U5ôåTÔ$U"¤uT7G&Å6WDÆÖBÓÂR¢b33c¶ÇV×&&föÆBÒuT7G&Ä7&VFTçWBgV÷C²gV÷C²Âs"ÂÂCÂ#Â&Dõ"b33c´U5ô4TåDU"Âb33c´U5ôUDô45$ôÄÂÂb33c´U5ôåTÔ$U"¤uT7G&Å6WDÆÖBÓÂR¢b33c¶ÇV×&6ÆÒÒuT7G&Ä7&VFTçWBgV÷C²gV÷C²Âs"Â"ÂCÂ#Â&"b33c´U5ô4TåDU"Âb33c´U5ôUDô45$ôÄÂÂb33c´U5ôåTÔ$U"¤uT7G&Å6WDÆÖBÓÂR¢b33c¶ÇV×&g6VÂÒuT7G&Ä7&VFTçWBgV÷C²gV÷C²Âs"Â3bÂCÂ#Â&"b33c´U5ô4TåDU"Âb33c´U5ôUDô45$ôÄÂÂb33c´U5ôåTÔ$U"¤uT7G&Å6WDÆÖBÓÂR¢b33c¶ÇV×&ç2ÒuT7G&Ä7&VFTçWBgV÷C²gV÷C²Âs"ÂcÂCÂ#Â&"b33c´U5ô4TåDU"Âb33c´U5ôUDô45$ôÄÂÂb33c´U5ôåTÔ$U"¤uT7G&Å6WDÆÖBÓÂR¢b33c¶ÇV×&ÆBÒuT7G&Ä7&VFTçWBgV÷C²gV÷C²Âs"ÂBÂCÂ#Â&"b33c´U5ô4TåDU"Âb33c´U5ôUDô45$ôÄÂÂb33c´U5ôåTÔ$U"¤uT7G&Å6WDÆÖBÓÂR¢b33c¶ÇV×&Ö6ÆÒÒuT7G&Ä7&VFTçWBgV÷C²gV÷C²Âs"Â#ÂCÂ#Â&"b33c´U5ô4TåDU"Âb33c´U5ôUDô45$ôÄÂÂb33c´U5ôåTÔ$U"¤uT7G&Å6WDÆÖBÓÂR¢b33c¶ÇV×'g2ÒuT7G&Ä7&VFTçWBgV÷C²gV÷C²Âs"Â#3"ÂCÂ#Â&Dõ"b33c´U5ô4TåDU"Âb33c´U5ôUDô45$ôÄÂÂb33c´U5ôåTÔ$U"¤uT7G&Å6WDÆÖBÓÂR¢b33c¶ÇV×'F6ÆÒÒuT7G&Ä7&VFTçWBgV÷C²gV÷C²Âs"Â#SbÂCÂ#Â&Dõ"b33c´U5ô4TåDU"Âb33c´U5ôUDô45$ôÄÂÂb33c´U5ôåTÔ$U"¤uT7G&Å6WDÆÖBÓÂR¢b33c¶ÇV×'G&ÒuT7G&Ä7&VFTçWBgV÷C²gV÷C²Âs"Â#ÂCÂ#Â&Dõ"b33c´U5ô4TåDU"Âb33c´U5ôUDô45$ôÄÂÂb33c´U5ôåTÔ$U"¤uT7G&Å6WDÆÖBÓÂR¤uT7G&Ä7&VFTw&÷WgV÷C²gV÷C²ÂÓÂÓ¤uT7G&Ä7&VFUF$FVÒgV÷C²gV÷C²¢b33c¶'Fä6ö×ÆWFRÒuT7G&Ä7&VFT'WGFöâgV÷C´2f׶ö×ÆWFRgV÷C²ÂS"Â3#ÂsRÂ#R¤uT6WE7FFR5uõ4õr¢4VæE&Vvöâ222TäB¶öFuT6V7Föâ220 ¤gVæ2FBb33c·f&æÖR¢b7G&ætÆVgBuT7G&Å&VBb33c·f&æÖRÂfÇC²fwC²gV÷C²b33c²gV÷C²FVâuT7G&Å6WDFFb33c·f&æÖRÂgV÷C²b33c²gV÷C²fײuT7G&Å&VBb33c·f&æÖR¤VæDgVæ0¢¢b33c¶fö7W76WBÒ ¥vÆR¢b33c¶ä×6rÒuTvWD×6r¢¢7vF6b33c¶ä×6p¢66Rb33c´uTôUdTåEô4Äõ4P¢W@¢¢66Ræ÷Bb33c¶'Fä6ö×ÆWFP¢FBb33c¶6öæ7C'6&²¢FBb33c¶6öæ7C'6g&çB¢FBb33c¶6öæ7F&föÆB¢FBb33c¶6öæ7F6ÆÒ¢FBb33c¶6öæ7Fg6V¢FBb33c¶6öæ7Fç2¢FBb33c¶6öæ7FÆB¢FBb33c¶6öæ7FÖ6ÆÒ¢FBb33c¶6öæ7Gg2¢FBb33c¶6öæ7GF6ÆÒ¢FBb33c¶6öæ7GG&¢¢uT7G&Å6WDFFb33c¶6öæ7G#'6&²Â'rb33c¶6öæ7C'6&²¢uT7G&Å6WDFFb33c¶6öæ7G#'6g&çBÂ'rb33c¶6öæ7C'6g&çB¢uT7G&Å6WDFFb33c¶6öæ7G&&föÆBÂ'rb33c¶6öæ7F&föÆB¢uT7G&Å6WDFFb33c¶6öæ7G&6ÆÒÂ'rb33c¶6öæ7F6ÆÒ¢uT7G&Å6WDFFb33c¶6öæ7G&g6VÂÂ'rb33c¶6öæ7Fg6V¢uT7G&Å6WDFFb33c¶6öæ7G&ç2Â'rb33c¶6öæ7Fç2¢uT7G&Å6WDFFb33c¶6öæ7G&ÆBÂ'rb33c¶6öæ7FÆB¢uT7G&Å6WDFFb33c¶6öæ7G&Ö6ÆÒÂ'rb33c¶6öæ7FÖ6ÆÒ¢uT7G&Å6WDFFb33c¶6öæ7G'g2Â'rb33c¶6öæ7Gg2¢uT7G&Å6WDFFb33c¶6öæ7G'F6ÆÒÂ'rb33c¶6öæ7GF6ÆÒ¢uT7G&Å6WDFFb33c¶6öæ7G'G&Â'rb33c¶6öæ7GG&¢¢b6öçG&öÄvWDfö7W2gV÷C´6÷7Bæf÷&ÖFöâgV÷C²ÒgV÷C´VFCgV÷C²æBb33c¶fö7W76WBfÇC²fwC²FVà¢uT7G&Å6WE7FFRb33c¶6öæ7C'6&²Âb33c´uTôdô5U2¢b33c¶fö7W76WBÒ¢VæD`¢¢b6öçG&öÄvWDfö7W2gV÷C´6÷7Bæf÷&ÖFöâgV÷C²fÇC²fwC²gV÷C´VFCgV÷C²æBb33c¶fö7W76WBÒFVà¢b33c¶fö7W76WBÒ¢VæD` ¢VæE7vF6¥tVæ

I searched in UDF help but didn't find much... any help would be greatly appreciated.

Share this post


Link to post
Share on other sites

#2 ·  Posted (edited)

GUICtrlGetState() doesn't work?

Edited by Siao

"be smart, drink your wine"

Share this post


Link to post
Share on other sites
ControlGetFocus()

Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

If you don't want to work with that ClassNN, you can call API directly.

GUICreate("", 400,300)
$Input1 = GUICtrlCreateInput("", 0,50,200,50)
$hInput1 = GUICtrlGetHandle(-1)
$Input2 = GUICtrlCreateInput("", 0,150,200,50)

GUISetState()


While GUIGetMsg() <> -3
    If GetFocus() = $hInput1 Then ConsoleWrite("Input1 has focus" & @CRLF)
WEnd

Func GetFocus()
    $a = DllCall("user32.dll", "hwnd", "GetFocus")
    If Not IsArray($a) Then Return 0
    Return $a[0]
EndFunc

And if you don't want this constant polling approach, and since it's an Edit control, you can use GuiRegisterMsg, to catch EN_SETFOCUS notifications (like in that example I gave you yesterday, IIRC).

Edited by Siao

"be smart, drink your wine"

Share this post


Link to post
Share on other sites

Why reinvent the wheel?

ControlGetFocus() works with just about any GUI. Even AutoIt created ones.


Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache

Share this post


Link to post
Share on other sites

Okay, thanks to both of you. I'll just call it as it is. Is there such thing as variable variables? Such as ($fcsst & $itm) = 1 which would then make a variable named $fcsst and then whatever the variable $itm contains?

In C# there is such thing, just wondering about here.

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

Okay, thanks to both of you. I'll just call it as it is. Is there such thing as variable variables? Such as ($fcsst & $itm) = 1 which would then make a variable named $fcsst and then whatever the variable $itm contains?

In C# there is such thing, just wondering about here.

Dim $fcsst =& $itm

Dim $fcsst &= $itm

Look up the Operators section of the help file.

Edit:

Actually, you're asking for Dim $fcsst = $itm, as currently phrased.

Edit2: Fixed syntax.

Edited by Blue_Drache

Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache

Share this post


Link to post
Share on other sites

Dim $fcsst =& $itm

Look up the Operators section of the help file.

Dim $fcsst =& $itm

Dim $fcsst &= $itm


George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Share this post


Link to post
Share on other sites

Hehe, I got it, thanks to both of you :)

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