AutoHotkey Community

It is currently May 27th, 2012, 2:14 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 781 posts ]  Go to page Previous  1 ... 7, 8, 9, 10, 11, 12, 13 ... 53  Next
Author Message
 Post subject:
PostPosted: February 4th, 2010, 1:00 am 
Offline

Joined: February 1st, 2010, 7:11 pm
Posts: 6
Location: California, USA
(Xion speaking)
Ah, that makes sense. As I said before, it's not really an issue :)
Image

Here's how I have it set up now, it's really cool. Eventually I want to make it replace the Taskbar altogether. e.g. when you click the center windows button, the start menu shows up right there, have a clock GUI that sticks to the desktop, have all running applications show up in a wide circle around the menu, and perhaps some other things. Well, it's just a dream for now, but without your superb script, it wouldn't even be a dream 8)
You have inspired me, and for that, I thank you.

P.S. if anyone wants to help me make the above mentioned things a reality, I will be very happy :D


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 4th, 2010, 6:53 am 
Offline
User avatar

Joined: September 5th, 2009, 2:06 pm
Posts: 1713
Location: Somewhere near you
Elesar-kun wrote:
Try to change the line to: Run,%A_ScriptDir%\RM settings.ini
And Get tic's GDI+.dll

Well, after I change the line, I get this error message
Code:
Error: Failed attempt to launch program or document.
Action: <open>
Verb: <open>
Params: <D:\unzipped\Radial Menu v3.17\RM settings.ini>
Specifically: The system cannot find the file specified

Can someone tell me what the line do? Maybe I could try to edit it to work for my OS.
And where to save tic's GDI.dll?

I change the line to:

Code:
RMSettings:
Run, %A_WinDir%\notepad.exe %A_ScriptDir%\RM settings.ini
Return

And it works. AFAIK the run command isn't too flexible in Win ME, so I have to specify the program manually.
But there's still nothing shows, how can I use this application?

I want to upgrade my PC but currently I can't =/
Btw thank you Elesar for your reply.

_________________
Image
The quick onyx goblin jumps over the lazy dwarf


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 4th, 2010, 7:19 am 
Offline

Joined: June 28th, 2007, 1:08 am
Posts: 662
OK, Edited out lots, I'm tired and didn't read your whole post correctly at first.

The file should be named gdiplus.dll and should be placed in the main RadialMenu folder (I think). If that doesn't work, place it in RMdata subfolder.

I hope that that can get you going :D

There is a chance that it still will not work, as ME is a 9x based OS, and the minimum requirements for GDI+ is Windows 2000. Although ME was released after 2k, it uses the old code-base. :\


Report this post
Top
 Profile  
Reply with quote  
 Post subject: try this
PostPosted: February 4th, 2010, 9:54 am 
http://www.digitallis.co.uk/pc/ShortPopUp/


here's a tiny program i use that needs working directory to function.. i use it all over the place.. most of my rocketdock links are shortpopup calls


if you run it, it pops up a dir list of the working folder.

if you launch it anywhere with rm it will list the ahk folder.

just grab the executable and set it in any folder... like the desktop and run it...


thanks again for this..


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 4th, 2010, 9:18 pm 
Offline

Joined: January 26th, 2009, 5:26 pm
Posts: 151
I really like this and hope you continue development. There are a few things I would suggest.

Support for external skin packs. For example dump the images and the skins config file into a new folder within the images folder. Script automatically searches for skin config files and adds them to the list to select from.

Include select effects in skin configs or make them a separate modular piece.

Ability to switch to a whitelist instead of blacklist for apps. Sometimes you may only want it popping up in one place. For example the desktop.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 5th, 2010, 11:53 am 
Offline
User avatar

Joined: April 4th, 2009, 8:19 pm
Posts: 1143
Location: Croatia
As no one except Elesar didn't vote for any option how to implement working folder request, I coded a. option:
when target has .exe extension, RM automatically launches it from its home folder. I'll upload updated RM v3.17 pack soon.

@tomoe_uehara: Sorry, I'm not motivated to find a way how to use RM on obsolete OS.
Please upgrade and than try RM. P.S. I like blue font too. :wink:

@XionII: Nice skin. :D You can play with ButtonForeground to create button in bubble effect. Your further RM improvement dreams are possible in reality.

@LiquidGravity: Interesting suggestions. I'll try to code them if I'll have enough time.
And yes, your Sikuli post really made me laugh.
Quote:
caveman (or your boss)

:D :lol: hahaha


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 5th, 2010, 9:46 pm 
Offline
User avatar

Joined: April 4th, 2009, 8:19 pm
Posts: 1143
Location: Croatia
Radial menu v3.17 updated - download it again
Changes:
- when target has .exe extension, RM automatically launches it from its home folder
- licence slightly reformulated - don't worry it's still free for non-commercial, personal use under some conditions and probably will forever be.
- some other minor, invisible changes

Report does this update solve working folder request.


Report this post
Top
 Profile  
Reply with quote  
 Post subject: error
PostPosted: February 7th, 2010, 4:36 am 
on this new build, i get an error i haven't seen before and i've mucked with your code pretty mercilessly. :)

but on a clean extract of the new 3.17 i get an

No application si associated with the specified file for this operation.

error on line 137
Run, RMsoundonshow.ahk ....



I'm gonna check the 3.16 version i have and see what's different. If this is new it may be that i don't have .ahk files associated to autohotkey.. i can't since this is all running from usb stick... i'll check and report as i find anythign.


Report this post
Top
  
Reply with quote  
 Post subject: uhh... fixed..
PostPosted: February 7th, 2010, 4:41 am 
Those 3 lines look new from 316 to 317.. when i remove them everything works fine.


Not sure what i'm losing but i'll leave that to you o' learn'ed one!


Report this post
Top
  
Reply with quote  
 Post subject: working directory
PostPosted: February 7th, 2010, 5:17 am 
Works perfect except if i pass in command line arguments to the executable then it fails the "ends with .exe" check and runs from ahk directory.


I took out the if statement that does a split on the files with exe.


WORKS COMPLETELY perfect that way. Would love to know if anyone has a reason for not running it from the target dir.

(I can't think of a reason that i WOULDN'T want it to run in the target directory, but then again it seems like i was the only person asking for this.)

taking out the three lines about the soundonshow did kill the launch wav. i'm busy loading up my RM settings.ini and preparing to retire rocketdock. i may still use it for a taskbar replacement but that's it.

thanks again!!!!


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 8th, 2010, 12:38 am 
Offline
User avatar

Joined: April 4th, 2009, 8:19 pm
Posts: 1143
Location: Croatia
Quote:
error on line 137

Line 137 in Radial menu v3.17.ahk is:
Code:
Run, RMSoundOnShow.ahk, %A_ScriptDir%\RMdata\SoundPlayers

It is impossible that Radial menu v3.17.ahk can't run this script because it is in %A_ScriptDir%\RMdata\SoundPlayers and its name is RMSoundOnShow.ahk!
Radial menu v3.16.rar does not have RMSoundOnShow.ahk in %A_ScriptDir%\RMdata\SoundPlayers, like Radial menu v3.17.rar!
You can't just replace old Radial menu v3.17.ahk or Radial menu v3.16.ahk with updated Radial menu v3.17.ahk. You must replace whole package!
That's the reason why I'm uploading whole RM Package.

Quote:
Works perfect except if i pass in command line arguments to the executable then it fails the "ends with .exe" check and runs from ahk directory.

Ok, I created new system of running RM items.
This system (tested on my comp on Win XP):
- launches almost everything from target's home folder
- supports parameters
- supports system verbs
- supports CLSID folders
- supports built-in variables important for Run command; %A_ProgramFiles% %A_Scriptdir% %A_WinDir% etc...

I want you and everybody else to test script below and report does it work. Imagine that text you entered is Item's action, (but don't enter MySub).
If this ImprovedRun system works, I'll implement it in RM. It works perfectly on my comp...

Remember that Item's action is Run command's first parameter - target
If you want to execute Run command with more parameters like Max|Min|Hide|UseErrorLevel, OutputVarPID, use MySub and create custom subroutine.

EDIT: script below updated - 21.2.2010. Developed to add more flexibility when running files with RM
Code:
ImprovedRun(FullPath)      ;  by Learning one   v1.2
{
   While (SubStr(FullPath,1,1) = A_Tab or SubStr(FullPath,1,1) = A_Space)
   StringTrimLeft, FullPath, FullPath, 1
   Transform, FullPath, Deref, %FullPath%   ; suggestion by Maxmax14 (Thanks!)
   if (RegExMatch(FullPath, "i)^(properties|find|explore|edit|open|print)\s*([a-z]{1}:\\|::\{)", SysVerb) = 1)   ; with SysVerb
   {
      StringReplace, SysVerb, SysVerb, %A_Space%, , all
      StringTrimRight, SysVerb, SysVerb, 3
      SysVerbLength := StrLen(SysVerb)   
      StringTrimLeft, FullPath, FullPath, SysVerbLength+1
      While (SubStr(FullPath,1,1) = A_Space)
      StringTrimLeft, FullPath, FullPath, 1
      if (SubStr(FullPath, 1, 3) = "::{")   ; CLSID folders
      {
         Run, %SysVerb% %FullPath%
         Return
      }
      SplitPath, FullPath, file, dir
      While (SubStr(file,0,1) = A_Space)
      StringTrimRight, file, file, 1
      if file =
      {
         Run, %SysVerb%, %dir%
         Return
      }
      FileWithSysVerb := SysVerb A_Space file
      Run, %FileWithSysVerb%, %dir%
      Return
   }
   Else      ; without SysVerb
   {
      if (SubStr(FullPath, 1, 3) = "::{")   ; CLSID folders
      {
         Run, %FullPath%
         Return
      }
      if FullPath contains "   
      {                         
         Run, %FullPath%
         Return
      }
     
      SplitPath, FullPath, file, dir
      While (SubStr(file,1,1) = A_Space)
      StringTrimLeft, file, file, 1
      While (SubStr(dir,1,1) = A_Space)
      StringTrimLeft, dir, dir, 1
      if file =
      {
         Run, %dir%
         Return
      }
      if dir =
      {
         Run, %file%
         Return
      }
      Run, %file%, %dir%
      Return
   }
}

Gui, +AlwaysOnTop
Gui, Add, Edit, x6 y10 w460 h20 vAction,
Gui, Add, Button, x6 y40 w100 h30 Default , Run
Gui, Add, Button, x366 y40 w100 h30 , Close
Gui, Show, w477 h81, Test: ImprovedRun for Radial menu - by Learning one
Return

ButtonClose:
GuiClose:
ExitApp

ButtonRun:
Gui, submit, nohide
ImprovedRun(Action)
Return


Escape::ExitApp

Some examples that work perfectly on my comp:
C:\
explore C:\
%A_ScriptDir%\Utilities\Hibernate.ahk
%A_WinDir%\explorer.exe
explore ::{645ff040-5081-101b-9f08-00aa002f954e}
properties C:\My Programs\Freeciv\civclient.exe
C:\My Programs\Freeciv\civclient.exe
::{645ff040-5081-101b-9f08-00aa002f954e}
C:\test.txt
C:\My Programs\CCleaner\CCleaner.exe
C:\My Programs\CCleaner\CCleaner.exe /AUTO
properties C:\My Programs\CCleaner\CCleaner.exe
inetcpl.cpl
%A_ProgramFiles%\Windows Media Player\wmplayer.exe "C:\Song1.mp3" "C:\Song2.mp3" "C:\Song3.mp3" "C:\Song4.mp3"
notepad "%A_ScriptDir%\Utilities\Hibernate.ahk"


Last edited by Learning one on February 21st, 2010, 2:08 am, edited 2 times in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject: 137 error
PostPosted: February 8th, 2010, 6:28 am 
I made sure that i tested that error on my system with a freshly downloaded version of the full 3.17 install before posting comment.

I'm still guessing that it has to do with calling a RUN on a .ahk file which i do not have associated to autohotkey.exe.

when you dbl-click on a .ahk file does it run automatically? if so .ahk is associated to the path of autohotkey.exe and runs via connection to registry to find .ahk handler. i intentionally don't register .ahk to run that way. I have another ahk script that handles file-->program associations.


Please don't take offense. i'm certain i'm doing something wrong. just posting what i had time to test.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 8th, 2010, 8:57 pm 
Offline
User avatar

Joined: April 4th, 2009, 8:19 pm
Posts: 1143
Location: Croatia
Quote:
I made sure that i tested that error on my system with a freshly downloaded version of the full 3.17 install before posting comment.

OK. Sorry for my wrong assumption.
Quote:
I'm still guessing that it has to do with calling a RUN on a .ahk file which i do not have associated to autohotkey.exe.

Yes, this may cause your problem...
Quote:
I have another ahk script that handles file-->program associations.

Post your script (or just important part). How does it work? RegWrite & RegDelete? Open with?
I don't have any experience with running .ahk scripts from usb stick on computer that doesn't have .ahk scripts associated to autohotkey.exe Never tried to do that...
Quote:
Please don't take offense.

No offense. :wink:

RM v3.17 runs 3 accessory, hidden scripts that enable soundmixing: RMSoundOnShow.ahk, RMSoundOnSubShow.ahk, RMSoundOnSubHide.ahk

I updated ImprovedRun script above. It's more flexible now. Has anybody tested it? Works fine on my comp...


Report this post
Top
 Profile  
Reply with quote  
 Post subject: test passed.
PostPosted: February 15th, 2010, 1:00 am 
New and ImprovedRun() works for my tests.

sorry it took so long to get to testing this.


Any chance you'd consider putting those accessory script calls back to being internal function calls?



thanks again.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 16th, 2010, 8:42 pm 
Offline
User avatar

Joined: April 4th, 2009, 8:19 pm
Posts: 1143
Location: Croatia
Quote:
New and ImprovedRun() works for my tests.

Ok. Thanks for testing. I'll upload RM v3.17 with this run system.
Quote:
Any chance you'd consider putting those accessory script calls back to being internal function calls?

The problem is that Autohotkey does not support sound mixing. I want to have sound mixing enabled, so I'm forced to use a workaround. RM v3.17 is the first
version that has sound mixing enabled by running 3 accessory, hidden, ghost scripts that play sound when main RM script sends them a message --> OnMessage()
If you (or somebody else) show me a better solution, I'll be happy to implement it. It must have: 1) fast response, 2) very low CPU usage
3) excellent quality 4) must be totally free.

Post your script that handles file-->program associations. Although I don't need it, it's always good to see solutions from other coders.
And consider registering/signing in AHK forum.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 781 posts ]  Go to page Previous  1 ... 7, 8, 9, 10, 11, 12, 13 ... 53  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: MSN [Bot], notsoobvious and 8 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group