Sign in to follow this  
Followers 0
kredzio

Problem with starting Script

20 posts in this topic

#1 ·  Posted (edited)

Hello i have problem with starting Scripts... I run .exe with script and i can't starting it...

This is my script

$start = Iniread ("readme.ini", "startstop", "start", 1)

$stop = Iniread ("readme.ini", "startstop", "stop", 1)

HotKeySet($start, "mm")

HotKeySet($stop, "end")

While 1

Sleep(300)

Wend

Func mm()

MsgBox (0, "wdssdd","sdddsds")

EndFunc

Func end()

Exit 0

EndFunc

My readme.ini file

[startstop]

start = "+{F8}"

stop = "+{F7}"

When i click Shift + F8 nothing to do :P I trying set another hotkeys, but all that same problem - nothing to do

Anyone can help me?

Edited by kredzio

Share this post


Link to post
Share on other sites



Try Func instead of Function.

Share this post


Link to post
Share on other sites

Yea sorry I have Func - not function... i manually write this code because... my script i have on another computer

Share this post


Link to post
Share on other sites

$start = IniRead("readme.ini", "startstop", "start", 1)
$stop = IniRead("readme.ini", "startstop", "stop", 1)

HotKeySet($start, "mm")
HotKeySet($stop, "end")

While 1
    Sleep(300)
WEnd

Func mm()
    MsgBox(0, "wdssdd", "sdddsds")
EndFunc  ;==>mm

Func end()
    Exit 0
EndFunc  ;==>end

Works for me. You know that it's SHIFT+F8 and SHIFT+F7 which are you're hotkeys right/

Share this post


Link to post
Share on other sites

$start = IniRead("readme.ini", "startstop", "start", 1)
$stop = IniRead("readme.ini", "startstop", "stop", 1)

HotKeySet($start, "mm")
HotKeySet($stop, "end")

While 1
    Sleep(300)
WEnd

Func mm()
    MsgBox(0, "wdssdd", "sdddsds")
EndFunc ;==>mm

Func end()
    Exit 0
EndFunc ;==>end

Works for me. You know that it's SHIFT+F8 and SHIFT+F7 which are you're hotkeys right/

I don't know what is wrong on me... I trying set only F8 or another key like "k", "l" and nothing to do - script not start :P

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

What version of Windows are you on?

Also, try this. Look in the console window to see the output:

MsgBox(0, "", "Script started")

$start = IniRead("readme.ini", "startstop", "start", 1)
ConsoleWrite($start & @CRLF)
$stop = IniRead("readme.ini", "startstop", "stop", 1)
ConsoleWrite($stop & @CRLF)

HotKeySet($start, "mm")
HotKeySet($stop, "end")

While 1
    Sleep(300)
WEnd

Func mm()
    MsgBox(0, "wdssdd", "sdddsds")
EndFunc  ;==>mm

Func end()
    Exit 0
EndFunc  ;==>end
Edited by JamesBrooks

Share this post


Link to post
Share on other sites

XP SP2 but this Windows have change layout - look like Vista... maybe this is problem?

Share this post


Link to post
Share on other sites

#11 ·  Posted (edited)

Highly doubtful. Try the script from above.

I trying this...

MsgBox(0, "", "Script started")

$start = IniRead("readme.ini", "startstop", "start", 1)
ConsoleWrite($start & @CRLF)
$stop = IniRead("readme.ini", "startstop", "stop", 1)
ConsoleWrite($stop & @CRLF)

HotKeySet($start, "mm")
HotKeySet($stop, "end")

While 1
    Sleep(300)
WEnd

Func mm()
    MsgBox(0, "wdssdd", "sdddsds")
EndFunc ;==>mm

Func end()
    Exit 0
EndFunc ;==>end

Run script.exe

In systray i have AutoIt

click Shift+F8 and nothing to do :/

I trying change in .ini file from "{F8}" to {F8} and that same effect

Edited by kredzio

Share this post


Link to post
Share on other sites

yes SHIFT and F8

Share this post


Link to post
Share on other sites

And do you have readme.ini in the same folder?

From running my snippet you should see a message box appear. Do you have SciTE4AutoIt3 by the way?

yes i have readme.ini in that same folder

yes i have SciTE4AutoIt3 i download it today from AutoIt site

Share this post


Link to post
Share on other sites

yes i have readme.ini in that same folder

yes i have SciTE4AutoIt3 i download it today from AutoIt site

Right, run this:

MsgBox(0, "", "Script started")

;$start = IniRead("readme.ini", "startstop", "start", 1)
;$stop = IniRead("readme.ini", "startstop", "stop", 1)

HotKeySet("+{F8}", "mm")
HotKeySet("+{F7}", "end")

While 1
    Sleep(300)
WEnd

Func mm()
    MsgBox(0, "wdssdd", "sdddsds")
EndFunc  ;==>mm

Func end()
    Exit 0
EndFunc  ;==>end

Same hotkeys.

Share this post


Link to post
Share on other sites

#17 ·  Posted (edited)

Right, run this:

MsgBox(0, "", "Script started")

;$start = IniRead("readme.ini", "startstop", "start", 1)
;$stop = IniRead("readme.ini", "startstop", "stop", 1)

HotKeySet("+{F8}", "mm")
HotKeySet("+{F7}", "end")

While 1
    Sleep(300)
WEnd

Func mm()
    MsgBox(0, "wdssdd", "sdddsds")
EndFunc;==>mm

Func end()
    Exit 0
EndFunc;==>end

Same hotkeys.

heh now working... so is something wrong with readme.ini

Thanks so much...

Edited by kredzio

Share this post


Link to post
Share on other sites

#18 ·  Posted (edited)

heh now working... so is something wrong with readme.ini

Well that doesn't suprise me. Try this:

[startstop]
start="+{F8}"
stop="+{F7}"

If that doesn't work then, I don't know sorry.

Edited by JamesBrooks

Share this post


Link to post
Share on other sites

doesn't work :P

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0