Results 1 to 6 of 6

Thread: How do i change the behavior of a button

  1. #1
    Maximum Bitrate Injector's Avatar
    Join Date
    Mar 2005
    Location
    Rockledge, FL
    Posts
    525

    How do i change the behavior of a button

    let me explain myself a little better, i'm running freedom 2.1 which has a button at the bottom to dim the screen, this button is not working anymore, so i'm taking this opportunity to enhance it, i want to change the behavior of the button so when i press it it loads an executable that dims the screen http://www.whitsoftdev.com/powerdimmer/

    i know about gamma control, but i don't want to do that route, let me explain why, if it's night time and i want to watch a movie i don't want the screen to be dimmed, i know gamma control can be changed from the task bar, but i don't have access to the task bar from RR

    i also thought about using the system scheduler, but this lacks a lot of features (like everything from microsoft) it only schedules at a specific time and not a range like 6-pm to 6-am, and it only runs once.
    Attached Images Attached Images  

  2. #2
    Raw Wave treetop777's Avatar
    Join Date
    Sep 2006
    Location
    War-Town, GA.
    Posts
    2,093
    I's easy to change the function of the button by defining it in ExecTBL.ini like:
    "Web","Audio" - now the web button will launch the audio player instead.

    I'm clueless how you would activate the screen saver/dimmer unless it has a .exe; if it does, the RUN command would probably work.

  3. #3
    Maximum Bitrate Injector's Avatar
    Join Date
    Mar 2005
    Location
    Rockledge, FL
    Posts
    525
    an .scr file acts just like an executable, except that it usually has a .txt or .dat for the settings which you can configure with the window screen saver thingy

    how do i find the label for that button tho? i looked in the menu.skin but i couldn't find anything close to a dimmer

  4. #4
    Maximum Bitrate Injector's Avatar
    Join Date
    Mar 2005
    Location
    Rockledge, FL
    Posts
    525
    i started reading on exectable.ini and found sample code
    Bxx,xxx,xxx,xxx,xxx,"PLAY",@STOP@

    i know this is to play and stop but i made me think that the button is based on x,y location and not on label, i kinda lost here because freedom is mostly flash based so i don't know if i have to decompile the swf or look for a config file.

    is this correct?

  5. #5
    Raw Wave treetop777's Avatar
    Join Date
    Sep 2006
    Location
    War-Town, GA.
    Posts
    2,093
    Which button do you want to activate the dimmer? This is the way it would work (ideally):

    If you assign the "web" button to activate the dimmer, add this to exectbl.ini:

    "WEB","DIMMER" (this will change the web button to run the dimmer command)

    Now you define the "dimmer" command; in exectbl add:

    "DIMMER", "RUN;<path to .scr>"

    Somebody correct me if i'm wrong.

  6. #6
    Maximum Bitrate Injector's Avatar
    Join Date
    Mar 2005
    Location
    Rockledge, FL
    Posts
    525
    ooh ok i got ya. rep going your way.

Similar Threads

  1. Change button colors on ex-audio screen?
    By guizai in forum LCD/Display
    Replies: 0
    Last Post: 12-20-2006, 02:22 PM
  2. Determining button highlight order
    By parksgm in forum StreetDeck
    Replies: 2
    Last Post: 12-19-2006, 11:38 AM
  3. manual or automatic nework selection
    By suraj in forum Wireless Communications
    Replies: 2
    Last Post: 11-22-2006, 12:28 AM
  4. Is there a way to change skins with a button?
    By wysocki in forum FrodoPlayer
    Replies: 1
    Last Post: 12-23-2004, 09:11 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •