| View previous topic :: View next topic |
| Author |
Message |
jitendravyas
Joined: 06 Mar 2010 Posts: 15 Location: India
|
Posted: Wed Mar 10, 2010 4:58 am Post subject: How to run K-HTML in guest login? (Solved) |
|
|
http://normandlamoureux.com/k-html/index.html
I want to use this but i can't login as a administrator . is there a way to use?
Autohotkey works work on my PC but K-HTML not
Last edited by jitendravyas on Mon Mar 15, 2010 6:03 am; edited 1 time in total |
|
| Back to top |
|
 |
flyingDman
Joined: 27 Feb 2009 Posts: 690 Location: Burbank, California
|
Posted: Wed Mar 10, 2010 5:20 am Post subject: |
|
|
Download the source code! 4 files:k-html.ico .ini and .ahk and remplacement.txt. Seems to be plain AHK. _________________ "Data is not information, information is not knowledge, knowledge is not understanding, understanding is not wisdom" but let's start to get the data... |
|
| Back to top |
|
 |
jitendravyas
Joined: 06 Mar 2010 Posts: 15 Location: India
|
Posted: Wed Mar 10, 2010 5:22 am Post subject: |
|
|
i downloaded source and clicked on autohotkey.exe , but still asking for user rights.
---------------------------
AutoHotkey.ahk
---------------------------
Could not create file, perhaps because the current directory is read-only or has insufficient permissions.
---------------------------
OK
---------------------------
Autohotkey by default add sample file in My documents which is not writable. how to change path my documents to c> my documents to d> khtml |
|
| Back to top |
|
 |
flyingDman
Joined: 27 Feb 2009 Posts: 690 Location: Burbank, California
|
Posted: Wed Mar 10, 2010 5:40 am Post subject: |
|
|
If you have not run a script before, I suggest that you download the AutoHotkey Installer from: http://www.autohotkey.com/download/
and read the tutorial: http://www.autohotkey.com/docs/Tutorial.htm. _________________ "Data is not information, information is not knowledge, knowledge is not understanding, understanding is not wisdom" but let's start to get the data... |
|
| Back to top |
|
 |
jitendravyas
Joined: 06 Mar 2010 Posts: 15 Location: India
|
Posted: Sun Mar 14, 2010 5:44 am Post subject: |
|
|
i'm using AHK perfectly since 6-7 month . but this software not workingoon guest account . i think it beacuse of GUI . how to disable gui functionality and use its script as a simple script.
see scrren what is asking by windows when i double click on exe of K-HTML
[/img] |
|
| Back to top |
|
 |
tank
Joined: 21 Dec 2007 Posts: 3700 Location: Louisville KY USA
|
Posted: Sun Mar 14, 2010 6:09 am Post subject: |
|
|
http://www.autohotkey.com/forum/viewtopic.php?p=241345#241345
its more likely UAC interfering _________________
We are troubled on every side‚ yet not distressed; we are perplexed‚
but not in despair; Persecuted‚ but not forsaken; cast down‚ but not destroyed;
Last edited by tank on Sun Mar 14, 2010 6:11 am; edited 1 time in total |
|
| Back to top |
|
 |
flyingDman
Joined: 27 Feb 2009 Posts: 690 Location: Burbank, California
|
Posted: Sun Mar 14, 2010 6:10 am Post subject: |
|
|
What happens when you run the k-html.ahk script (one of the 4 files; see previous post)? _________________ "Data is not information, information is not knowledge, knowledge is not understanding, understanding is not wisdom" but let's start to get the data... |
|
| Back to top |
|
 |
jitendravyas
Joined: 06 Mar 2010 Posts: 15 Location: India
|
Posted: Sun Mar 14, 2010 6:15 am Post subject: |
|
|
this screen
and after clicking on "yes"
this
 |
|
| Back to top |
|
 |
flyingDman
Joined: 27 Feb 2009 Posts: 690 Location: Burbank, California
|
Posted: Sun Mar 14, 2010 6:59 am Post subject: |
|
|
So you see the k-html.ahk file in Explorer, then you double click on it and it tells you that the file does not exist... I am baffled... Any luck with Tank's suggested solution?.
If I understood correctly what Tank describes, none of the files in that folder can be edited and no scripts in that folder will run. What about moving the k-html.ahk and k-html.ico to another folder and double clicking the .ahk from there? _________________ "Data is not information, information is not knowledge, knowledge is not understanding, understanding is not wisdom" but let's start to get the data... |
|
| Back to top |
|
 |
flyingDman
Joined: 27 Feb 2009 Posts: 690 Location: Burbank, California
|
Posted: Sun Mar 14, 2010 7:07 am Post subject: |
|
|
BTW, the script runs fine on my system (Vista). _________________ "Data is not information, information is not knowledge, knowledge is not understanding, understanding is not wisdom" but let's start to get the data... |
|
| Back to top |
|
 |
jitendravyas
Joined: 06 Mar 2010 Posts: 15 Location: India
|
Posted: Sun Mar 14, 2010 7:18 am Post subject: |
|
|
| Quote: | | BTW, the script runs fine on my system (Vista). |
Are you in Guest login?
I moved k-html.ahk and k-html.ico to another folder which is writable then getting same old screen again
 |
|
| Back to top |
|
 |
flyingDman
Joined: 27 Feb 2009 Posts: 690 Location: Burbank, California
|
Posted: Sun Mar 14, 2010 8:35 am Post subject: |
|
|
Ok, I created a Guest account and tried to run k-html.ahk w/o admin writes. It did not run! Funny flickering, as if the script repeatedly relaunches itself.
The k-html.ahk script contains the following lines:
| Code: | if not A_IsAdmin
{
DllCall("shell32\ShellExecuteA", uint, 0, str, "RunAs", str, A_AhkPath
, str, """" . A_ScriptFullPath . """", str, A_WorkingDir, int, 1)
ExitApp
} |
which, according to the help file (http://www.autohotkey.com/docs/Variables.htm#BuiltIn), is to allow the script to run w/o admin privileges...?? I do not know what these few lines do (maybe someone else wish to explain). However, after commenting the lines out, the script seems to run (although I did spend much time with it)
The following thread discusses the topic and provides alternatives:
http://www.autohotkey.com/forum/viewtopic.php?t=50448&highlight=shell32+shellexecutea _________________ "Data is not information, information is not knowledge, knowledge is not understanding, understanding is not wisdom" but let's start to get the data... |
|
| Back to top |
|
 |
jitendravyas
Joined: 06 Mar 2010 Posts: 15 Location: India
|
Posted: Sun Mar 14, 2010 8:42 am Post subject: |
|
|
| i commented this part .it's working now . great thnaks. |
|
| Back to top |
|
 |
Guest
|
Posted: Sun Mar 14, 2010 8:45 am Post subject: |
|
|
this should help:
| Code: | /*
if not A_IsAdmin
{
DllCall("shell32\ShellExecuteA", uint, 0, str, "RunAs", str, A_AhkPath
, str, """" . A_ScriptFullPath . """", str, A_WorkingDir, int, 1)
ExitApp
}
*/ |
|
|
| Back to top |
|
 |
|