232showtime Posted October 26, 2014 Share Posted October 26, 2014 (edited) is there a func in autoit that works like a TAB in keyboard, like if desktop is active and you select some icon or folders then you press TAB repeatedly in your keyboard you will see the icon/folder is highlighted, cycling through your entire desktop. like if you press windows logo in keyboard and start menu will appear then press tab repeatedly selection is changing... Edited October 26, 2014 by 232showtime ill get to that... i still need to learn and understand a lot of codes Correct answer, learn to walk before you take on that marathon. Link to comment Share on other sites More sharing options...
water Posted October 26, 2014 Share Posted October 26, 2014 Send({TAB})? My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
232showtime Posted October 26, 2014 Author Share Posted October 26, 2014 any other way??? ill get to that... i still need to learn and understand a lot of codes Correct answer, learn to walk before you take on that marathon. Link to comment Share on other sites More sharing options...
Solution Exit Posted October 26, 2014 Solution Share Posted October 26, 2014 any other way??? Yes using conrolsend(). _HotKey("{f2}") Func _HotKey($hotkey = "") Switch @HotKeyPressed Case "{f2}" Exit 0 * MsgBox(64 + 262144, Default, "Exit", 1) Case Else If Not IsDeclared("hotkey") Then Return MsgBox(16 + 262144, Default, "No CASE statement defined for hotkey " & @HotKeyPressed) If HotKeySet($hotkey, "_Hotkey") = 0 Then Return MsgBox(16 + 262144, Default, "Hotkey " & $hotkey & " invalid or set by another application.") EndSwitch EndFunc ;==>_HotKey ;~ point to first icon $rc = ControlSend("[CLASS:Progman;TITLE:Program Manager]", "FolderView", "SysListView321", "{HOME}") While 1 $rc = ControlFocus("[CLASS:Progman;TITLE:Program Manager]", "FolderView", "SysListView321") Sleep(1000) Beep(1000, 100) $rc = ControlSend("[CLASS:Progman;TITLE:Program Manager]", "FolderView", "SysListView321", "{DOWN}") WEnd But as you can see, I used {DOWN} to navigate on desktop. {TAB} is used to switch between Desktop, Start Button, Taskbar, System Tray, Clock and hide desktop. {LEFT/RIGHT/UP/DOWN} are used to navigate between the desktop icons. They DO NOT wrap around, so stop my script (F2) when the lowest icon of first row is reached. I was too lazy to program an ending condition, App: Au3toCmd UDF: _SingleScript() Link to comment Share on other sites More sharing options...
232showtime Posted October 26, 2014 Author Share Posted October 26, 2014 (edited) sorry got confused with your script, are you using diffferent hotkey UDF??? _HotKey("{f2}") Edited October 26, 2014 by 232showtime ill get to that... i still need to learn and understand a lot of codes Correct answer, learn to walk before you take on that marathon. Link to comment Share on other sites More sharing options...
Exit Posted October 26, 2014 Share Posted October 26, 2014 _Hotkey() is just an embedded function with uses HotKeySet(). In this case, it is just used to define an exit key. Don't bother about. Did you tried my script? Here a condensed version of the script. To exit, press CNTL+BREAK ControlSend("[CLASS:Progman]", "", "SysListView321", "{HOME}") While Sleep(1000) Beep(1000, 100) ControlFocus("[CLASS:Progman]", "", "SysListView321") ControlSend("[CLASS:Progman]", "", "SysListView321", "{DOWN}") WEnd App: Au3toCmd UDF: _SingleScript() Link to comment Share on other sites More sharing options...
232showtime Posted October 27, 2014 Author Share Posted October 27, 2014 oh yeah silly me... was in a hurry yesterday, I haven't noticed this Case "{f2}" Exit 0 * MsgBox(64 + 262144, Default, "Exit", 1) I tried it and its working... but im still thinking how they made the script for TAB. anyways thanks for the idea... :sorcerer: ill get to that... i still need to learn and understand a lot of codes Correct answer, learn to walk before you take on that marathon. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now