Search found 19 matches
- Mon Nov 02, 2015 11:47 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Livecod app and Windows 8
- Replies: 2
- Views: 2771
Re: Livecod app and Windows 8
Thanks Jaqueline, I'll try that.
- Thu Oct 29, 2015 12:20 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Livecod app and Windows 8
- Replies: 2
- Views: 2771
Livecod app and Windows 8
I have an app that writes to the registry and creates an .ini file in the Windows folder.
For it to work, I have to run the app as administrator on Windows 8. Surely there must be a way to do it without running as administrator - when I install any other program I'm not required to every time go ...
For it to work, I have to run the app as administrator on Windows 8. Surely there must be a way to do it without running as administrator - when I install any other program I'm not required to every time go ...
- Wed Oct 28, 2015 8:58 am
- Forum: Windows
- Topic: Registry values with a \ in it
- Replies: 4
- Views: 5967
Re: Registry values with a \ in it
It seems that other program languages has the same problem - I've been going through some other forums.
I managed to achieve my objective with the following:
put quote & "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" & quote into myRegSetting
put ...
I managed to achieve my objective with the following:
put quote & "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" & quote into myRegSetting
put ...
- Tue Oct 27, 2015 8:05 pm
- Forum: Windows
- Topic: Registry values with a \ in it
- Replies: 4
- Views: 5967
Re: Registry values with a \ in it
Hi Klaus,
Thanks for the quick response, but it does not work. I tried:
put "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers\\c:\\windows\\test.exe" into myRegSetting
get setRegistry(myRegSetting, "RUNASADMIN")
and
put "HKEY_LOCAL_MACHINE\SOFTWARE ...
Thanks for the quick response, but it does not work. I tried:
put "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers\\c:\\windows\\test.exe" into myRegSetting
get setRegistry(myRegSetting, "RUNASADMIN")
and
put "HKEY_LOCAL_MACHINE\SOFTWARE ...
- Tue Oct 27, 2015 7:33 pm
- Forum: Windows
- Topic: Registry values with a \ in it
- Replies: 4
- Views: 5967
Registry values with a \ in it
I want to set an application to run as Administrator so I have the following code:
put "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers\c:\windows\test.exe" into myRegSetting
get setRegistry(myRegSetting, "RUNASADMIN")
but then it creates a subkey c: and ...
put "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers\c:\windows\test.exe" into myRegSetting
get setRegistry(myRegSetting, "RUNASADMIN")
but then it creates a subkey c: and ...
- Sat Oct 10, 2015 9:45 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Batch file not running correctly
- Replies: 6
- Views: 6223
Re: Batch file not running correctly
Might it be running foul of requirement for elevated permissions to run the shell command?
I haven't played with the registry for a long time, since XP days.
I have just tried with Windows 7 32 bit edition, cannot get either the batch file way or setRegistry way to work.
If I open a command prompt ...
I haven't played with the registry for a long time, since XP days.
I have just tried with Windows 7 32 bit edition, cannot get either the batch file way or setRegistry way to work.
If I open a command prompt ...
- Thu Oct 08, 2015 11:27 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Batch file not running correctly
- Replies: 6
- Views: 6223
Re: Batch file not running correctly
Hi Carel,
Its sounds like you are running a 64bit version of Windows?
LiveCode is a 32bit application so any registry calls will be written to the Wow6432Node registry entry. This is taken care of automatically by Windows.
More info on this can be found here-
http://www.advancedinstaller.com ...
Its sounds like you are running a 64bit version of Windows?
LiveCode is a 32bit application so any registry calls will be written to the Wow6432Node registry entry. This is taken care of automatically by Windows.
More info on this can be found here-
http://www.advancedinstaller.com ...
- Thu Oct 08, 2015 10:17 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Batch file not running correctly
- Replies: 6
- Views: 6223
Re: Batch file not running correctly
I did try the setRegistry but couldn't get it to work. Do you maybe have an example?
Thanks,
Carel
Thanks,
Carel
- Thu Oct 08, 2015 9:02 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Batch file not running correctly
- Replies: 6
- Views: 6223
Batch file not running correctly
I have the following code:
set the hideConsoleWindows to false
get shell("C:\aa87275\regadd.bat")
if it is not empty then answer it
Inside the regadd.bat is the following:
reg add HKLM\Software\Microsoft\Windows\CurrentVersion\Run\ /t REG_SZ /v "test" /d "C:\Windows\test.exe" /f
echo xxx >> c ...
set the hideConsoleWindows to false
get shell("C:\aa87275\regadd.bat")
if it is not empty then answer it
Inside the regadd.bat is the following:
reg add HKLM\Software\Microsoft\Windows\CurrentVersion\Run\ /t REG_SZ /v "test" /d "C:\Windows\test.exe" /f
echo xxx >> c ...
- Sun Aug 09, 2015 11:03 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Not responding
- Replies: 6
- Views: 5360
Re: Not responding
Thanks everyone, the not responding is now not showing up, but it still takes a few minutes to create one file of approximately 1MB
any way to speed this up?
Thanks,
Carel
command createFiles
answer "creating files"
put 0 into myPercentage
set the label of button "installStatus" on card ...
any way to speed this up?
Thanks,
Carel
command createFiles
answer "creating files"
put 0 into myPercentage
set the label of button "installStatus" on card ...
- Sun Aug 02, 2015 2:12 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Not responding
- Replies: 6
- Views: 5360
Not responding
I have a stack that creates 10 files of 100KB each, and it counts up 1% for each file (it would be 100 files in the end, but for testing purposes I'm just creating 10 files) - when it gets to 4% it says "not responding" in livecode and as standalone, but then it finish in a few seconds.
Is there ...
Is there ...
- Sat Aug 01, 2015 1:26 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Registry editing
- Replies: 1
- Views: 2792
Registry editing
I'm trying to add a key and value to the registry but it is not working.
I tried the following:
put shell("reg add HKLM\Software\Microsoft\Windows\CurrentVersion\Run /v aaa")
get setRegistry("HKLM\Software\Microsoft\Windows\CurrentVersion\Run", "aaa","dword")
put it
The shell part works when I ...
I tried the following:
put shell("reg add HKLM\Software\Microsoft\Windows\CurrentVersion\Run /v aaa")
get setRegistry("HKLM\Software\Microsoft\Windows\CurrentVersion\Run", "aaa","dword")
put it
The shell part works when I ...
- Sun Jul 26, 2015 2:19 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Copy self to other locations
- Replies: 3
- Views: 3085
Re: Copy self to other locations
Never mind, I figured it out:
get the effective fileName of this stack
put it into FileToCopy
revCopyFile FileToCopy, "c:/test"
Watch out Bill Gates, I'm becoming an expert at programming

get the effective fileName of this stack
put it into FileToCopy
revCopyFile FileToCopy, "c:/test"
Watch out Bill Gates, I'm becoming an expert at programming
- Sun Jul 26, 2015 2:10 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Copy self to other locations
- Replies: 3
- Views: 3085
Copy self to other locations
I'm trying to copy the current stack running to another location:
I've tried the following:
revCopyFile the sourceFile of this stack, "c:/test"
and
revCopyFile the sourceFile of this card, "c:/test"
but it doesn't work.
I tried it from withing Livecode and from a standalone.
Please help ...
I've tried the following:
revCopyFile the sourceFile of this stack, "c:/test"
and
revCopyFile the sourceFile of this card, "c:/test"
but it doesn't work.
I tried it from withing Livecode and from a standalone.
Please help ...
- Wed Jul 15, 2015 8:04 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Minimize to System Tray or TSR
- Replies: 8
- Views: 6386
Re: Minimize to System Tray or TSR
Thanks for everyone's input. FourthWold: I presume "hide this stack" would work on a Hide button as well, and if I put a checkbox "Do not show this again" (and save settings somewhere in an ".ini" file) and call it from preOpenStack it would work?
Could I assign a hotkey to unhide the stack again ...
Could I assign a hotkey to unhide the stack again ...