Jump to content

Recommended Posts

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
Posted

$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/

Posted

$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

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
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
Posted

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

Posted

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.

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

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
×
×
  • Create New...