home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Support
Input / Output interfaces
Remotes
Vista MCE Remote Control VRC-1100
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="CyberSimian" data-source="post: 1199191" data-attributes="member: 141969"><p>I am a beginner at programming with AutoHotKey; I learnt it specifically to see if I could solve the quirks of the Ortek/Hama. The "Centarea HID.ahk" is my first project using AutoHotKey.</p><p></p><p>AutoHotKey is a weird programming tool, and seems to have a mixture of syntax. For example, sometimes string constants need to be enclosed in quotes (as most programming languages require), but at other times the quotes should not be used. <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite5" alt=":confused:" title="Confused :confused:" loading="lazy" data-shortname=":confused:" /></p><p></p><p>Anyway, the following example displays the Windows file-selection dialogue from which you can select a file. It lists all of the EXE files in "C:\Windows", and then displays what is chosen. If you had 3-4 applications that you wanted to run, you would probably put their startup BAT files in a folder of their own (so the list shows only those files), and then use the AutoHotKey "Run" command to start the application selected. You could incorporate that into the processing of the START button in "Centarea HID.ahk", with one selection being "MP Home", and the remainder being applications to start. You can run the example below to see what it does.</p><p></p><p>[code]; pickfile.ahk</p><p>FileSelectFile, app, 0, C:\windows, Select the program to start, Applications (*.bat; *.exe)</p><p>If app =</p><p>{</p><p> MsgBox, Selection cancelled.</p><p> Return</p><p>}</p><p>Else</p><p>{</p><p> MsgBox, The following application was selected:`n%app%</p><p> Return</p><p>}[/code]</p><p></p><p></p><p>There is a detailed help file for AutoHotKey, although it is more of a reference than a tutorial. Refer to the "GUI" section for information about the facilities available for displaying and processing windows.</p><p></p><p>-- from CyberSimian in the UK</p></blockquote><p></p>
[QUOTE="CyberSimian, post: 1199191, member: 141969"] I am a beginner at programming with AutoHotKey; I learnt it specifically to see if I could solve the quirks of the Ortek/Hama. The "Centarea HID.ahk" is my first project using AutoHotKey. AutoHotKey is a weird programming tool, and seems to have a mixture of syntax. For example, sometimes string constants need to be enclosed in quotes (as most programming languages require), but at other times the quotes should not be used. :confused: Anyway, the following example displays the Windows file-selection dialogue from which you can select a file. It lists all of the EXE files in "C:\Windows", and then displays what is chosen. If you had 3-4 applications that you wanted to run, you would probably put their startup BAT files in a folder of their own (so the list shows only those files), and then use the AutoHotKey "Run" command to start the application selected. You could incorporate that into the processing of the START button in "Centarea HID.ahk", with one selection being "MP Home", and the remainder being applications to start. You can run the example below to see what it does. [code]; pickfile.ahk FileSelectFile, app, 0, C:\windows, Select the program to start, Applications (*.bat; *.exe) If app = { MsgBox, Selection cancelled. Return } Else { MsgBox, The following application was selected:`n%app% Return }[/code] There is a detailed help file for AutoHotKey, although it is more of a reference than a tutorial. Refer to the "GUI" section for information about the facilities available for displaying and processing windows. -- from CyberSimian in the UK [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
Input / Output interfaces
Remotes
Vista MCE Remote Control VRC-1100
Contact us
RSS
Top
Bottom