how send argument ?

Ask for help here..

how send argument ?

Postby didier69 » Thu Jun 26, 2008 8:46 am

Hi,

I would like to use one of my ahk script as a command and pass it a parameter. With Launchy I was using goto|irc and irc was my parameter.

How I can pass parameter with ndroid to my command ?

Regards.
didier69
 
Posts: 3
Joined: Thu Jun 26, 2008 8:43 am

Re: how send argument ?

Postby rajat » Thu Jun 26, 2008 10:14 am

While in search field, please press Tab twice.
First Tab takes you to Action-Search, and the next one bring the Params field to provide command line parameters.

I hope that helped.
Image
rajat
Site Admin
 
Posts: 381
Joined: Mon Sep 17, 2007 8:20 pm

Re: how send argument ?

Postby didier69 » Thu Jun 26, 2008 11:27 am

Ok it works with a .bat file, but not with my .ahk file.

Here is my goto.ahk:
Code: Select all
#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
SetTitleMatchMode, RegEx

title = %1%
MsgBox, %title%
WinGet, win, List, i)%title%

Loop %win% {
   id := win%A_Index%
   ;MsgBox, %id%
   WinActivate, ahk_id %id%
   return
}


If I launch goto with parameters, you can see the message box. If I set a parameter, the message box is not launched. I would say that in the second launch, goto.ahk is not launched.

Do you have the same behaviour ?
didier69
 
Posts: 3
Joined: Thu Jun 26, 2008 8:43 am

Re: how send argument ?

Postby rajat » Thu Jun 26, 2008 8:27 pm

I checked, for some reasonwhen nDroid sends a command as:
c:\xyz\someapp.exe "some parameter"
what happens is that the whole command line is treated as path when an ahk script is being run.

I don't know why that's happening, but thanks for pointing that out. I'll try to solve the problem.
Image
rajat
Site Admin
 
Posts: 381
Joined: Mon Sep 17, 2007 8:20 pm

Re: how send argument ?

Postby didier69 » Tue Jul 08, 2008 11:38 am

Ok, finally, I created a goto.exe and it works with this.
didier69
 
Posts: 3
Joined: Thu Jun 26, 2008 8:43 am

Re: how send argument ?

Postby rajat » Tue Jul 08, 2008 12:25 pm

oh that's great!
one item off my list then.
Image
rajat
Site Admin
 
Posts: 381
Joined: Mon Sep 17, 2007 8:20 pm

ekCQXsJkjdrrmaByc

Postby sskiwypqb » Tue Mar 09, 2010 3:06 pm

XrIv0B <a href="http://ygbchtwivthm.com/">ygbchtwivthm</a>, utyrmjhoalvu, [link=http://zvbreeorwycn.com/]zvbreeorwycn[/link], http://oatdaylvhrml.com/
sskiwypqb
 

FRlvNEmJCEdsjoeo

Postby finger » Mon Apr 12, 2010 8:19 pm

finger
 

UssrghqYEbca

Postby wcyekkk » Mon Jul 26, 2010 3:42 pm

oS5voF <a href="http://jfwxlauuncsw.com/">jfwxlauuncsw</a>, aeepsywvixoc, [link=http://noiactcycvsd.com/]noiactcycvsd[/link], http://wbdrrjrtteov.com/
wcyekkk
 

KXYtbxyNNpaUvfwic

Postby Deadsent » Sat Jul 31, 2010 3:18 am

Deadsent
 

BbvDnIfuQyVrrG

Postby amachocolat » Thu Sep 02, 2010 1:25 am

amachocolat
 


Return to Help Needed

Who is online

Users browsing this forum: No registered users and 1 guest

cron